mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Fixed techmap of $reduce_xnor with multi-bit outputs
This commit is contained in:
@@ -351,9 +351,15 @@ endgenerate
|
|||||||
assign buffer[0] = A[0];
|
assign buffer[0] = A[0];
|
||||||
\$_INV_ gate_inv (
|
\$_INV_ gate_inv (
|
||||||
.A(buffer[A_WIDTH-1]),
|
.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
|
endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user