2 use IEEE.std_logic_1164.all;
11 use IEEE.std_logic_1164.all;
15 NUM_CHANNELS : positive := 4
18 src_channel : in integer range 0 to NUM_CHANNELS-1;
19 src_valid : in std_ulogic;
20 src_ready : out std_ulogic
24 architecture struct of a is
26 signal src_valid : std_ulogic;
27 signal src_ready : std_ulogic;
35 src_valid => src_valid,
36 src_ready => src_ready
40 architecture behav of b is
43 variable ready : std_ulogic;
44 variable channel_ready : std_ulogic;
47 for i in 0 to NUM_CHANNELS-1 loop
48 if i = src_channel and src_valid = '1' then
53 ready := ready and channel_ready;