Could any one tell me how to write OCM from PS and read from PL?
I used to write DDR from PS and read from PL. But accessing ddr could be slow. Since my data is not that big. I want to use OCM to accelerate the process.
The screenshot below is how to used to access the data using DDR. Now, in order to using OCM, I just mapped the address from DDR to ocm(0x0000_0000 to 0x0003_FFFF). From the ps side, I write the data array to the address start from 0x0000_0000, and from PL side, I changed the read address to 0x0000_0000. I could still get the correct result, but the run-time is still almost the same. Any idea why it is not working?
Question
hengzhao
Hi,
Could any one tell me how to write OCM from PS and read from PL?
I used to write DDR from PS and read from PL. But accessing ddr could be slow. Since my data is not that big. I want to use OCM to accelerate the process.
The screenshot below is how to used to access the data using DDR. Now, in order to using OCM, I just mapped the address from DDR to ocm(0x0000_0000 to 0x0003_FFFF). From the ps side, I write the data array to the address start from 0x0000_0000, and from PL side, I changed the read address to 0x0000_0000. I could still get the correct result, but the run-time is still almost the same. Any idea why it is not working?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.