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 回复数
--- 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.
--- 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.
