summaryrefslogtreecommitdiff
path: root/techlibs/common/stdcells.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-07 00:58:06 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-07 00:58:06 +0100
commit404b46674b3bfec73ecac484bbf56354fd66f2c8 (patch)
tree74335bf2f1b79c6357fb5b5a60e9071c87bfc032 /techlibs/common/stdcells.v
parentb41740060b28039c7e01fede41e6affb91867e02 (diff)
Fixed techmap of $reduce_xnor with multi-bit outputs
Diffstat (limited to 'techlibs/common/stdcells.v')
-rw-r--r--techlibs/common/stdcells.v8
1 files changed, 7 insertions, 1 deletions
diff --git a/techlibs/common/stdcells.v b/techlibs/common/stdcells.v
index ca73f5bc..e37ad20d 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
// --------------------------------------------------------