Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAvalon MM Interface
Hi, I'm using a Nios2 processor as an avalon memory mapped master. The Nios2 is connected to a avalon mm slave, which is the controller for a sram. Now I can read and write from Nios2 to the s...
Altera_Forum
Honored Contributor
16 years agoThe address that I can see in SOPC builder is 0x0c000000.
Access with Nios runs:
/* Fill memory with a known pattern. */
for (int offset = 0; offset < 4096; offset+=4)
{
IOWR_32DIRECT(memory_base, offset, offset+1);
}
for (int offset = 0; offset < 4096; offset+=4)
{
pattern=IORD_32DIRECT(memory_base, offset);
}
Which address do I have to set in the VHDL-code above? 0x0c0000000 / 4 = 0x03000000 ????