Forum Discussion
Altera_Forum
Honored Contributor
21 years agoFound it, thanks. As described in Nios II Software Developer's Handbook, the use of macro IORD(BASE, REGNUM) is to "Read the value of the register at offset REGNUM within a device with base address BASE. Registers are assumed to be offset by the address width of the bus." And the use of macro IORD_8DIRECT(BASE, OFFSET) is to "Make an 8-bit read access at the location with address BASE+OFFSET." Does the two macros both return a byte value? Are the two macros equivalent?