You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when trying to simulate an FSM containing delayed_enter with vcd_name provided, saving of VCD fails because of 'AnonymousState' object has no attribute 'encode' and object of type 'AnonymousState' has no len().
Traceback (most recent call last):
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 414, in run_simulation
s.run()
~~~~~^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 406, in run
self._commit_and_comb_propagate()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 338, in _commit_and_comb_propagate
self.vcd.set(signal, self.evaluator.signal_values[signal])
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/vcd.py", line 66, in set
self._write_value(self.buffer_file, signal, value)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/vcd.py", line 60, in _write_value
self._write_enum_value(self.buffer_file, signal, value)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/vcd.py", line 53, in _write_enum_value
for c in signal._enumeration[value].encode():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AnonymousState' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "prjdir/test.py", line 36, in <module>
run_simulation(dut, testbench(), vcd_name="toggle_fsm.vcd")
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 413, in run_simulation
with Simulator(*args, **kwargs) as s:
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 323, in __exit__
self.close()
~~~~~~~~~~^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/core.py", line 326, in close
self.vcd.close()
~~~~~~~~~~~~~~^^
File "prjdir/.venv/lib64/python3.13/site-packages/migen/sim/vcd.py", line 82, in close
size = max([len(v) for v in signal._enumeration.values()])*8
~~~^^^
TypeError: object of type 'AnonymousState' has no len()
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
when trying to simulate an FSM containing
delayed_enter
withvcd_name
provided, saving of VCD fails because of'AnonymousState' object has no attribute 'encode'
andobject of type 'AnonymousState' has no len()
.Example:
This fails with:
The text was updated successfully, but these errors were encountered: