mirror of https://github.com/YosysHQ/yosys.git
Fixed techmap of $reduce_xnor with multi-bit outputs
This commit is contained in:
parent
b41740060b
commit
404b46674b
|
@ -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
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue