Forum Discussion
Altera_Forum
Honored Contributor
14 years agoprogrammable parallel to serial converter
hi can any1 plz help me in vhdl code for programmable parallel to serial converter of 6 to 16 bit.maximum size is 16 bit but dat is nt fixed sometimes we may get 6 bit or 8 bit r etc that should get ...
Altera_Forum
Honored Contributor
14 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.