mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
xilinx: Use INV instead of LUT1 when applicable
This commit is contained in:
parent
db2268703f
commit
7562e7304e
5 changed files with 14 additions and 10 deletions
|
@ -56,8 +56,12 @@ module \$lut (A, Y);
|
|||
|
||||
generate
|
||||
if (WIDTH == 1) begin
|
||||
LUT1 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),
|
||||
.I0(A[0]));
|
||||
if (P_LUT == 2'b01) begin
|
||||
INV _TECHMAP_REPLACE_ (.O(Y), .I(A[0]));
|
||||
end else begin
|
||||
LUT1 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),
|
||||
.I0(A[0]));
|
||||
end
|
||||
end else
|
||||
if (WIDTH == 2) begin
|
||||
LUT2 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue