From 5a0d084b3867dd6494974bf12a139eb98810c2e4 Mon Sep 17 00:00:00 2001 From: Alex Solomatnikov Date: Mon, 6 Feb 2017 10:39:47 -0800 Subject: [PATCH] Renamed i2cDevices to i2c --- src/main/scala/devices/i2c/I2CPeriphery.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/devices/i2c/I2CPeriphery.scala b/src/main/scala/devices/i2c/I2CPeriphery.scala index 7ee5015..09bb9cc 100644 --- a/src/main/scala/devices/i2c/I2CPeriphery.scala +++ b/src/main/scala/devices/i2c/I2CPeriphery.scala @@ -8,7 +8,7 @@ import uncore.tilelink2.TLFragmenter trait PeripheryI2C { this: TopNetwork { val i2cConfigs: Seq[I2CConfig] } => - val i2cDevices = i2cConfigs.zipWithIndex.map { case (c, i) => + val i2c = i2cConfigs.zipWithIndex.map { case (c, i) => val i2c = LazyModule(new TLI2C(c)) i2c.node := TLFragmenter(peripheryBusConfig.beatBytes, cacheBlockBytes)(peripheryBus.node) intBus.intnode := i2c.intnode @@ -27,7 +27,7 @@ trait PeripheryI2CModule { val outer: PeripheryI2C val io: PeripheryI2CBundle } => - (io.i2cs zip outer.i2cDevices).foreach { case (io, device) => + (io.i2cs zip outer.i2c).foreach { case (io, device) => io <> device.module.io.port } } -- 2.30.2