mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
Fixed techmap of $gt and $ge with multi-bit outputs
This commit is contained in:
parent
f485962c5e
commit
b41740060b
1 changed files with 14 additions and 2 deletions
|
@ -855,9 +855,15 @@ output [Y_WIDTH-1:0] Y;
|
||||||
) ge_via_le (
|
) ge_via_le (
|
||||||
.A(B),
|
.A(B),
|
||||||
.B(A),
|
.B(A),
|
||||||
.Y(Y)
|
.Y(Y[0])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
generate
|
||||||
|
if (Y_WIDTH > 1) begin:V
|
||||||
|
assign Y[Y_WIDTH-1:1] = 0;
|
||||||
|
end
|
||||||
|
endgenerate
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
@ -882,9 +888,15 @@ output [Y_WIDTH-1:0] Y;
|
||||||
) gt_via_lt (
|
) gt_via_lt (
|
||||||
.A(B),
|
.A(B),
|
||||||
.B(A),
|
.B(A),
|
||||||
.Y(Y)
|
.Y(Y[0])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
generate
|
||||||
|
if (Y_WIDTH > 1) begin:V
|
||||||
|
assign Y[Y_WIDTH-1:1] = 0;
|
||||||
|
end
|
||||||
|
endgenerate
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue