Flipped polarity of output enables to match Guava pins logic
This commit is contained in:
parent
72e4b60d81
commit
095cb158dd
@ -182,10 +182,10 @@ trait I2CModule extends Module with HasI2CParameters with HasRegMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val sclOen = Reg(init = true.B)
|
val sclOen = Reg(init = true.B)
|
||||||
io.port.scl.oe := sclOen
|
io.port.scl.oe := !sclOen
|
||||||
|
|
||||||
val sdaOen = Reg(init = true.B)
|
val sdaOen = Reg(init = true.B)
|
||||||
io.port.sda.oe := sdaOen
|
io.port.sda.oe := !sdaOen
|
||||||
|
|
||||||
val sdaChk = Reg(init = false.B) // check SDA output (Multi-master arbitration)
|
val sdaChk = Reg(init = false.B) // check SDA output (Multi-master arbitration)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user