Skip to content

Commit

Permalink
[difftest] fix rebase bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Jun 10, 2024
1 parent cdb31cf commit 1a766cf
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ipemu/src/TestBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,6 @@ class TestBench(generator: SerializableModuleGenerator[T1, T1Parameter]) extends

val t1Probe = probe.read(dut.t1Probe)

withClockAndReset(clock, reset) {
// memory write
lsuProbe.slots.zipWithIndex.foreach { case (mshr, i) => when(mshr.writeValid)(printf(cf"""{"event":"vrfWriteFromLsu","parameter":{"idx":$i,"vd":${mshr.dataVd},"offset":${mshr.dataOffset},"mask":${mshr.dataMask},"data":${mshr.dataData},"instruction":${mshr.dataInstruction},"lane":${mshr.targetLane}}}\n""")) }
// vrf write
laneVrfProbes.zipWithIndex.foreach { case (lane, i) => when(lane.valid)(printf(cf"""{"event":"vrfWriteFromLane","parameter":{"idx":$i,"vd":${lane.requestVd},"offset":${lane.requestOffset},"mask":${lane.requestMask},"data":${lane.requestData},"instruction":${lane.requestInstruction}}}\n""")) }
// issue
when(dut.request.fire)(printf(cf"""{"event":"issue","parameter":{"idx":${t1Probe.instructionCounter}}}\n"""))
// inst
when(dut.response.valid)(printf(cf"""{"event":"inst","parameter":{"data":${dut.response.bits.data},"vxsat":${dut.response.bits.vxsat},"rd_valid":${dut.response.bits.rd.valid},"rd":${dut.response.bits.rd.bits},"mem":${dut.response.bits.mem}}}\n"""))
// peekTL
dut.memoryPorts.zipWithIndex.foreach { case (bundle, i) => when(bundle.a.valid)(printf(cf"""{"event":"peekTL","parameter":{"idx":$i,"opcode":${bundle.a.bits.opcode},"param":${bundle.a.bits.param},"size":${bundle.a.bits.size},"source":${bundle.a.bits.source},"address":${bundle.a.bits.address},"mask":${bundle.a.bits.mask},"data":${bundle.a.bits.data},"corrupt":${bundle.a.bits.corrupt},"dReady":${bundle.d.ready}}}\n""")) }
// lsu enq
when(lsuProbe.reqEnq.orR)(printf(cf"""{"event":"lsuEnq","parameter":{"enq":${lsuProbe.reqEnq}}}\n"""))
}

withClockAndReset(clock, reset) {
// count cycle for peek tl
val cycleCounter = RegInit(0.U(64.W))
Expand Down

0 comments on commit 1a766cf

Please sign in to comment.