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
verilog-2001, 4.4.2: self-determined expressions size: answer = (a + b) >> 1; //will not work properly and answer = (a + b + 0) >> 1; //will work correctly and table 29, Signal(4).eq((Signal(4, reset=0xf) + Signal(4, reset=0xf)) >> 1)
Mux() is probably unsigned if the first operand (the conditional, usually a comparison) is unsigned: Mux(1, Signal((3, True), reset=-1), Signal((2, True), reset=-1))
Cat([Signal((17, True)) for i in range(4)]).eq(Cat([Signal((17, True)) for i in range(4)])) drama and simulation/implementation mismatch (or vivado bug) of m-labs/artiq@0b08622
The text was updated successfully, but these errors were encountered:
answer = (a + b) >> 1; //will not work properly
andanswer = (a + b + 0) >> 1; //will work correctly
and table 29,Signal(4).eq((Signal(4, reset=0xf) + Signal(4, reset=0xf)) >> 1)
Mux()
is probably unsigned if the first operand (the conditional, usually a comparison) is unsigned:Mux(1, Signal((3, True), reset=-1), Signal((2, True), reset=-1))
Cat([Signal((17, True)) for i in range(4)]).eq(Cat([Signal((17, True)) for i in range(4)]))
drama and simulation/implementation mismatch (or vivado bug) of m-labs/artiq@0b08622The text was updated successfully, but these errors were encountered: