Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIn my opinion, the bit selection by a chain of if statements looks awful, although the design compiler can reduce it. Generally a shift register is the ususal way to generate a serial bitstream. See the code example in another thread related to SPI output.
http://www.alteraforum.com/forum/showthread.php?t=19729 "why I can't compile" is too unspecific to answer, I think.