Altera_Forum
Honored Contributor
10 years agoWhy is my software not producing the correct Avalon write?
I have my nios connected to an Avalon memory mapped bridge that will allow me to communicate with an external RTL component. All I am trying to do is read and write to a register in the RTL component, but no matter what I do I can not get writes to assert. My Avalon bridge is located at address 0x002_0000 - 0x002_0FFF. My code to write to the Avalon master is as follows:
.text
.global main
.type main, @function
main:
movi r10, 0x0020000
movi r9, 0x00AA
stwio r9, (r10)
end:
br end
.end