Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWhy I can't see SRAM when selecting reset&exception memory location?
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.4 Replies
- Altera_Forum
Honored Contributor
Did you remember to give the nios's instruction port access to the SRAM?
(you'll need data port acces as well ....) - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
--- 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. - Altera_Forum
Honored Contributor
--- 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.