Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change debug module name to tlDM. #3029

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main/scala/devices/debug/Periphery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down