Merge pull request #1654 from ucb-bar/tlser-punchthrough-io

Fix IO direction for host Serial-TL port
This commit is contained in:
Jerry Zhao
2023-11-06 23:55:53 -08:00
committed by GitHub

View File

@@ -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