Icarus confused about signed/unsigned in strange ?: example #20
Comments
|
I've pushed a fix for this to the git master branch. The compiler was correctly determining that the expression was unsigned, but losing this information during optimisation of the ternary expressions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following module should set the output to constant 0, because the 4'b0 makes the whole expression unsigned.
But Icarus Verilog (git 3e41a93) assigns 1 instead. Interestingly the bug goes away if the (1 ? b : b) is replaced by b.
The text was updated successfully, but these errors were encountered: