sim.pysim: in write_vcd(), close files if an exception is raised.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 08:33:48 +0000 (08:33 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 08:34:18 +0000 (08:34 +0000)
commit9bdb7accc886cf0a588df58635419c03a8484168
tree24e405663071c421828c9dfd57360fc60565c966
parent9bc42cb8c50b9124f308c13d6ceb7e25bbe41c65
sim.pysim: in write_vcd(), close files if an exception is raised.

This also avoids leaving the waveform writer list in an inconsistent
state after an exception.
nmigen/sim/pysim.py