Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Is there any more generic way of duplicating code in VHDL, that works outside of a process also? --- Quote End --- Yes, its called a generation loop. Your code just needed a label and a slight change in syntax:
g1: for i in 0 to OUTPUTNO-1 generate
outputs(i) <= outputsignal(i) and not outputban(i);
end generate;
Cheers, Dave