K
kclo4
Guest
Hello everyone
I want to do a for loop in order to repeat the same construction and
use the number of the loop to create the index to take the desirated
part of the bus , the problem is that i don't know how to do it and i
don't know what to look for in google , i would like to do this
enable_reg(2*i+1 downto 2*i)
my code:
for i in 0 to 11 loop
case enable_reg(2*i+1 downto 2*i) is
when "00" =>
enable_output(i) <= '1';
when "01" =>
enable_output(i) <= (disc_enable(0));
when others =>
enable_output(i) <= '0';
end case;
end for;
thank you for your help
I want to do a for loop in order to repeat the same construction and
use the number of the loop to create the index to take the desirated
part of the bus , the problem is that i don't know how to do it and i
don't know what to look for in google , i would like to do this
enable_reg(2*i+1 downto 2*i)
my code:
for i in 0 to 11 loop
case enable_reg(2*i+1 downto 2*i) is
when "00" =>
enable_output(i) <= '1';
when "01" =>
enable_output(i) <= (disc_enable(0));
when others =>
enable_output(i) <= '0';
end case;
end for;
thank you for your help