Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIt would help if you said how your address appears to be getting messed up.
I'm guessing that the address provided by the master it is shifted right by one bit when it arrives at the slave (it's a 16 bit slave on a 32 bit master). The byteenables will be 11 if the master did a 16 bit access (or larger), 01 or 10 if the master did a byte access. For a 16 bit slave you can shift the word address left by one bit and use ~byteenable[0] at your least significant byte address bit. It's a little more complex for 32 bit slaves. I think there is a way to ask for byte addresses but I can't find it right now.