jeffw_00
Newbie level 2
Hi - I'm a long-time Verilog coder coming up on VHDL. What I need to do in VHDL is
signal data : std_logic_vector (31 downto 0);
signal sel : std_logic_vector (4 downto 0);
signal res : std_logic;
process (data,sel)
begin
res <= data(sel);
end process;
But it doesn't like me using sel as a bit-select. What's the right way to do this?
Thanks!
/j
signal data : std_logic_vector (31 downto 0);
signal sel : std_logic_vector (4 downto 0);
signal res : std_logic;
process (data,sel)
begin
res <= data(sel);
end process;
But it doesn't like me using sel as a bit-select. What's the right way to do this?
Thanks!
/j