mirror of https://github.com/YosysHQ/yosys.git
Bugfix in simlib.v for iverilog
This commit is contained in:
parent
77e2d39cd0
commit
2145e57ef0
|
@ -455,6 +455,7 @@ input [B_WIDTH-1:0] B;
|
||||||
output [Y_WIDTH-1:0] Y;
|
output [Y_WIDTH-1:0] Y;
|
||||||
|
|
||||||
generate
|
generate
|
||||||
|
if (Y_WIDTH > 0)
|
||||||
if (B_SIGNED) begin:BLOCK1
|
if (B_SIGNED) begin:BLOCK1
|
||||||
assign Y = A[$signed(B) +: Y_WIDTH];
|
assign Y = A[$signed(B) +: Y_WIDTH];
|
||||||
end else begin:BLOCK2
|
end else begin:BLOCK2
|
||||||
|
|
Loading…
Reference in New Issue