data/full_repos/permissive/463439324/decap/rp761param.v
1: b'%Error: data/full_repos/permissive/463439324/decap/rp761param.v:31: Cannot find include file: params.v\n`include "params.v" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/463439324/decap,data/full_repos/permissive/463439324/params.v\n             data/full_repos/permissive/463439324/decap,data/full_repos/permissive/463439324/params.v.v\n             data/full_repos/permissive/463439324/decap,data/full_repos/permissive/463439324/params.v.sv\n             params.v\n             params.v.v\n             params.v.sv\n             obj_dir/params.v\n             obj_dir/params.v.v\n             obj_dir/params.v.sv\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:43: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-1:0]     param_r_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:44: Define or directive not defined: \'`RP_D_SIZE\'\n    output reg  [`RP_D_SIZE-1:0]    param_m0;\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:129: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-1:0]     param_r_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:130: Define or directive not defined: \'`RP_D_SIZE\'\n    output reg  [`RP_D_SIZE-1:0]    param_m0;\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:217: Define or directive not defined: \'`RP_DEPTH\'\n    output      [`RP_DEPTH-2:0]     param_r_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:218: Define or directive not defined: \'`RP_DEPTH\'\n    output      [`RP_DEPTH-1:0]     param_ro_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:220: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-2:0]     param_ri_offset;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:221: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-2:0]     param_ro_offset;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:222: Define or directive not defined: \'`RP_D_SIZE\'\n    output reg  [`RP_D_SIZE-1:0]    param_m0;\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:223: Define or directive not defined: \'`RP_INV_SIZE\'\n    output reg  [`RP_INV_SIZE-1:0]  param_m0inv;\n                 ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:229: Define or directive not defined: \'`OUT_DEPTH\'\n    output reg  [`OUT_DEPTH-1:0]    param_outoffset;\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:404: Define or directive not defined: \'`RP_DEPTH\'\n    output      [`RP_DEPTH-2:0]     param_r_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:405: Define or directive not defined: \'`RP_DEPTH\'\n    output      [`RP_DEPTH-1:0]     param_ro_max;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:407: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-2:0]     param_ri_offset;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:408: Define or directive not defined: \'`RP_DEPTH\'\n    output reg  [`RP_DEPTH-2:0]     param_ro_offset;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:409: Define or directive not defined: \'`RP_D_SIZE\'\n    output reg  [`RP_D_SIZE-1:0]    param_m0;\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:410: Define or directive not defined: \'`RP_INV_SIZE\'\n    output reg  [`RP_INV_SIZE-1:0]  param_m0inv;\n                 ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463439324/decap/rp761param.v:416: Define or directive not defined: \'`OUT_DEPTH\'\n    output reg  [`OUT_DEPTH-1:0]    param_outoffset;\n                 ^~~~~~~~~~\n%Error: Exiting due to 19 error(s)\n'
module rp761q1531encode_param ( state_max, state_l, state_s,
    param_r_max, param_m0, param_1st_round,
    param_outs1, param_outsl

) ; 

    output      [4:0]               state_max;

    input       [4:0]               state_l;
    input       [4:0]               state_s;
    output reg  [`RP_DEPTH-1:0]     param_r_max;
    output reg  [`RP_D_SIZE-1:0]    param_m0;
    output                          param_1st_round;
    output reg  [2:0]               param_outs1;
    output reg  [2:0]               param_outsl;

    assign state_max = 5'd9;

    always @ (*) begin
        case(state_l)
            5'd0:    param_r_max = 10'd761;
            5'd1:    param_r_max = 10'd381;
            5'd2:    param_r_max = 10'd191;
            5'd3:    param_r_max = 10'd96;
            5'd4:    param_r_max = 10'd48;
            5'd5:    param_r_max = 10'd24;
            5'd6:    param_r_max = 10'd12;
            5'd7:    param_r_max = 10'd6;
            5'd8:    param_r_max = 10'd3;
            5'd9:    param_r_max = 10'd2;
            default: param_r_max = 10'd0;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_m0 = 14'd1531;
            5'd1:    param_m0 = 14'd9157;
            5'd2:    param_m0 = 14'd1280;
            5'd3:    param_m0 = 14'd6400;
            5'd4:    param_m0 = 14'd625;
            5'd5:    param_m0 = 14'd1526;
            5'd6:    param_m0 = 14'd9097;
            5'd7:    param_m0 = 14'd1263;
            5'd8:    param_m0 = 14'd6232;
            5'd9:    param_m0 = 14'd593;
            default: param_m0 = 14'd1;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_outs1 = 3'd0;
            5'd1:    param_outs1 = 3'd1;
            5'd2:    param_outs1 = 3'd0;
            5'd3:    param_outs1 = 3'd1;
            5'd4:    param_outs1 = 3'd0;
            5'd5:    param_outs1 = 3'd0;
            5'd6:    param_outs1 = 3'd1;
            5'd7:    param_outs1 = 3'd0;
            5'd8:    param_outs1 = 3'd1;
            5'd9:    param_outs1 = 3'd6;
            default: param_outs1 = 3'd6;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_outsl = 3'd7;
            5'd1:    param_outsl = 3'd7;
            5'd2:    param_outsl = 3'd7;
            5'd3:    param_outsl = 3'd1;
            5'd4:    param_outsl = 3'd0;
            5'd5:    param_outsl = 3'd0;
            5'd6:    param_outsl = 3'd1;
            5'd7:    param_outsl = 3'd0;
            5'd8:    param_outsl = 3'd7;
            5'd9:    param_outsl = 3'd2;
            default: param_outsl = 3'd6;
        endcase
    end

    assign param_1st_round = (state_l == 5'd0);

endmodule
module rp761q1531encode_param ( state_max, state_l, state_s,
    param_r_max, param_m0, param_1st_round,
    param_outs1, param_outsl

) ;
 

    output      [4:0]               state_max;

    input       [4:0]               state_l;
    input       [4:0]               state_s;
    output reg  [`RP_DEPTH-1:0]     param_r_max;
    output reg  [`RP_D_SIZE-1:0]    param_m0;
    output                          param_1st_round;
    output reg  [2:0]               param_outs1;
    output reg  [2:0]               param_outsl;

    assign state_max = 5'd9;

    always @ (*) begin
        case(state_l)
            5'd0:    param_r_max = 10'd761;
            5'd1:    param_r_max = 10'd381;
            5'd2:    param_r_max = 10'd191;
            5'd3:    param_r_max = 10'd96;
            5'd4:    param_r_max = 10'd48;
            5'd5:    param_r_max = 10'd24;
            5'd6:    param_r_max = 10'd12;
            5'd7:    param_r_max = 10'd6;
            5'd8:    param_r_max = 10'd3;
            5'd9:    param_r_max = 10'd2;
            default: param_r_max = 10'd0;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_m0 = 14'd1531;
            5'd1:    param_m0 = 14'd9157;
            5'd2:    param_m0 = 14'd1280;
            5'd3:    param_m0 = 14'd6400;
            5'd4:    param_m0 = 14'd625;
            5'd5:    param_m0 = 14'd1526;
            5'd6:    param_m0 = 14'd9097;
            5'd7:    param_m0 = 14'd1263;
            5'd8:    param_m0 = 14'd6232;
            5'd9:    param_m0 = 14'd593;
            default: param_m0 = 14'd1;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_outs1 = 3'd0;
            5'd1:    param_outs1 = 3'd1;
            5'd2:    param_outs1 = 3'd0;
            5'd3:    param_outs1 = 3'd1;
            5'd4:    param_outs1 = 3'd0;
            5'd5:    param_outs1 = 3'd0;
            5'd6:    param_outs1 = 3'd1;
            5'd7:    param_outs1 = 3'd0;
            5'd8:    param_outs1 = 3'd1;
            5'd9:    param_outs1 = 3'd6;
            default: param_outs1 = 3'd6;
        endcase
    end

    always @ (*) begin
        case(state_s)
            5'd0:    param_outsl = 3'd7;
            5'd1:    param_outsl = 3'd7;
            5'd2:    param_outsl = 3'd7;
            5'd3:    param_outsl = 3'd1;
            5'd4:    param_outsl = 3'd0;
            5'd5:    param_outsl = 3'd0;
            5'd6:    param_outsl = 3'd1;
            5'd7:    param_outsl = 3'd0;
            5'd8:    param_outsl = 3'd7;
            5'd9:    param_outsl = 3'd2;
            default: param_outsl = 3'd6;
        endcase
    end

    assign param_1st_round = (state_l == 5'd0);

endmodule