Forum Discussion
Altera_Forum
Honored Contributor
12 years agoProgramming NIOSII interfaced with custom component, using Avalon MM Interface
Hello Everyone, I am trying to interface NIOS II with a custom component using Avalon MM Inferface where NIOS acts as Master. During the C coding, how do i get access to the function to send/...
Altera_Forum
Honored Contributor
12 years agoYou'll want to use the IOWR(),IORD() functions to access Avalon-MM registers in your peripheral (assuming that you're trying to read/write registers). See the software handbook (http://www.altera.com/literature/hb/nios2/n2sw_nii5v2.pdf), page 9-4 in particular. Or you can use the direct functions (ex IORD_32DIRECT()).