migen icon indicating copy to clipboard operation
migen copied to clipboard

incorrect Cat element width in Verilog export

Open sbourdeauducq opened this issue 9 years ago • 0 comments

The following code, with x a n-bit signal: Cat(x+1, 1) should produce a n+2 bit value (carry from the addition, plus 1 added by Cat).

The simulator implements this behavior, but the Verilog output is {1'b1, x+1}, which is only n+1 bits (the carry bit from the addition is lost).

sbourdeauducq avatar Oct 19 '15 08:10 sbourdeauducq