From 404b46674b3bfec73ecac484bbf56354fd66f2c8 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 7 Nov 2013 00:58:06 +0100 Subject: [PATCH] Fixed techmap of $reduce_xnor with multi-bit outputs --- techlibs/common/stdcells.v | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/techlibs/common/stdcells.v b/techlibs/common/stdcells.v index ca73f5bcd..e37ad20d5 100644 --- a/techlibs/common/stdcells.v +++ b/techlibs/common/stdcells.v @@ -351,9 +351,15 @@ endgenerate assign buffer[0] = A[0]; \$_INV_ gate_inv ( .A(buffer[A_WIDTH-1]), - .Y(Y) + .Y(Y[0]) ); +generate + if (Y_WIDTH > 1) begin:V + assign Y[Y_WIDTH-1:1] = 0; + end +endgenerate + endmodule // -------------------------------------------------------- -- 2.30.2