S
sku11monkey
Guest
Is it possible to assign the value of a loop variable to a
std_logic_vector? I'm trying to make the following code work:
--A : in std_logic_vector(7 downto 0);
for i in 0 to 15 loop
A <= --gets value of i
wait for 20 ns;
loop;
Does anyone know the library and type conversion function that I can use to
assign the loop variable (which I think is of type integer) to A, which is
type std_logic_vector, width=8?
Thanks.
std_logic_vector? I'm trying to make the following code work:
--A : in std_logic_vector(7 downto 0);
for i in 0 to 15 loop
A <= --gets value of i
wait for 20 ns;
loop;
Does anyone know the library and type conversion function that I can use to
assign the loop variable (which I think is of type integer) to A, which is
type std_logic_vector, width=8?
Thanks.