2 * yosys -- Yosys Open SYnthesis Suite
4 * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
5 * 2019 Eddie Hung <eddie@fpgeh.com>
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 // ============================================================================
28 input A0, A1, A2, A3, A4,
29 input DPRA0, DPRA1, DPRA2, DPRA3, DPRA4
31 parameter INIT = 32'h0;
32 parameter IS_WCLK_INVERTED = 1'b0;
35 .INIT(INIT), .IS_WCLK_INVERTED(IS_WCLK_INVERTED)
37 .DPO(\$DPO ), .SPO(\$SPO ),
38 .D(D), .WCLK(WCLK), .WE(WE),
39 .A0(A0), .A1(A1), .A2(A2), .A3(A3), .A4(A4),
40 .DPRA0(DPRA0), .DPRA1(DPRA1), .DPRA2(DPRA2), .DPRA3(DPRA3), .DPRA4(DPRA4)
42 \$__ABC_LUT6 dpo (.A(\$DPO ), .S({1'b0, A0, A1, A2, A3, A4}), .Y(DPO));
43 \$__ABC_LUT6 spo (.A(\$SPO ), .S({1'b0, A0, A1, A2, A3, A4}), .Y(SPO));
51 input A0, A1, A2, A3, A4, A5,
52 input DPRA0, DPRA1, DPRA2, DPRA3, DPRA4, DPRA5
54 parameter INIT = 64'h0;
55 parameter IS_WCLK_INVERTED = 1'b0;
58 .INIT(INIT), .IS_WCLK_INVERTED(IS_WCLK_INVERTED)
60 .DPO(\$DPO ), .SPO(\$SPO ),
61 .D(D), .WCLK(WCLK), .WE(WE),
62 .A0(A0), .A1(A1), .A2(A2), .A3(A3), .A4(A4), .A5(A5),
63 .DPRA0(DPRA0), .DPRA1(DPRA1), .DPRA2(DPRA2), .DPRA3(DPRA3), .DPRA4(DPRA4), .DPRA5(DPRA5)
65 \$__ABC_LUT6 dpo (.A(\$DPO ), .S({A0, A1, A2, A3, A4, A5}), .Y(DPO));
66 \$__ABC_LUT6 spo (.A(\$SPO ), .S({A0, A1, A2, A3, A4, A5}), .Y(SPO));
76 parameter INIT = 128'h0;
77 parameter IS_WCLK_INVERTED = 1'b0;
80 .INIT(INIT), .IS_WCLK_INVERTED(IS_WCLK_INVERTED)
82 .DPO(\$DPO ), .SPO(\$SPO ),
83 .D(D), .WCLK(WCLK), .WE(WE),
87 \$__ABC_LUT7 dpo (.A(\$DPO ), .S(A), .Y(DPO));
88 \$__ABC_LUT7 spo (.A(\$SPO ), .S(A), .Y(SPO));
93 input A0, A1, A2, A3, CE, CLK, D
95 parameter [15:0] INIT = 16'h0000;
96 parameter [0:0] IS_CLK_INVERTED = 1'b0;
99 .INIT(INIT), .IS_CLK_INVERTED(IS_CLK_INVERTED)
100 ) _TECHMAP_REPLACE_ (
102 .A0(A0), .A1(A1), .A2(A2), .A3(A3), .CE(CE), .CLK(CLK), .D(D)
104 // TODO: Check if SRL uses fast inputs or slow inputs
105 \$__ABC_LUT6 q (.A(\$Q ), .S({A0, A1, A2, A3, 1'b0, 1'b0}), .Y(Q));
114 parameter [31:0] INIT = 32'h00000000;
115 parameter [0:0] IS_CLK_INVERTED = 1'b0;
118 .INIT(INIT), .IS_CLK_INVERTED(IS_CLK_INVERTED)
119 ) _TECHMAP_REPLACE_ (
121 .A(A), .CE(CE), .CLK(CLK), .D(D)
123 // TODO: Check if SRL uses fast inputs or slow inputs
124 \$__ABC_LUT6 q (.A(\$Q ), .S({A, 1'b0}), .Y(Q));