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:
commit
f056f37c29
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue