Skip to content

Commit

Permalink
build/sim/core/veril.cpp: Flush and close trace file on finish, fix i…
Browse files Browse the repository at this point in the history
…ssue with empty .fst dumps with short simulations.
  • Loading branch information
enjoy-digital committed Sep 25, 2024
1 parent c95a6e0 commit 00f72e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- soc/cores/clock/colognechip : Fixed and reworked locked signal handling.
- litesdcard : Fixed data_i sampling (https://github.com/enjoy-digital/litesdcard/pull/34).
- litespi/mmap : Fixed dummy bits (https://github.com/litex-hub/litespi/pull/71).
- sim/verilator : Fixed .fst empty dump with short simulation.

[> Added
--------
Expand Down
2 changes: 2 additions & 0 deletions litex/build/sim/core/veril.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ extern "C" void litex_sim_tracer_dump()

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

Expand Down

0 comments on commit 00f72e1

Please sign in to comment.