Altera_Forum
Honored Contributor
13 years agoSRAM Addressing in QSYS
Hello I'm using a DE2-115 board with 2 MB SRAM (Address width 20. Data width 16).
I used Qsys "Generic tri state controller" to attach the memory to the NIOS processor. Problem: How to access the entire 2MB RAM from c code ? Qsys give to the sram only a 20 bit address on its data bus (instead a 21 bit) so in C code I can access only the first MB. The following example generates errors: sram_mem= (void*)SSRAM_BASE; memset(sram_mem,0,2097152); Thanks Tiziano