From 70e78cb5239f48d97a21421bac6c96282b9988ed Mon Sep 17 00:00:00 2001 From: Ethan Wu Date: Mon, 6 Nov 2023 21:27:32 -0800 Subject: [PATCH] Fix IO direction for host Serial-TL port `cloneType` is a Chisel-internal method, use `chiselTypeOf` to construct an IO of the same type and direction. --- generators/chipyard/src/main/scala/iobinders/IOBinders.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/chipyard/src/main/scala/iobinders/IOBinders.scala b/generators/chipyard/src/main/scala/iobinders/IOBinders.scala index 773f3d3919..34be9bb7fd 100644 --- a/generators/chipyard/src/main/scala/iobinders/IOBinders.scala +++ b/generators/chipyard/src/main/scala/iobinders/IOBinders.scala @@ -355,7 +355,7 @@ class WithSerialTLPunchthrough extends OverrideIOBinder({ (system: CanHavePeripheryTLSerial) => { val (ports, cells) = system.serial_tl.zipWithIndex.map({ case (s, id) => val sys = system.asInstanceOf[BaseSubsystem] - val port = IO(s.getWrappedValue.cloneType) + val port = IO(chiselTypeOf(s.getWrappedValue)) port <> s.getWrappedValue (SerialTLPort(port, sys.p(SerialTLKey).get, system.serdesser.get, id), Nil) }).unzip