Fixes: Fix no close trace file when the sim is finished
This commit is contained in:
parent
8b4949edcd
commit
5fa144ec3a
|
@ -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