data/full_repos/permissive/50609942/priority_vc_inputs.v
1: b'%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:8: Cannot find include file: priority_vc_perInput.v\n`include "priority_vc_perInput.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_perInput.v\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_perInput.v.v\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_perInput.v.sv\n             priority_vc_perInput.v\n             priority_vc_perInput.v.v\n             priority_vc_perInput.v.sv\n             obj_dir/priority_vc_perInput.v\n             obj_dir/priority_vc_perInput.v.v\n             obj_dir/priority_vc_perInput.v.sv\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:11: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        output [0:`IN_OUTPORT_CNT-1] selected_inputs_out,\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:12: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        output [0:`IN_OUTPORT_CNT-1] selected_outputs_out,\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:13: Define or directive not defined: \'`FLIT_SIZE\'\n                        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out,\n                                  ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:13: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n                        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out,\n                                             ^\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:13: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out,\n                                               ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:14: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        output [0:`IN_OUTPORT_CNT-1] credit_for_inputs,\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:15: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n                        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_out,\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:15: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_out,\n                                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:16: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`IN_OUTPORT_CNT-1] is_new_flit,\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:17: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`IN_OUTPORT_CNT-1] selected_inputs_in,\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:18: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`IN_OUTPORT_CNT-1] selected_outputs_in,\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:19: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`IN_OUTPORT_CNT - 1] nxt_routers_credit,\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:20: Define or directive not defined: \'`FLIT_SIZE\'\n                        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in,\n                                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:20: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in,\n                                              ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:21: Define or directive not defined: \'`FLIT_SIZE\'\n                        input [0:`FLIT_SIZE * `IN_OUTPORT_CNT - 1] outputs_in,\n                                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:21: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`FLIT_SIZE * `IN_OUTPORT_CNT - 1] outputs_in,\n                                              ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:22: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n                        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_in,\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:22: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n                        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_in,\n                                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:23: Define or directive not defined: \'`TABLE_SIZE\'\n                        input [0:`TABLE_SIZE-1]TABLE\n                                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:27: syntax error, unexpected genvar\ngenvar util_genvar;\n^~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:28: Define or directive not defined: \'`MAKE_ARRAY_1BASED\'\n`MAKE_ARRAY_1BASED(flit_in_array, flit_in, `IN_OUTPORT_CNT, `FLIT_SIZE, GEN_FLIT_IN)\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:28: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY_1BASED(flit_in_array, flit_in, `IN_OUTPORT_CNT, `FLIT_SIZE, GEN_FLIT_IN)\n                                           ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:28: Define or directive not defined: \'`FLIT_SIZE\'\n`MAKE_ARRAY_1BASED(flit_in_array, flit_in, `IN_OUTPORT_CNT, `FLIT_SIZE, GEN_FLIT_IN)\n                                                            ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:30: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_inputs_out_chain [0:`IN_OUTPORT_CNT];\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:30: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_inputs_out_chain [0:`IN_OUTPORT_CNT];\n                                                        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:30: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\nwire [0:`IN_OUTPORT_CNT-1] selected_inputs_out_chain [0:`IN_OUTPORT_CNT];\n                                                                       ^\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:32: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign selected_inputs_out = selected_inputs_out_chain[`IN_OUTPORT_CNT];\n                                                       ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:34: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_outputs_out_chain [0:`IN_OUTPORT_CNT];\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:34: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_outputs_out_chain [0:`IN_OUTPORT_CNT];\n                                                         ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:34: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\nwire [0:`IN_OUTPORT_CNT-1] selected_outputs_out_chain [0:`IN_OUTPORT_CNT];\n                                                                        ^\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:36: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign selected_outputs_out = selected_outputs_out_chain[`IN_OUTPORT_CNT];\n                                                         ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:38: Define or directive not defined: \'`FLIT_SIZE\'\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:38: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];\n                   ^\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:38: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];\n                     ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:38: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];\n                                                           ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:40: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign outputs_out = outputs_out_chain[`IN_OUTPORT_CNT];\n                                       ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:42: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\nwire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:42: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nwire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];\n                       ^\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:42: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];\n                        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:42: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];\n                                                              ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:44: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign occupieds_out = occupieds_chain[`IN_OUTPORT_CNT];\n                                       ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:47: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:3] nums[0:`IN_OUTPORT_CNT-1];\n                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:48: syntax error, unexpected assign\nassign nums[0]=4\'d0;\n^~~~~~\n%Error: data/full_repos/permissive/50609942/priority_vc_inputs.v:58: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n    for(i=0;i<`IN_OUTPORT_CNT;i=i+1)\n              ^~~~~~~~~~~~~~~\n%Error: Exiting due to 45 error(s)\n'
module  priority_vc_inputs(
                        output [0:`IN_OUTPORT_CNT-1] selected_inputs_out,
                        output [0:`IN_OUTPORT_CNT-1] selected_outputs_out,
                        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out,
                        output [0:`IN_OUTPORT_CNT-1] credit_for_inputs,
                        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_out,
                        input [0:`IN_OUTPORT_CNT-1] is_new_flit,
                        input [0:`IN_OUTPORT_CNT-1] selected_inputs_in,
                        input [0:`IN_OUTPORT_CNT-1] selected_outputs_in,
                        input [0:`IN_OUTPORT_CNT - 1] nxt_routers_credit,
                        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in,
                        input [0:`FLIT_SIZE * `IN_OUTPORT_CNT - 1] outputs_in,
                        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_in,
                        input [0:`TABLE_SIZE-1]TABLE
);
parameter VC_NUM = 4;

genvar util_genvar;
`MAKE_ARRAY_1BASED(flit_in_array, flit_in, `IN_OUTPORT_CNT, `FLIT_SIZE, GEN_FLIT_IN)

wire [0:`IN_OUTPORT_CNT-1] selected_inputs_out_chain [0:`IN_OUTPORT_CNT];
assign selected_inputs_out_chain[0] = selected_inputs_in;
assign selected_inputs_out = selected_inputs_out_chain[`IN_OUTPORT_CNT];

wire [0:`IN_OUTPORT_CNT-1] selected_outputs_out_chain [0:`IN_OUTPORT_CNT];
assign selected_outputs_out_chain[0] = selected_outputs_in;
assign selected_outputs_out = selected_outputs_out_chain[`IN_OUTPORT_CNT];

wire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];
assign outputs_out_chain[0] = outputs_in;
assign outputs_out = outputs_out_chain[`IN_OUTPORT_CNT];

wire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];
assign occupieds_chain[0] = occupieds_in;
assign occupieds_out = occupieds_chain[`IN_OUTPORT_CNT];


wire [0:3] nums[0:`IN_OUTPORT_CNT-1];
assign nums[0]=4'd0;
assign nums[1]=4'd1;
assign nums[2]=4'd2;
assign nums[3]=4'd3;
assign nums[4]=4'd4;
assign nums[5]=4'd5;
assign nums[6]=4'd6;

generate
    genvar i;
    for(i=0;i<`IN_OUTPORT_CNT;i=i+1)
    begin : GEN_PRIORITY_VC_INPUTS
        priority_vc_perInput #(.VC_NUM(VC_NUM)) p(
            .selected_inputs_out(selected_inputs_out_chain [i+1]),
            .selected_outputs_out(selected_outputs_out_chain [i+1]),
            .outputs_out(outputs_out_chain[i+1]),
            .credit_for_input(credit_for_inputs[i]),
            .occupieds_out(occupieds_chain[i+1]),
            .is_new_flit(is_new_flit[i]),
            .port_num(nums[i]),
            .selected_inputs_in(selected_inputs_out_chain[i]),
            .selected_outputs_in(selected_outputs_out_chain[i]),
            .nxt_routers_credit(nxt_routers_credit),
            .flit_in(flit_in_array[i]),
            .outputs_in(outputs_out_chain[i]),
            .occupieds_in(occupieds_chain[i]),
            .TABLE(TABLE)
        );
    end
endgenerate

endmodule
module  priority_vc_inputs(
                        output [0:`IN_OUTPORT_CNT-1] selected_inputs_out,
                        output [0:`IN_OUTPORT_CNT-1] selected_outputs_out,
                        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out,
                        output [0:`IN_OUTPORT_CNT-1] credit_for_inputs,
                        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_out,
                        input [0:`IN_OUTPORT_CNT-1] is_new_flit,
                        input [0:`IN_OUTPORT_CNT-1] selected_inputs_in,
                        input [0:`IN_OUTPORT_CNT-1] selected_outputs_in,
                        input [0:`IN_OUTPORT_CNT - 1] nxt_routers_credit,
                        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in,
                        input [0:`FLIT_SIZE * `IN_OUTPORT_CNT - 1] outputs_in,
                        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_in,
                        input [0:`TABLE_SIZE-1]TABLE
);

parameter VC_NUM = 4;

genvar util_genvar;
`MAKE_ARRAY_1BASED(flit_in_array, flit_in, `IN_OUTPORT_CNT, `FLIT_SIZE, GEN_FLIT_IN)

wire [0:`IN_OUTPORT_CNT-1] selected_inputs_out_chain [0:`IN_OUTPORT_CNT];
assign selected_inputs_out_chain[0] = selected_inputs_in;
assign selected_inputs_out = selected_inputs_out_chain[`IN_OUTPORT_CNT];

wire [0:`IN_OUTPORT_CNT-1] selected_outputs_out_chain [0:`IN_OUTPORT_CNT];
assign selected_outputs_out_chain[0] = selected_outputs_in;
assign selected_outputs_out = selected_outputs_out_chain[`IN_OUTPORT_CNT];

wire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out_chain [0:`IN_OUTPORT_CNT];
assign outputs_out_chain[0] = outputs_in;
assign outputs_out = outputs_out_chain[`IN_OUTPORT_CNT];

wire [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT-1] occupieds_chain [0:`IN_OUTPORT_CNT];
assign occupieds_chain[0] = occupieds_in;
assign occupieds_out = occupieds_chain[`IN_OUTPORT_CNT];


wire [0:3] nums[0:`IN_OUTPORT_CNT-1];
assign nums[0]=4'd0;
assign nums[1]=4'd1;
assign nums[2]=4'd2;
assign nums[3]=4'd3;
assign nums[4]=4'd4;
assign nums[5]=4'd5;
assign nums[6]=4'd6;

generate
    genvar i;
    for(i=0;i<`IN_OUTPORT_CNT;i=i+1)
    begin : GEN_PRIORITY_VC_INPUTS
        priority_vc_perInput #(.VC_NUM(VC_NUM)) p(
            .selected_inputs_out(selected_inputs_out_chain [i+1]),
            .selected_outputs_out(selected_outputs_out_chain [i+1]),
            .outputs_out(outputs_out_chain[i+1]),
            .credit_for_input(credit_for_inputs[i]),
            .occupieds_out(occupieds_chain[i+1]),
            .is_new_flit(is_new_flit[i]),
            .port_num(nums[i]),
            .selected_inputs_in(selected_inputs_out_chain[i]),
            .selected_outputs_in(selected_outputs_out_chain[i]),
            .nxt_routers_credit(nxt_routers_credit),
            .flit_in(flit_in_array[i]),
            .outputs_in(outputs_out_chain[i]),
            .occupieds_in(occupieds_chain[i]),
            .TABLE(TABLE)
        );
    end
endgenerate

endmodule