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
Icarus is behaving correctly here. The right hand side of your assignment to c is an unsigned expression (the true branch is signed but the false branch is unsigned, so the overall expression is unsigned). The Verilog >>> operator only performs an arithmetic shift if the result type is signed (that's daft, but it's what the IEEE standard says).
To get the behaviour you expect, you need to write
This is a dramatically reduced test case (the original looks nothing like this).
In my understanding this should never print anything, but it does for me.
I'll try to rebuild from git, but Mac Brew is up to date.
The text was updated successfully, but these errors were encountered: