build/sim/core/veril.cpp: Flush trace file on finish, fix issue with empty .fst dumps with short simulations.

This commit is contained in:
Florent Kermarrec 2024-09-25 08:53:57 +02:00
parent c95a6e041c
commit b86d76baed
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
- soc/cores/clock/colognechip : Fixed and reworked locked signal handling. - soc/cores/clock/colognechip : Fixed and reworked locked signal handling.
- litesdcard : Fixed data_i sampling (https://github.com/enjoy-digital/litesdcard/pull/34). - 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). - litespi/mmap : Fixed dummy bits (https://github.com/litex-hub/litespi/pull/71).
- sim/verilator : Fixed .fst empty dump with short simulation.
[> Added [> Added
-------- --------

View File

@ -78,6 +78,7 @@ extern "C" void litex_sim_tracer_dump()
extern "C" int litex_sim_got_finish() extern "C" int litex_sim_got_finish()
{ {
tfp->flush();
return Verilated::gotFinish(); return Verilated::gotFinish();
} }