Skip to content

Commit

Permalink
Fixes: Fix no close trace file when the sim is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaohuixxh committed Nov 7, 2024
1 parent 8b4949e commit 5fa144e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions litex/build/sim/core/veril.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ extern "C" void litex_sim_tracer_dump()

extern "C" int litex_sim_got_finish()
{
int finished;
tfp->flush();
if(finished = Verilated::gotFinish()) {
tfp->close();
}
return Verilated::gotFinish();
}

Expand Down

0 comments on commit 5fa144e

Please sign in to comment.