Forum Discussion
Altera_Forum
Honored Contributor
15 years agoInterfacing with narrower width of slave
Hi I have a question regarding to interfacing with narrower or wider width of slave. As we know, our Nios II is 32-bit width. To perform a read/write to a slave, says a 16-bit memory, how should this...
Altera_Forum
Honored Contributor
15 years agoIOWR_32DIRECT() probably maps down to the correct instruction :-)
If it is 'normal' memory, you'll have to support byte enables - otherwise single byte writes won't work, even for a 16bit write you'll see two writes one will have neither byte enable asserted! For memory mapped io buffers it is usually best to create a 32bit slave that hard-wires d16-31 to zero for reads.