CAlex
Contributor
2 years agoHow to use on chip memory by HPS baremetal
Hi,
it's based on CycloneV soc dev kit,
the on chip memory was linked to H2F AXI(128bit wide). So I set the OCMemory as 128 bit and writeable RAM.
In the HPS code I setup the FPGA image, openned the AXI bridge and set MPU 0x0 at bootROM and NONMPU 0x0 at OCRAM.
I mapped the OCMemory as 0xC0000000 + ip offset based on hps_0.h
And then I use "memcpy(buffer, on-chip-memory, lenth)." to write the buffer to the OCM.
So
1. what else do I need to do to let HPS communicate with OCM?
2. The QSYS mentioned the HEX file, do I need to use that?
3. If so, is there any guide?
4. Whether can FPGA read the OCM at the same time?
5. How?
Thank you.
Reguards.
Alex