Altera_Forum
Honored Contributor
8 years agohow to read/write to dual port ram
I added a dual port ram in on-chip memory named "dpram" to qsys but don't know how to read or write to it in Eclipse.
Am using Cyclone 10LP and Quartus Prime Lite Edition 17.1. I tried this simple code : IOWC(DPRAM_BASE, 0 , 1); int Byte = IORD( DPRAM_BASE, 0 ); // should read back the 1 error msg says: Symbol "DPRAM_BASE" could not be resolved. Is there any literature describing how to write C code to dprams?