Fixed techmap of $reduce_xnor with multi-bit outputs
authorClifford Wolf <clifford@clifford.at>
Wed, 6 Nov 2013 23:58:06 +0000 (00:58 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 6 Nov 2013 23:58:06 +0000 (00:58 +0100)
techlibs/common/stdcells.v

index ca73f5bcd5c01e77dfa8dd9545b37bfe0fa1ec10..e37ad20d5a5cf59a9c841537abd14e86fcd7d088 100644 (file)
@@ -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
 
 // --------------------------------------------------------