Forum Discussion
Altera_Forum
Honored Contributor
14 years agoUART Transmitter Sends Bytes Out of Order
Hello, I have the following Verilog code which sends 8 bytes to the serial port successively after a button is pressed. The problem is, the bytes are sent out of order as to what I would e...
Altera_Forum
Honored Contributor
14 years agoIn the first piece of code (the not working one) in SEND_BYTES state you wrote:
tbyte = plain_text[byteN*8 +: 8]; What does that mean? I have never seen such a syntax. Is this a typo? I'd rather used: tbyte = plain_text[(byteN+1)*8: byteN*8];