Forum Discussion
Altera_Forum
Honored Contributor
14 years agoConnecting an 8-bit peripheral to a 32-bit avalon bus
Hello, I am connecting an I2C core to a ColdFire V1 IP Core using the Avalon Bus in SOPC. I get a warning about the slave (I2C core), which has 8-bit registers, not having byteenables. Then it ...
Altera_Forum
Honored Contributor
14 years agoIt is really best to make your slave 32bits and to ignore the high bits (set to zero on reads).
You probably still want to verify that the byte enable for D0..7 is asserted. Note that the nios cpu always does 32bit reads (all byte enables asserted), discarding the unwanted bits internally. The additional logic for the mux is almost certainly less than that for the bus width adapter!