yosys/techlibs/efinix/cells_map.v

97 lines
2.6 KiB
Verilog

(* techmap_celltype = "$_DFFE_[PN][PN][01][PN]_" *)
module \$_DFFE_xxxx_ (input D, C, R, E, output Q);
parameter _TECHMAP_CELLTYPE_ = "";
EFX_FF #(
.CLK_POLARITY(_TECHMAP_CELLTYPE_[39:32] == "P"),
.CE_POLARITY(_TECHMAP_CELLTYPE_[15:8] == "P"),
.SR_POLARITY(_TECHMAP_CELLTYPE_[31:24] == "P"),
.D_POLARITY(1'b1),
.SR_SYNC(1'b0),
.SR_VALUE(_TECHMAP_CELLTYPE_[23:16] == "1"),
.SR_SYNC_PRIORITY(1'b1)
) _TECHMAP_REPLACE_ (.D(D), .CE(E), .CLK(C), .SR(R), .Q(Q));
wire _TECHMAP_REMOVEINIT_Q_ = 1'b1;
endmodule
(* techmap_celltype = "$_SDFFE_[PN][PN][01][PN]_" *)
module \$_SDFFE_xxxx_ (input D, C, R, E, output Q);
parameter _TECHMAP_CELLTYPE_ = "";
EFX_FF #(
.CLK_POLARITY(_TECHMAP_CELLTYPE_[39:32] == "P"),
.CE_POLARITY(_TECHMAP_CELLTYPE_[15:8] == "P"),
.SR_POLARITY(_TECHMAP_CELLTYPE_[31:24] == "P"),
.D_POLARITY(1'b1),
.SR_SYNC(1'b1),
.SR_VALUE(_TECHMAP_CELLTYPE_[23:16] == "1"),
.SR_SYNC_PRIORITY(1'b1)
) _TECHMAP_REPLACE_ (.D(D), .CE(E), .CLK(C), .SR(R), .Q(Q));
wire _TECHMAP_REMOVEINIT_Q_ = 1'b1;
endmodule
(* techmap_celltype = "$_SDFFCE_[PN][PN][01][PN]_" *)
module \$_SDFFCE_xxxx_ (input D, C, R, E, output Q);
parameter _TECHMAP_CELLTYPE_ = "";
EFX_FF #(
.CLK_POLARITY(_TECHMAP_CELLTYPE_[39:32] == "P"),
.CE_POLARITY(_TECHMAP_CELLTYPE_[15:8] == "P"),
.SR_POLARITY(_TECHMAP_CELLTYPE_[31:24] == "P"),
.D_POLARITY(1'b1),
.SR_SYNC(1'b1),
.SR_VALUE(_TECHMAP_CELLTYPE_[23:16] == "1"),
.SR_SYNC_PRIORITY(1'b0)
) _TECHMAP_REPLACE_ (.D(D), .CE(E), .CLK(C), .SR(R), .Q(Q));
wire _TECHMAP_REMOVEINIT_Q_ = 1'b1;
endmodule
module \$_DLATCH_N_ (E, D, Q);
wire [1023:0] _TECHMAP_DO_ = "simplemap; opt";
input E, D;
output Q = !E ? D : Q;
endmodule
module \$_DLATCH_P_ (E, D, Q);
wire [1023:0] _TECHMAP_DO_ = "simplemap; opt";
input E, D;
output Q = E ? D : Q;
endmodule
`ifndef NO_LUT
module \$lut (A, Y);
parameter WIDTH = 0;
parameter LUT = 0;
(* force_downto *)
input [WIDTH-1:0] A;
output Y;
generate
if (WIDTH == 1) begin
EFX_LUT4 #(.LUTMASK(LUT)) _TECHMAP_REPLACE_ (.O(Y), .I0(A[0]), .I1(1'b0), .I2(1'b0), .I3(1'b0));
end else
if (WIDTH == 2) begin
EFX_LUT4 #(.LUTMASK(LUT)) _TECHMAP_REPLACE_ (.O(Y), .I0(A[0]), .I1(A[1]), .I2(1'b0), .I3(1'b0));
end else
if (WIDTH == 3) begin
EFX_LUT4 #(.LUTMASK(LUT)) _TECHMAP_REPLACE_ (.O(Y), .I0(A[0]), .I1(A[1]), .I2(A[2]), .I3(1'b0));
end else
if (WIDTH == 4) begin
EFX_LUT4 #(.LUTMASK(LUT)) _TECHMAP_REPLACE_ (.O(Y), .I0(A[0]), .I1(A[1]), .I2(A[2]), .I3(A[3]));
end else begin
wire _TECHMAP_FAIL_ = 1;
end
endgenerate
endmodule
`endif