There was an error while loading. Please reload this page.
1 parent b5cb8ed commit 004fc77Copy full SHA for 004fc77
1 file changed
src/main/scala/radiance/unittest/Muon.scala
@@ -96,6 +96,16 @@ class MuonBackendTestbench(implicit val p: Parameters) extends Module with HasCo
96
TileKey -> DummyTileParams
97
))))
98
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
+
109
ibuf.idIO.coreId := 0.U
110
ibuf.idIO.clusterId := 0.U
111
0 commit comments