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
[jeanthomas@computer test]$ python test.py simulate -c 10
Traceback (most recent call last):
File "test.py", line 20, in <module>
main(top, ports=[top.a, top.b])
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/cli.py", line 78, in main
main_runner(parser, parser.parse_args(), *args, **kwargs)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/cli.py", line 71, in main_runner
sim.add_clock(args.sync_period)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/back/pysim.py", line 1005, in add_clock
raise ValueError("Domain {!r} is not present in simulation"
ValueError: Domain 'sync' is not present in simulation
As I workaround I added a sync statement to the design and it worked.
The text was updated successfully, but these errors were encountered:
Well, what's the point of having a clock in a fully combinatorial design? This is one of the reasons why the CLI simulate command was a terrible idea that I regret...
I'm closing this with the understanding that the current "toplevel" (nmigen.cli) is very primitive and is not suitable for all but the simplest, most ordinary tasks. We'll improve it, but not right now.
Hi! I noticed that the following code can't be simulated with pysim:
I get the following error message:
As I workaround I added a sync statement to the design and it worked.
The text was updated successfully, but these errors were encountered: