Altera_Forum
Honored Contributor
14 years agoBit or byte swapping in SDRAM?
Hi,
I have an Avalon-ST component sending data to an on-chip FIFO (ST input / MM output), which is read by a Nios CPU. I've verified that the data coming out of my component is valid both on a DE3 board and DE0-nano. Problem is that the cpu in the DE0-nano system is reading data that has been bit or byte swapped from the ST data stream. From the fifo, I'm using altera_avalon_fifo_read_fifo() to get the data into memory (SDRAM in the case of the DE0-Nano). When I printf on my variable, I can clearly see my data has been swapped around. Is there any reason the Avalon-ST components would be doing the swapping? Is this an issue with the SDRAM controller? Having some trouble debugging, so any help would be appreciated. -J