back.pysim: close .vcd/.gtkw files on context manager exit.
This commit is contained in:
parent
1655b59d1b
commit
d9aaf0114b
1 changed files with 5 additions and 0 deletions
|
|
@ -579,3 +579,8 @@ class Simulator:
|
|||
|
||||
for signal in self._gtkw_signals:
|
||||
add_trace(signal)
|
||||
|
||||
if self._vcd_file:
|
||||
self._vcd_file.close()
|
||||
if self._gtkw_file:
|
||||
self._gtkw_file.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue