Forum Discussion
Altera_Forum
Honored Contributor
13 years agoAvalon MM/ST/SGDMA Byte ordering
Hi, I'm using the SGDMA IP core to transfer some data from Avalon MM interface to Avalon ST interface and back to Avalon MM. Everything 32 bit width. NIOS->Memory-> Avalon MM -> SGDMA...
Altera_Forum
Honored Contributor
13 years agoYes I have faced this problem before. The Avalon MM specification is little endian and the Avalon Stream specification is big endian.
How did you configure the SGDMA? IIRC if you configure its data size as 4 symbols per tick and 8 bits per symbol, instead of 1 symbol per tick and 32 bits per symbol, it will convert the endianes for you. I'm not 100% sure though, it was a while ago I had to solve this problem.