data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v
1: b'%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:25: Define or directive not defined: \'`LUT_WIDTH\'\n    if (_TECHMAP_CELLTYPE_ == "" || `LUT_WIDTH < 2)\n                                    ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:25: syntax error, unexpected \'<\', expecting TYPE-IDENTIFIER\n    if (_TECHMAP_CELLTYPE_ == "" || `LUT_WIDTH < 2)\n                                               ^\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:29: Unsupported or unknown PLI call: $gt\n        $gt #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));\n        ^~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:33: Unsupported or unknown PLI call: $ge\n        $ge #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));\n        ^~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:48: Unsupported or unknown PLI call: $__CMP2LCU\n        $__CMP2LCU #(.AB_WIDTH(WIDTH), .AB_SIGNED(A_SIGNED && B_SIGNED), .LCU_WIDTH(1), .BUDGET(`LUT_WIDTH), .CI(CI))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:48: syntax error, unexpected ${ignored-bbox-sys}\n        $__CMP2LCU #(.AB_WIDTH(WIDTH), .AB_SIGNED(A_SIGNED && B_SIGNED), .LCU_WIDTH(1), .BUDGET(`LUT_WIDTH), .CI(CI))\n                  ^\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:48: Define or directive not defined: \'`LUT_WIDTH\'\n        $__CMP2LCU #(.AB_WIDTH(WIDTH), .AB_SIGNED(A_SIGNED && B_SIGNED), .LCU_WIDTH(1), .BUDGET(`LUT_WIDTH), .CI(CI))\n                                                                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:54: Unsupported or unknown PLI call: $__CMP2LCU\nmodule $__CMP2LCU (A, B, P, G, Y);\n       ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:63: syntax error, unexpected input\ninput [AB_WIDTH-1:0] A;  \n^~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:76: syntax error, unexpected generate\ngenerate\n^~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:80: Unsupported or unknown PLI call: $lcu\n        $lcu #(.WIDTH(LCU_WIDTH)) _TECHMAP_REPLACE_ (.P(P), .G(G), .CI(CI), .CO(CO));\n        ^~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:82: syntax error, unexpected end\n    end\n    ^~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:92: Unsupported or unknown PLI call: $__CMP2LCU\n             $__CMP2LCU #(.AB_WIDTH(AB_WIDTH), .AB_SIGNED(AB_SIGNED), .LCU_WIDTH(LCU_WIDTH+1), .BUDGET(`LUT_WIDTH), .CI(CI))\n             ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:92: syntax error, unexpected ${ignored-bbox-sys}\n             $__CMP2LCU #(.AB_WIDTH(AB_WIDTH), .AB_SIGNED(AB_SIGNED), .LCU_WIDTH(LCU_WIDTH+1), .BUDGET(`LUT_WIDTH), .CI(CI))\n                       ^\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:92: Define or directive not defined: \'`LUT_WIDTH\'\n             $__CMP2LCU #(.AB_WIDTH(AB_WIDTH), .AB_SIGNED(AB_SIGNED), .LCU_WIDTH(LCU_WIDTH+1), .BUDGET(`LUT_WIDTH), .CI(CI))\n                                                                                                       ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:124: Unsupported or unknown PLI call: $__CMP2LCU\n               $__CMP2LCU #(.AB_WIDTH(AB_WIDTH-1), .AB_SIGNED(1\'b0), .LCU_WIDTH(LCU_WIDTH), .BUDGET(BUDGET-COST), .CI(CI))\n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:124: syntax error, unexpected ${ignored-bbox-sys}\n               $__CMP2LCU #(.AB_WIDTH(AB_WIDTH-1), .AB_SIGNED(1\'b0), .LCU_WIDTH(LCU_WIDTH), .BUDGET(BUDGET-COST), .CI(CI))\n                         ^\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/common/cmp2lcu.v:127: Unsupported or unknown PLI call: $__CMP2LCU\n               $__CMP2LCU #(.AB_WIDTH(AB_WIDTH-1), .AB_SIGNED(1\'b0), .LCU_WIDTH(LCU_WIDTH), .BUDGET(BUDGET-COST), .CI(CI))\n               ^~~~~~~~~~\n%Error: Cannot continue\n'
module _80_lcu_cmp_ (A, B, Y);

parameter A_SIGNED = 0;
parameter B_SIGNED = 0;
parameter A_WIDTH = 0;
parameter B_WIDTH = 0;
parameter Y_WIDTH = 0;

(* force_downto *)
input [A_WIDTH-1:0] A;
(* force_downto *)
input [B_WIDTH-1:0] B;
(* force_downto *)
output [Y_WIDTH-1:0] Y;

parameter _TECHMAP_CELLTYPE_ = "";

generate
    if (_TECHMAP_CELLTYPE_ == "" || `LUT_WIDTH < 2)
        wire _TECHMAP_FAIL_ = 1;
    else if (_TECHMAP_CELLTYPE_ == "$lt") begin

        $gt #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));
    end
    else if (_TECHMAP_CELLTYPE_ == "$le") begin

        $ge #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));
    end
    else begin

        localparam WIDTH = A_WIDTH > B_WIDTH ? A_WIDTH : B_WIDTH;
        (* force_downto *)
        wire [WIDTH-1:0] AA = {{(WIDTH-A_WIDTH){A_SIGNED ? A[A_WIDTH-1] : 1'b0}}, A};
        (* force_downto *)
        wire [WIDTH-1:0] BB = {{(WIDTH-B_WIDTH){B_SIGNED ? B[B_WIDTH-1] : 1'b0}}, B};


        if (_TECHMAP_CELLTYPE_ == "$ge")
            localparam CI = 1'b1;
        else
            localparam CI = 1'b0;
        $__CMP2LCU #(.AB_WIDTH(WIDTH), .AB_SIGNED(A_SIGNED && B_SIGNED), .LCU_WIDTH(1), .BUDGET(`LUT_WIDTH), .CI(CI))
            _TECHMAP_REPLACE_ (.A(AA), .B(BB), .P(1'b1), .G(1'b0), .Y(Y));
    end
endgenerate
endmodule
module _80_lcu_cmp_ (A, B, Y);


parameter A_SIGNED = 0;
parameter B_SIGNED = 0;
parameter A_WIDTH = 0;
parameter B_WIDTH = 0;
parameter Y_WIDTH = 0;

(* force_downto *)
input [A_WIDTH-1:0] A;
(* force_downto *)
input [B_WIDTH-1:0] B;
(* force_downto *)
output [Y_WIDTH-1:0] Y;

parameter _TECHMAP_CELLTYPE_ = "";

generate
    if (_TECHMAP_CELLTYPE_ == "" || `LUT_WIDTH < 2)
        wire _TECHMAP_FAIL_ = 1;
    else if (_TECHMAP_CELLTYPE_ == "$lt") begin

        $gt #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));
    end
    else if (_TECHMAP_CELLTYPE_ == "$le") begin

        $ge #(.A_SIGNED(B_SIGNED), .B_SIGNED(A_SIGNED), .A_WIDTH(B_WIDTH), .B_WIDTH(A_WIDTH), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(B), .B(A), .Y(Y));
    end
    else begin

        localparam WIDTH = A_WIDTH > B_WIDTH ? A_WIDTH : B_WIDTH;
        (* force_downto *)
        wire [WIDTH-1:0] AA = {{(WIDTH-A_WIDTH){A_SIGNED ? A[A_WIDTH-1] : 1'b0}}, A};
        (* force_downto *)
        wire [WIDTH-1:0] BB = {{(WIDTH-B_WIDTH){B_SIGNED ? B[B_WIDTH-1] : 1'b0}}, B};


        if (_TECHMAP_CELLTYPE_ == "$ge")
            localparam CI = 1'b1;
        else
            localparam CI = 1'b0;
        $__CMP2LCU #(.AB_WIDTH(WIDTH), .AB_SIGNED(A_SIGNED && B_SIGNED), .LCU_WIDTH(1), .BUDGET(`LUT_WIDTH), .CI(CI))
            _TECHMAP_REPLACE_ (.A(AA), .B(BB), .P(1'b1), .G(1'b0), .Y(Y));
    end
endgenerate
endmodule