sim: use Value.cast on traces.

See kuznia-rdzeni/coreblocks#357.
This commit is contained in:
Wanda 2024-01-31 00:07:33 +01:00 committed by Catherine
parent ea3d6c9557
commit 1506f08b81

View file

@ -65,6 +65,7 @@ class _VCDWriter:
trace_names = SignalDict()
assigned_names = set()
for trace in traces:
trace = Value.cast(trace)
for trace_signal in trace._rhs_signals():
if trace_signal not in signal_names:
if trace_signal.name not in assigned_names: