Forum Discussion
Altera_Forum
Honored Contributor
11 years agoIORD and IOWR issues
Hello there, I am struggling to understand a simple write and read with the nios processor. With qsys, I have setup a simple testcase where a nios (e) with no cache and a PIO are connected...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Afterwards, with eclipse program, I do a IOWR(PIO_BASE,0,0xA); printf("%X ",IORD(PIO_BASE,0)); I was expecting that "10101" in binary from a IOWR of 0xA. However, it reads "0xA". --- Quote End --- Make sure Nios doesn't perform a cache access instead of the actual IORD access. Flush the cache between the two instructions or force IORD to be uncached by setting address bit 31.