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:
ef4f2ed
)
i2c: Remove pluralization on the bundle name, i2c not i2cs
author
Megan Wachs
<megan@sifive.com>
Thu, 20 Jul 2017 17:53:44 +0000
(10:53 -0700)
committer
Megan Wachs
<megan@sifive.com>
Thu, 20 Jul 2017 17:53:44 +0000
(10:53 -0700)
src/main/scala/devices/i2c/I2CPeriphery.scala
patch
|
blob
|
history
diff --git
a/src/main/scala/devices/i2c/I2CPeriphery.scala
b/src/main/scala/devices/i2c/I2CPeriphery.scala
index c9de71b1755cd2557cb5b77419daccbe7b2c9538..6444a397a9bbd1047383aa17203fb40e0fffbda0 100644
(file)
--- a/
src/main/scala/devices/i2c/I2CPeriphery.scala
+++ b/
src/main/scala/devices/i2c/I2CPeriphery.scala
@@
-25,9
+25,9
@@
trait HasPeripheryI2CBundle {
trait HasPeripheryI2CModuleImp extends LazyMultiIOModuleImp with HasPeripheryI2CBundle {
val outer: HasPeripheryI2C
- val i2c
s
= IO(Vec(outer.i2cParams.size, new I2CPort))
+ val i2c = IO(Vec(outer.i2cParams.size, new I2CPort))
- (i2c
s
zip outer.i2c).foreach { case (io, device) =>
+ (i2c zip outer.i2c).foreach { case (io, device) =>
io <> device.module.io.port
}
}