mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-03 21:01:23 +00:00
Fixed techmap of $reduce_xnor with multi-bit outputs
This commit is contained in:
parent
b41740060b
commit
404b46674b
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue