Forum Discussion
Altera_Forum
Honored Contributor
20 years agoProblem testing SRAM device
Hi I made a Project in Quartus II, and in SOPC Builder, I added NIOS II cpu, AvalonTri-State Bridge to an external SRAM, Jtag UART and a on-chip RAM. The system generation and hardware configur...
Altera_Forum
Honored Contributor
20 years agoHi
Yes you can do that, and you can also just use the name of your RAM and than _base. For example if your RAM is named Micron_RAM in SOPC builder, you just write IOWR_32DIRECT(Micron_RAM_BASE, offset, pattern); Micron_RAM_BASE is equal whit the base adress of your ram. Look in system.h it can be found in your Nios IDE project folder. and for my code above it should be EXT_SRAM_BASE instead of ONCHIP_RAM_BASE in IOWR and IORD becouse Im using my external SRAM not the on-chip RAM.