If you are looking at the address coming from Nios, remember that the databus is 32-bits wide. Assuming your peripheral is 16-bits wide, the Avalon Switch Fabric is taking care of the bus-width matching for you. Therefore, if you really want to see the low order address bits, you'll be better off examining the address at the peripheral.
BTW, I assume you have no data cache in your system. Otherwise, these accesses will be cached, and the accesses won't make it to your peripheral as anticipated.
--- Quote Start ---
originally posted by richy759@Dec 8 2006, 09:30 AM
this is not the case however. address bit 1 is 1 when i do a write but when i read, address 1 is 0.
bearing in mind these are the nios address lines and not mine.
has anyone come across this before or have any idea what the problem may be?
many thanks,
richard
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19907)
--- quote end ---
--- Quote End ---