2019-04-02 00:44:27 +08:00
|
|
|
module \$lut (A, Y);
|
|
|
|
parameter WIDTH = 0;
|
|
|
|
parameter LUT = 0;
|
|
|
|
input [WIDTH-1:0] A;
|
|
|
|
output Y;
|
|
|
|
|
2019-12-02 01:07:36 +08:00
|
|
|
localparam rep = 1<<(`LUT_K-WIDTH);
|
|
|
|
|
|
|
|
LUT #(.K(`LUT_K), .INIT({rep{LUT}})) _TECHMAP_REPLACE_ (.I(A), .Q(Y));
|
2019-04-02 00:44:27 +08:00
|
|
|
endmodule
|
|
|
|
|
2019-04-02 01:02:08 +08:00
|
|
|
module \$_DFF_P_ (input D, C, output Q); DFF _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C)); endmodule
|