Skip to content

Commit 885dd59

Browse files
authored
Merge pull request #3762 from richardyrh/master
2 parents 2fa629a + bfd22a0 commit 885dd59

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/scala/subsystem/PeripheryBus.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ class PeripheryBus(params: PeripheryBusParams, name: String)(implicit p: Paramet
6363
TLWidthWidget(w) :*= TLAtomicAutomata(arithmetic = pa.arithmetic, nameSuffix = Some(name))
6464
} .getOrElse { TLAtomicAutomata(arithmetic = pa.arithmetic, nameSuffix = Some(name)) })
6565
:*= in_xbar.node)
66-
} .getOrElse { TLXbar() :*= fixer.node }
66+
} .getOrElse {
67+
val in_xbar = LazyModule(new TLXbar(nameSuffix = Some(s"${name}_in")))
68+
val out_xbar = LazyModule(new TLXbar(nameSuffix = Some(s"${name}_out")))
69+
(out_xbar.node :*= fixer.node :*= in_xbar.node)
70+
}
6771

6872
def inwardNode: TLInwardNode = node
6973
def outwardNode: TLOutwardNode = node

0 commit comments

Comments
 (0)