Skip to content

Commit

Permalink
Merge pull request #2120 from juiceRv/fix/veril-fst-trace
Browse files Browse the repository at this point in the history
Fixes: Fix not close trace file when the sim is finished
  • Loading branch information
enjoy-digital authored Nov 12, 2024
2 parents 8b4949e + 5fa144e commit f056f37
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 f056f37

Please sign in to comment.