Altera_Forum
Honored Contributor
15 years agoMemory to Device DMA transfer
Hi,
I am working on a byte transfer from SDRAM to a register of my custom hardware. I have set the byte transfer enable and wcon for byte transfers and write to a constant address. But, I see that the DMA is reading from the SDRAM 4 bytes at a time. I dont know about the actual protocol the DMA follows i.e., whether it will read byte - write byte or read word and write it byte by byte. The DMA write master is writing the 1st byte of each word. I am debugging this on modelsim and I see that the byte enable signal is high in the DMA module. The data I am using is 1,2,3,... and DMA is reading 04030201,08070605 etc., and writing 04, 08 etc. (one byte from each read). Can someone help me with this. Thanks.