diff --git a/src/main/scala/devices/debug/Periphery.scala b/src/main/scala/devices/debug/Periphery.scala index 3aca36ad273..f3fbba9a6d5 100644 --- a/src/main/scala/devices/debug/Periphery.scala +++ b/src/main/scala/devices/debug/Periphery.scala @@ -80,21 +80,21 @@ trait HasPeripheryDebug { this: BaseSubsystem => domain } val debugOpt = p(DebugModuleKey).map { params => - val debug = LazyModule(new TLDebugModule(tlbus.beatBytes)) + val tlDM = LazyModule(new TLDebugModule(tlbus.beatBytes)) - debug.node := tlbus.coupleTo("debug"){ TLFragmenter(tlbus) := _ } - debug.dmInner.dmInner.customNode := debugCustomXbarOpt.get.node + tlDM.node := tlbus.coupleTo("debug"){ TLFragmenter(tlbus) := _ } + tlDM.dmInner.dmInner.customNode := debugCustomXbarOpt.get.node - (apbDebugNodeOpt zip debug.apbNodeOpt) foreach { case (master, slave) => + (apbDebugNodeOpt zip tlDM.apbNodeOpt) foreach { case (master, slave) => slave := master } - debug.dmInner.dmInner.sb2tlOpt.foreach { sb2tl => + tlDM.dmInner.dmInner.sb2tlOpt.foreach { sb2tl => locateTLBusWrapper(p(ExportDebug).masterWhere).coupleFrom("debug_sb") { _ := TLWidthWidget(1) := sb2tl.node } } - debug + tlDM } }