back.pysim: fix emission of undriven traces to VCD files.
authorwhitequark <whitequark@whitequark.org>
Fri, 3 Apr 2020 05:20:42 +0000 (05:20 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:22:24 +0000 (13:22 +0000)
commitc89bca6042910eb0e84b11b2bdfee962001bda1c
treef345bfdb663ddc65544f84d5c606d0409dbff7d3
parent7e624fca066a2e05ce0dc67b0a2b31acb9ed81cc
back.pysim: fix emission of undriven traces to VCD files.

This has been originally implemented in commit d3775eed (which fixed
`write_vcd(traces=)` to do something at all), but had a flaw where
undriven traces would not be correctly placed in hierarchy. This
used to produce incorrect results on pyvcd 0.1, but started causing
assertion failures on pyvcd 0.2.

Fixes #345.
nmigen/back/pysim.py