Forum Discussion
Altera_Forum
Honored Contributor
13 years agomSGDMA and On-chip Memory
Hi all! I'm creating a design that uses a Nios II processor with on board memory and wish to be able to read & write to the on-chip memory from custom Verilog. I did originally try using ...
Altera_Forum
Honored Contributor
13 years agoLooks fine to me, I suspect you used IORD and passed in an offset of 0x100000? IORD uses 32-bit word offsets so you might have just accessed the wrong location.
I avoid IORD/IOWR and use the direct macros instead IORD_32DIRECT/IOWR_32DIRECT. Those ones you byte offsets so if that was your issue you should be able to just replace the macro and it should work.