Forum Discussion
Memory Conflicts in onchip ram
Hi,
The code provided by me I'm just increasing the address part (addr_str) for each loop. While keeping the address offset at constant 1.
Compared to yours, you're increasing the address offset (addr) part instead. Why not you just keep the address offset constant and increase the address part for each loop any difference?
Thanks,
Best Regards,
Sheng
Hi,
The address part (addr_str) doesn't seem to be increasing.
How the address translation done here - IOWR_32DIRECT(addr_str, 1, i); and on what address the data 'i' is write into?
If I want to read the value from a particular address(from the above mentioned range - BASE_ADDR to END_ADDR) outside this loop , how it can be done?
When I try to read it outside the loop, the same write value is not obtained. so my doubt is how address translation in done in IOWR_32DIRECT ?
Also IOWR_32DIRECT macro is to perform a memory-mapped I/O write operation , we can directly pass numerical value. What is the need to pass formatted string in that?
Thanks in Advance!