From b41740060b28039c7e01fede41e6affb91867e02 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 6 Nov 2013 22:59:45 +0100 Subject: Fixed techmap of $gt and $ge with multi-bit outputs --- techlibs/common/stdcells.v | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'techlibs/common') diff --git a/techlibs/common/stdcells.v b/techlibs/common/stdcells.v index d89b39b8..ca73f5bc 100644 --- a/techlibs/common/stdcells.v +++ b/techlibs/common/stdcells.v @@ -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 // -------------------------------------------------------- -- cgit v1.2.3