diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2019-11-24 14:17:46 +0100 |
---|---|---|
committer | Marcin KoĆcielnicki <mwk@0x04.net> | 2019-11-25 20:40:39 +0100 |
commit | 7562e7304e2592ddd5a914ec723a6563c14141e0 (patch) | |
tree | 33d1a39267ee249f984192a7d3f2d28341b9cd1c /techlibs/xilinx | |
parent | db2268703f657fb977e1aa5506748683fbeb6cb1 (diff) | |
download | yosys-7562e7304e2592ddd5a914ec723a6563c14141e0.tar.gz yosys-7562e7304e2592ddd5a914ec723a6563c14141e0.tar.bz2 yosys-7562e7304e2592ddd5a914ec723a6563c14141e0.zip |
xilinx: Use INV instead of LUT1 when applicable
Diffstat (limited to 'techlibs/xilinx')
-rw-r--r-- | techlibs/xilinx/lut_map.v | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/techlibs/xilinx/lut_map.v b/techlibs/xilinx/lut_map.v index 13d3c3268..62d501632 100644 --- a/techlibs/xilinx/lut_map.v +++ b/techlibs/xilinx/lut_map.v @@ -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), |