-
Notifications
You must be signed in to change notification settings - Fork 902
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
Restore sim output from initial $display #4131
Conversation
@whitequark Is this the correct fix? |
The fix is based on the amended documentation for |
FYI no ill effects in sv-tests either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, no; this would make the $print
cell trigger on each cycle of sim
, not just the initial one.
As far as I can tell, it works as intended. E.g. running
yields
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I don't understand the sim pass very well.
Well, on each cycle in which the arguments change, since the initial prints are now being handled as if Consider
simulated with You get
|
f41822e
to
cc4506a
Compare
@povik I tried to remedy this now - can you please have a look? |
Still doesn't do what we want in all cases, consider:
this will make the |
I suggest we establish a general way to query if we are in the initial cycle of a simulation. As far as I can tell, there's the What do you say @jix? Are we free to conflate the |
cc4506a
to
acf916f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should eventually clean this up so that each print cell doesn't maintain its own ad hoc "initial" flag.
I was just about to write that I propose this as an interim solution 😅 |
I agree. Let's wait for CI to be happy then merge. |
Restores
sim
output frominitial $display
, which was inadvertedly removed in #4129.