Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit a warning when no clock is set #475

Closed
pepijndevos opened this issue Aug 15, 2020 · 2 comments
Closed

Emit a warning when no clock is set #475

pepijndevos opened this issue Aug 15, 2020 · 2 comments

Comments

@pepijndevos
Copy link
Contributor

I was copy-pasting from various tutorials and examples, and managed to set up pysim without a clock. This caused Tick() to never return. Example snippet

sim = Simulator(spr)
def testbench():
    yield Tick()

#sim.add_clock(1e-6)
sim.add_process(testbench)
sim.run()

The reason I missed this was a combination of the tutorial I was looking at using comb and Delay() and the example I was looking at using an opaque main() function that sets up the simulator internally.

@pepijndevos
Copy link
Contributor Author

I think I found the previous issue you were referring to #442

@whitequark
Copy link
Member

Ah right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants