Forum Discussion
ggxnd
New Contributor
3 years agoMemory Conflicts in onchip ram
I am using IOWR_32DIRECT to write contents in the on-chip ram and using IORD_32DIRECT to read from the same address where I performed write operation. Upto few memory location the write and read data...
ShengN_altera
Super Contributor
3 years agoHi,
Yes. There're some memory limitations as some of the address locations are not writeable. I would suggest you using this method to verify the matching of the write and read data:
int main() {
IOWR_32DIRECT(ONCHIP_MEM_BASE, 0x1FFFFF, "<string>");
printf("%s\n", IORD_32DIRECT(ONCHIP_MEM_BASE, 0x1FFFFF));
return 0;
}
Thanks,
Best Regards,
Sheng