Skip to content

Commit 3380196

Browse files
authored
fix up extra waveform dump behavior in svsim (#4592)
When added require statement in ChiselSim/svsim, the delay value will be set to 0, which will cause an extra dump waveform behavior. So we only call `eval_step` once to update the design model
1 parent 4177bfa commit 3380196

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

svsim/src/main/resources/simulation-driver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ void simulation_main(int argc, char const **argv) {
914914
}
915915

916916
void run_simulation(int delay) {
917+
if(!delay) {
918+
testbench->eval_step();
919+
return;
920+
}
917921
testbench->eval();
918922
context->timeInc(delay);
919923
}

0 commit comments

Comments
 (0)