Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow the avalon mm slave "address alignment" works?
Hi everyone I use avalon mm slave port with conduit to interface a 16bits peripheral, but everytime when i READ the peripgheral, the data readback can not in correct address when inspected in...
Altera_Forum
Honored Contributor
16 years agoSounds like you are finding out why native addressing is depreciated since the address offsets are fairly confusing when the master and slave widths do not match. My advice to all component developers is to make your slave port dynamic by including byte enables. Without byte enables your slave port is considered to be native and you will need to use this formula to access each word of the component:
<master address> = <slave base address> + (<slave word offset> * <master data width in bytes>) Page 9 of: http://www.altera.com/literature/hb/qts/qts_qii54003.pdf