Forum Discussion
Altera_Forum
Honored Contributor
20 years agocommunicating between UART and Memory dev ?
I am having a onchip memory on which i wish to write through input device like uart and futhur what ever i have written i want it to be looped back i.e then i want to read the contents from the memor...
Altera_Forum
Honored Contributor
20 years agoTo put it another way:
IOWR_32DIRECT(base address, offset from base address, data you want to write); // for write IORD_32DIRECT(base address, offset from base address); // for read If you want to see their definitions take a look at components\altera_nios2\HAL\inc\io.h (they boil down to a data cache bypassing read or write instruction)