Forum Discussion
Altera_Forum
Honored Contributor
7 years agoYou can define a generic so that the range can be set when you instantiate the component.
Currently the loop does nothing because remember that all the code will be executed on every clock cycle. This is hardware description, not software programming. Did you draw the circuit before you wrote the code?