2020-08-02 05:31:25 -05:00
|
|
|
(* techmap_celltype = "$_DFFE_[PN][PN][01][PN]_" *)
|
2020-07-02 17:23:32 -05:00
|
|
|
module \$_DFFE_xxxx_ (input D, C, R, E, output Q);
|
2019-08-03 05:29:30 -05:00
|
|
|
|
2020-07-02 17:23:32 -05:00
|
|
|
parameter _TECHMAP_CELLTYPE_ = "";
|
2019-08-03 05:29:30 -05:00
|
|
|
|
2020-07-02 17:23:32 -05:00
|
|
|
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));
|
2019-08-03 05:29:30 -05:00
|
|
|
|
2020-07-02 17:23:32 -05:00
|
|
|
wire _TECHMAP_REMOVEINIT_Q_ = 1'b1;
|
2019-08-03 05:29:30 -05:00
|
|
|
|
2020-07-02 17:23:32 -05:00
|
|
|
endmodule
|
|
|
|
|
2020-08-02 05:31:25 -05:00
|
|
|
(* techmap_celltype = "$_SDFFE_[PN][PN][01][PN]_" *)
|
2020-07-02 17:23:32 -05:00
|
|
|
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
|
|
|
|
|
2020-08-02 05:31:25 -05:00
|
|
|
(* techmap_celltype = "$_SDFFCE_[PN][PN][01][PN]_" *)
|
2020-07-02 17:23:32 -05:00
|
|
|
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
|
2019-08-03 05:29:30 -05:00
|
|
|
|
2019-10-04 05:58:11 -05:00
|
|
|
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
|
|
|
|
|
2019-08-03 05:29:30 -05:00
|
|
|
`ifndef NO_LUT
|
|
|
|
module \$lut (A, Y);
|
|
|
|
parameter WIDTH = 0;
|
|
|
|
parameter LUT = 0;
|
|
|
|
|
2020-05-18 11:15:03 -05:00
|
|
|
(* force_downto *)
|
2019-08-03 05:29:30 -05:00
|
|
|
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
|