Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNiosII memory reservation
Hello guys, I have a system running a NiosII processor. In my Qsys system I have connected one port of a dual-port-onchipmem to the Nios data master port and the second port has been exported...
Altera_Forum
Honored Contributor
11 years agoYou don't want to "allocate" the dual port RAM - you most likely just want to refer to it through a pointer set to the corresponding xxx_BASE address that is automatically generated in the system.h file.
Something like:
volatile uint8_t *my_dp_ram = (volatile uint8_t *)alt_remap_uncached(MY_DUAL_PORT_RAM_BASE, MY_DUAL_PORT_RAM_SIZE);