Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS II byte enables?
I have a nios II system and some custom slaves. I understand that the Nios II address space is mapped to 32 bit wide registers. When I make readdata or writedata in my slaves 8 or 16 bits the CPU e...
Altera_Forum
Honored Contributor
16 years agofrom what i have monitored with signaltap, they indicate which byte is realy valid.
for example if your slave is 8 bit wide and is attached as a memory so a 32bit from nios side is 4 accesses to your slave if your application reads the lower 16bit then byteenable[] indicate with 0x3 that the lower 2 bytes are requested. the avalon switchfabric will read the full 4 bytes. you can add a logic between avalon and your slave that monitors which bytes are realy requested and discrads the other to get rid of these unneeded reads. the byteenable to not mask anything they just indicated which and how many bytes of the actuall 32 databits are valid / requested. so they are only some kind of informational. it's up to you to use them