1
0
mirror of synced 2026-04-28 21:09:08 +00:00

Fixed techmap of $gt and $ge with multi-bit outputs

This commit is contained in:
Clifford Wolf
2013-11-06 22:59:45 +01:00
parent f485962c5e
commit b41740060b

View File

@@ -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
// --------------------------------------------------------