From 1506f08b81fab25087bb449c96d276d294617576 Mon Sep 17 00:00:00 2001 From: Wanda Date: Wed, 31 Jan 2024 00:07:33 +0100 Subject: [PATCH] sim: use `Value.cast` on traces. See kuznia-rdzeni/coreblocks#357. --- amaranth/sim/pysim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/amaranth/sim/pysim.py b/amaranth/sim/pysim.py index aac3ab0..0fa9ea0 100644 --- a/amaranth/sim/pysim.py +++ b/amaranth/sim/pysim.py @@ -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: