data/full_repos/permissive/50609942/priority_all_vc.v
1: b'%Error: data/full_repos/permissive/50609942/priority_all_vc.v:8: Cannot find include file: priority_vc_inputs.v\n`include "priority_vc_inputs.v" \n         ^~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_inputs.v\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_inputs.v.v\n             data/full_repos/permissive/50609942,data/full_repos/permissive/50609942/priority_vc_inputs.v.sv\n             priority_vc_inputs.v\n             priority_vc_inputs.v.v\n             priority_vc_inputs.v.sv\n             obj_dir/priority_vc_inputs.v\n             obj_dir/priority_vc_inputs.v.v\n             obj_dir/priority_vc_inputs.v.sv\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:11: 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_all_vc.v:11: 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_all_vc.v:11: 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_all_vc.v:12: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_out;\n                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:12: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_out;\n                                 ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:12: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_out;\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:13: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n        output [0:`IN_OUTPORT_CNT * VC_NUM -1] credit_for_inputs;    \n                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:13: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n        output [0:`IN_OUTPORT_CNT * VC_NUM -1] credit_for_inputs;    \n                                  ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:14: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n        input [0:`IN_OUTPORT_CNT * VC_NUM -1] nxt_routers_credits;   \n                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:14: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n        input [0:`IN_OUTPORT_CNT * VC_NUM -1] nxt_routers_credits;   \n                                 ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:15: 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_all_vc.v:15: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in;\n                            ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:15: 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_all_vc.v:16: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_in;\n                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:16: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_in;\n                                ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:16: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_in;\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:17: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n        input [0:VC_NUM*`IN_OUTPORT_CNT-1] is_new_flit;\n                        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:18: Define or directive not defined: \'`TABLE_SIZE\'\n        input [0:`TABLE_SIZE-1] TABLE;\n                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:21: Define or directive not defined: \'`MAKE_ARRAY\'\n`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:21: syntax error, unexpected \'(\'\n`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)\n            ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:21: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)\n                                                        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:21: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)\n                                                                          ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:22: Define or directive not defined: \'`MAKE_ARRAY\'\n`MAKE_ARRAY(occupieds_in_array, occupieds_in, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_IN_ARRAY)\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:22: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY(occupieds_in_array, occupieds_in, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_IN_ARRAY)\n                                                      ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:22: Define or directive not defined: \'`OCCUPIEDS_SIZE\'\n`MAKE_ARRAY(occupieds_in_array, occupieds_in, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_IN_ARRAY)\n                                                                        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:24: Define or directive not defined: \'`MAKE_ARRAY\'\n`MAKE_ARRAY(credit_for_inputs_array, credit_for_inputs, VC_NUM, `IN_OUTPORT_CNT, GEN_CREDIT_FOR_INPUTS)\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:24: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY(credit_for_inputs_array, credit_for_inputs, VC_NUM, `IN_OUTPORT_CNT, GEN_CREDIT_FOR_INPUTS)\n                                                                ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:26: Define or directive not defined: \'`MAKE_ARRAY\'\n`MAKE_ARRAY(nxt_routers_credits_array, nxt_routers_credits, VC_NUM, `IN_OUTPORT_CNT, GEN_NXT_ROUTERS_CREDITS)\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:26: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY(nxt_routers_credits_array, nxt_routers_credits, VC_NUM, `IN_OUTPORT_CNT, GEN_NXT_ROUTERS_CREDITS)\n                                                                    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:28: Define or directive not defined: \'`MAKE_ARRAY\'\n`MAKE_ARRAY(is_new_flit_array, is_new_flit, VC_NUM, `IN_OUTPORT_CNT, GEN_IS_NEW_FLIT)\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:28: Define or directive not defined: \'`IN_OUTPORT_CNT\'\n`MAKE_ARRAY(is_new_flit_array, is_new_flit, VC_NUM, `IN_OUTPORT_CNT, GEN_IS_NEW_FLIT)\n                                                    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:30: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_inputs_chain [0:VC_NUM];\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:31: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign selected_inputs_chain[0] = {`IN_OUTPORT_CNT{1\'b0}};\n                                   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:33: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [0:`IN_OUTPORT_CNT-1] selected_outputs_chain [0:VC_NUM];\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:34: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign selected_outputs_chain[0] = {`IN_OUTPORT_CNT{1\'b0}};\n                                    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:36: Define or directive not defined: \'`FLIT_SIZE\'\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_chain[0:VC_NUM];\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:36: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_chain[0:VC_NUM];\n                   ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:36: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nwire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_chain[0:VC_NUM];\n                     ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:37: Define or directive not defined: \'`FLIT_SIZE\'\nassign outputs_chain[0] = {`FLIT_SIZE*`IN_OUTPORT_CNT{1\'b0}};\n                           ^~~~~~~~~~\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:37: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nassign outputs_chain[0] = {`FLIT_SIZE*`IN_OUTPORT_CNT{1\'b0}};\n                                     ^\n%Error: data/full_repos/permissive/50609942/priority_all_vc.v:37: Define or directive not defined: \'`IN_OUTPORT_CNT\'\nassign outputs_chain[0] = {`FLIT_SIZE*`IN_OUTPORT_CNT{1\'b0}};\n                                      ^~~~~~~~~~~~~~~\n%Error: Exiting due to 42 error(s)\n'
module  priority_all_vc(outputs_out, occupieds_out, credit_for_inputs, nxt_routers_credits, flit_in, occupieds_in, is_new_flit, TABLE);
  parameter VC_NUM = 4;
        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out;
        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_out;
        output [0:`IN_OUTPORT_CNT * VC_NUM -1] credit_for_inputs;
        input [0:`IN_OUTPORT_CNT * VC_NUM -1] nxt_routers_credits;
        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in;
        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_in;
        input [0:VC_NUM*`IN_OUTPORT_CNT-1] is_new_flit;
        input [0:`TABLE_SIZE-1] TABLE;

genvar util_genvar;
`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)
`MAKE_ARRAY(occupieds_in_array, occupieds_in, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_IN_ARRAY)

`MAKE_ARRAY(credit_for_inputs_array, credit_for_inputs, VC_NUM, `IN_OUTPORT_CNT, GEN_CREDIT_FOR_INPUTS)

`MAKE_ARRAY(nxt_routers_credits_array, nxt_routers_credits, VC_NUM, `IN_OUTPORT_CNT, GEN_NXT_ROUTERS_CREDITS)

`MAKE_ARRAY(is_new_flit_array, is_new_flit, VC_NUM, `IN_OUTPORT_CNT, GEN_IS_NEW_FLIT)

wire [0:`IN_OUTPORT_CNT-1] selected_inputs_chain [0:VC_NUM];
assign selected_inputs_chain[0] = {`IN_OUTPORT_CNT{1'b0}};

wire [0:`IN_OUTPORT_CNT-1] selected_outputs_chain [0:VC_NUM];
assign selected_outputs_chain[0] = {`IN_OUTPORT_CNT{1'b0}};

wire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_chain[0:VC_NUM];
assign outputs_chain[0] = {`FLIT_SIZE*`IN_OUTPORT_CNT{1'b0}};

genvar i;
generate
    for(i=0;i<VC_NUM;i=i+1)
    begin : GEN_PRIORITY_ALL_VC
        priority_vc_inputs #(.VC_NUM(VC_NUM)) p(
                .selected_inputs_out(selected_inputs_chain[i+1]),
                .selected_outputs_out(selected_outputs_chain[i+1]),
                .outputs_out(outputs_chain[i+1]),
                .credit_for_inputs(credit_for_inputs_array[i]),
                .occupieds_out(occupieds_out_array[i]),
                .is_new_flit(is_new_flit_array[i]),
                .selected_inputs_in(selected_inputs_chain[i]),
                .selected_outputs_in(selected_outputs_chain[i]),
                .nxt_routers_credit(nxt_routers_credits_array[i]),
                .flit_in(flit_in),
                .outputs_in(outputs_chain[i]),
                .occupieds_in(occupieds_in_array[i]),
                .TABLE(TABLE)
        );
    end
endgenerate

endmodule
module  priority_all_vc(outputs_out, occupieds_out, credit_for_inputs, nxt_routers_credits, flit_in, occupieds_in, is_new_flit, TABLE);

  parameter VC_NUM = 4;
        output [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_out;
        output [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_out;
        output [0:`IN_OUTPORT_CNT * VC_NUM -1] credit_for_inputs;
        input [0:`IN_OUTPORT_CNT * VC_NUM -1] nxt_routers_credits;
        input [1:`FLIT_SIZE * `IN_OUTPORT_CNT] flit_in;
        input [0:`OCCUPIEDS_SIZE*`IN_OUTPORT_CNT*VC_NUM-1] occupieds_in;
        input [0:VC_NUM*`IN_OUTPORT_CNT-1] is_new_flit;
        input [0:`TABLE_SIZE-1] TABLE;

genvar util_genvar;
`MAKE_ARRAY(occupieds_out_array, occupieds_out, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_OUT_ARRAY)
`MAKE_ARRAY(occupieds_in_array, occupieds_in, VC_NUM, `IN_OUTPORT_CNT * `OCCUPIEDS_SIZE, GEN_OCCUPIEDS_IN_ARRAY)

`MAKE_ARRAY(credit_for_inputs_array, credit_for_inputs, VC_NUM, `IN_OUTPORT_CNT, GEN_CREDIT_FOR_INPUTS)

`MAKE_ARRAY(nxt_routers_credits_array, nxt_routers_credits, VC_NUM, `IN_OUTPORT_CNT, GEN_NXT_ROUTERS_CREDITS)

`MAKE_ARRAY(is_new_flit_array, is_new_flit, VC_NUM, `IN_OUTPORT_CNT, GEN_IS_NEW_FLIT)

wire [0:`IN_OUTPORT_CNT-1] selected_inputs_chain [0:VC_NUM];
assign selected_inputs_chain[0] = {`IN_OUTPORT_CNT{1'b0}};

wire [0:`IN_OUTPORT_CNT-1] selected_outputs_chain [0:VC_NUM];
assign selected_outputs_chain[0] = {`IN_OUTPORT_CNT{1'b0}};

wire [1:`FLIT_SIZE * `IN_OUTPORT_CNT] outputs_chain[0:VC_NUM];
assign outputs_chain[0] = {`FLIT_SIZE*`IN_OUTPORT_CNT{1'b0}};

genvar i;
generate
    for(i=0;i<VC_NUM;i=i+1)
    begin : GEN_PRIORITY_ALL_VC
        priority_vc_inputs #(.VC_NUM(VC_NUM)) p(
                .selected_inputs_out(selected_inputs_chain[i+1]),
                .selected_outputs_out(selected_outputs_chain[i+1]),
                .outputs_out(outputs_chain[i+1]),
                .credit_for_inputs(credit_for_inputs_array[i]),
                .occupieds_out(occupieds_out_array[i]),
                .is_new_flit(is_new_flit_array[i]),
                .selected_inputs_in(selected_inputs_chain[i]),
                .selected_outputs_in(selected_outputs_chain[i]),
                .nxt_routers_credit(nxt_routers_credits_array[i]),
                .flit_in(flit_in),
                .outputs_in(outputs_chain[i]),
                .occupieds_in(occupieds_in_array[i]),
                .TABLE(TABLE)
        );
    end
endgenerate

endmodule