1
0

i2c: Remove pluralization on the bundle name, i2c not i2cs

This commit is contained in:
Megan Wachs 2017-07-20 10:53:44 -07:00
parent ef4f2ed888
commit 00086c26e6

View File

@ -25,9 +25,9 @@ trait HasPeripheryI2CBundle {
trait HasPeripheryI2CModuleImp extends LazyMultiIOModuleImp with HasPeripheryI2CBundle { trait HasPeripheryI2CModuleImp extends LazyMultiIOModuleImp with HasPeripheryI2CBundle {
val outer: HasPeripheryI2C val outer: HasPeripheryI2C
val i2cs = IO(Vec(outer.i2cParams.size, new I2CPort)) val i2c = IO(Vec(outer.i2cParams.size, new I2CPort))
(i2cs zip outer.i2c).foreach { case (io, device) => (i2c zip outer.i2c).foreach { case (io, device) =>
io <> device.module.io.port io <> device.module.io.port
} }
} }