Merge pull request #2120 from juiceRv/fix/veril-fst-trace

Fixes: Fix not close trace file when the sim is finished
This commit is contained in:
enjoy-digital 2024-11-12 21:37:09 +01:00 committed by GitHub
commit f056f37c29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}