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

Clock is initialized at 1 instead of 0 #280

Open
johnsbrew opened this issue Jan 23, 2020 · 1 comment
Open

Clock is initialized at 1 instead of 0 #280

johnsbrew opened this issue Jan 23, 2020 · 1 comment

Comments

@johnsbrew
Copy link
Contributor

Having main clock initialized at 1instead of 0 will hide underlying issues at t=0.
We discovered this issue while interconnecting some chisel code using synchronous reset with existing SV blackboxes using Preset and we add hard time troubleshooting the issue at t=0.

Delaying first posedge clock (and hence associated synchronous reset operation) enabled us to understand rather easily what was really going on.

I set it as default for the VSIMBackend

@chick
Copy link
Contributor

chick commented Jan 23, 2020

Is this a problem with Treadle (I'm guessing no given the black boxes etc). Treadle does have
the ability to set the phase offset off the clock through command line or annotation, and it's default phase offset is 1.

Also has a PR to fix 0 not being allowed as phase shift value

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

No branches or pull requests

2 participants