Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Getting System.h to list base of dual port onchip RAM

Altera_Forum
Honored Contributor II
1,209 Views

Hello, 

 

I have a project with dual port on-chip ram. One of the ports is accesible from the NIOS II. "system.h" has no information about the memory. I would like to get the base address and hopefully the span from "system.h". 

 

Does anyone know how to get "system.h" to include this information? 

 

Important portion from my ptf file: 

 

Entry onchip_ram/s2 { address = "0x00000000"; span = "0x00008000"; is_bridge = "0"; }  

 

EDIT: 

I'm using 9.0SP2 for the NIOS IDE and Quartus. I would rather not upgrade because the environment is setup on multiple systems.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
503 Views

I had the same problem, and it is a bug in SOPC builder (or more precisely in the gtf scripts). 

The dual port RAM will only show up in system.h if the first slave port is connected to the Nios CPU.
0 Kudos
Altera_Forum
Honored Contributor II
503 Views

Unfortunately, I figured that was the problem. I'll have to change that and recompile the design later. 

 

Thank you, 

 

Jeff
0 Kudos
Reply