1
0

Flipped polarity of output enables to match Guava pins logic

This commit is contained in:
Alex Solomatnikov 2017-02-09 11:37:40 -08:00
parent 72e4b60d81
commit 095cb158dd

View File

@ -182,10 +182,10 @@ trait I2CModule extends Module with HasI2CParameters with HasRegMap {
}
val sclOen = Reg(init = true.B)
io.port.scl.oe := sclOen
io.port.scl.oe := !sclOen
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)