From 7bcfaf1b7d74f970b95855e94582b0e5d7261dcd Mon Sep 17 00:00:00 2001 From: Kartik Prabhu Date: Wed, 10 Mar 2021 16:50:36 -0800 Subject: [PATCH] Fix IOCell generation for clock and reset to use IOCellKey --- generators/chipyard/src/main/scala/Clocks.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generators/chipyard/src/main/scala/Clocks.scala b/generators/chipyard/src/main/scala/Clocks.scala index 9ca6a801e2..7d54f7f08e 100644 --- a/generators/chipyard/src/main/scala/Clocks.scala +++ b/generators/chipyard/src/main/scala/Clocks.scala @@ -14,6 +14,7 @@ import barstools.iocell.chisel._ import testchipip.{TLTileResetCtrl} import chipyard.clocking._ +import chipyard.iobinders._ /** * A simple reset implementation that punches out reset ports @@ -25,7 +26,7 @@ object GenerateReset { implicit val p = chiptop.p // this needs directionality so generateIOFromSignal works val async_reset_wire = Wire(Input(AsyncReset())) - val (reset_io, resetIOCell) = IOCell.generateIOFromSignal(async_reset_wire, "reset", + val (reset_io, resetIOCell) = IOCell.generateIOFromSignal(async_reset_wire, "reset", p(IOCellKey), abstractResetAsAsync = true) chiptop.iocells ++= resetIOCell @@ -94,7 +95,7 @@ object ClockingSchemeGenerators { InModuleBody { val clock_wire = Wire(Input(Clock())) val reset_wire = GenerateReset(chiptop, clock_wire) - val (clock_io, clockIOCell) = IOCell.generateIOFromSignal(clock_wire, "clock") + val (clock_io, clockIOCell) = IOCell.generateIOFromSignal(clock_wire, "clock", p(IOCellKey)) chiptop.iocells ++= clockIOCell referenceClockSource.out.unzip._1.map { o =>