projects
/
sifive-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e4b60
)
Flipped polarity of output enables to match Guava pins logic
author
Alex Solomatnikov
<sols@sifive.com>
Thu, 9 Feb 2017 19:37:40 +0000
(11:37 -0800)
committer
Alex Solomatnikov
<sols@sifive.com>
Thu, 9 Feb 2017 19:37:40 +0000
(11:37 -0800)
src/main/scala/devices/i2c/I2C.scala
patch
|
blob
|
history
diff --git
a/src/main/scala/devices/i2c/I2C.scala
b/src/main/scala/devices/i2c/I2C.scala
index da555496a8297f1a1d69a9d7cbeb90a67b5b3b20..0c487642ab5f1fcb473e38bd51a8ebbbebcf3148 100644
(file)
--- a/
src/main/scala/devices/i2c/I2C.scala
+++ b/
src/main/scala/devices/i2c/I2C.scala
@@
-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)