mirror of https://github.com/YosysHQ/yosys.git
Fixed techmap of $gt and $ge with multi-bit outputs
This commit is contained in:
parent
f485962c5e
commit
b41740060b
|
@ -855,9 +855,15 @@ output [Y_WIDTH-1:0] Y;
|
|||
) ge_via_le (
|
||||
.A(B),
|
||||
.B(A),
|
||||
.Y(Y)
|
||||
.Y(Y[0])
|
||||
);
|
||||
|
||||
generate
|
||||
if (Y_WIDTH > 1) begin:V
|
||||
assign Y[Y_WIDTH-1:1] = 0;
|
||||
end
|
||||
endgenerate
|
||||
|
||||
endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
@ -882,9 +888,15 @@ output [Y_WIDTH-1:0] Y;
|
|||
) gt_via_lt (
|
||||
.A(B),
|
||||
.B(A),
|
||||
.Y(Y)
|
||||
.Y(Y[0])
|
||||
);
|
||||
|
||||
generate
|
||||
if (Y_WIDTH > 1) begin:V
|
||||
assign Y[Y_WIDTH-1:1] = 0;
|
||||
end
|
||||
endgenerate
|
||||
|
||||
endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue