From ae8daa5705cd75808a7baa4c11917d466e979b72 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Sat, 24 Aug 2024 23:21:07 +0800 Subject: [PATCH] [t1rocket] fix wait and write in same cycle bug --- t1rocketemu/src/TestBench.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t1rocketemu/src/TestBench.scala b/t1rocketemu/src/TestBench.scala index 58b506716..fe0ad7667 100644 --- a/t1rocketemu/src/TestBench.scala +++ b/t1rocketemu/src/TestBench.scala @@ -183,7 +183,7 @@ class TestBench(generator: SerializableModuleGenerator[T1RocketTile, T1RocketTil ) ) - when(rocketProbe.waitWen && !rocketProbe.isVector && rocketProbe.waitWaddr =/= 0.U)( // should this judge vector? + when(rocketProbe.waitWen && !rocketProbe.isVector && rocketProbe.waitWaddr =/= 0.U && !rocketProbe.rfWen)( printf( cf"""{"event":"RegWriteWait","idx":${rocketProbe.waitWaddr},"cycle":${simulationTime}}\n""" )