Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIn this expression x must be a constant:
Shreg(x downto 1); Anyway, your code will not work even if you correct this point. You are writing code as if you were to execute it like a common software language, which HDL is not. Remind that everything you code in HDL must be eventually synthesized by means of logic gates and flip-flops, and they all are supposed to switch on clock edges. Google for parallel to serial converter and you'll find a lot of code samples.