Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHaha, I think I got it...
your "random" numbers don't seem so random to me.... 131072 = 0x20000 393220 = 0x60004 655368 = 0xA0008 917516 = 0xE000C and so on... Is either of your RAM or your periphereal 16bit wide? Instead of doing a IORD(dst,i) try doing a IORD_16DIRECT(), that shoud do the trick... Edit: Maybe you must do IORD_16DIRECT(dst, i*2), because it might use a byte offset. IORD() itself already converted the offset to bus width, which it thought being 32bit.