Skip to content

Commit 004fc77

Browse files
committed
Missing debugContext drive for backend config
1 parent b5cb8ed commit 004fc77

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/scala/radiance/unittest/Muon.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ class MuonBackendTestbench(implicit val p: Parameters) extends Module with HasCo
9696
TileKey -> DummyTileParams
9797
))))
9898

99+
if (muonParams.debug) {
100+
val debugContext = Wire(new DebugContext)
101+
val cycle = RegInit(0.U(64.W))
102+
cycle := cycle + 1.U
103+
debugContext.cycle := cycle
104+
debugContext.clusterId := 0.U
105+
debugContext.coreId := 0.U
106+
be.debug.get := debugContext
107+
}
108+
99109
ibuf.idIO.coreId := 0.U
100110
ibuf.idIO.clusterId := 0.U
101111

0 commit comments

Comments
 (0)