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++
12745 Discussions

Why I can't see SRAM when selecting reset&exception memory location?

Altera_Forum
Honored Contributor II
1,502 Views

My board has a SRAM on it. So I tried to use it in NIOS II. 

 

From ftp://ftp.altera.com/up/pub/university_program_ip_cores/90 , I got a SRAM_Controller code to interface the SRAM to Avalon bus. However, when I try to put my code to SRAM by setting reset&exception memory location, I can not find this memory in the drop-down list. On-chip SRAM and CFI FLASH can be displayed in the drop-down list. 

 

Can anyone help to explain how I can put my software code to the SRAM directly? Thanks.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
776 Views

Did you remember to give the nios's instruction port access to the SRAM? 

(you'll need data port acces as well ....)
0 Kudos
Altera_Forum
Honored Contributor II
776 Views

If above does not help, make sure that in the .tcl-file of the component there is following line: 

set_interface_property avalon_slave_xxx isMemoryDevice true
0 Kudos
Altera_Forum
Honored Contributor II
776 Views

 

--- Quote Start ---  

Did you remember to give the nios's instruction port access to the SRAM? 

(you'll need data port acces as well ....) 

--- Quote End ---  

 

 

Thanks. Both instruction & data port are connected, but the problem still exits.
0 Kudos
Altera_Forum
Honored Contributor II
776 Views

 

--- Quote Start ---  

If above does not help, make sure that in the .tcl-file of the component there is following line: 

set_interface_property avalon_slave_xxx isMemoryDevice true 

--- Quote End ---  

 

 

Thanks. This method works. Now I can run download software to SRAM and run it.
0 Kudos
Reply