data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v
 line:57: before: "integer"
1: b"%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:162: Define or directive not defined: '`METEDATA_NUM'\n                    if(in_ctrl==`METEDATA_NUM) nxt_st=READ;\n                                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:162: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n                    if(in_ctrl==`METEDATA_NUM) nxt_st=READ;\n                                             ^\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:181: syntax error, unexpected default\n                default:nxt_st=IDLE;\n                ^~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:225: Define or directive not defined: '`METEDATA_NUM'\n        else if(cur_st==WAIT_QOS && in_ctrl==`METEDATA_NUM)\n                                             ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:232: Define or directive not defined: '`METEDATA_NUM'\n       else if(cur_st==WAIT_QOS && in_ctrl==`METEDATA_NUM)\n                                            ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:373: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n                    if(qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM) state_nxt=WRITE_QUEUE;\n                                                     ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:373: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n                    if(qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM) state_nxt=WRITE_QUEUE;\n                                                                        ^\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:382: syntax error, unexpected default\n                default:state_nxt=WAIT_NXT_QUEUE;\n                ^~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:408: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n                if(qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM)\n                                                 ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:408: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n                if(qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM)\n                                                                    ^\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:409: Define or directive not defined: '`IOQ_BYTE_LEN_POS'\n                    pkt_byte=qos_fifo_data_out[cur_queue][16+`IOQ_BYTE_LEN_POS-1:`IOQ_BYTE_LEN_POS];\n                                                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:409: Define or directive not defined: '`IOQ_BYTE_LEN_POS'\n                    pkt_byte=qos_fifo_data_out[cur_queue][16+`IOQ_BYTE_LEN_POS-1:`IOQ_BYTE_LEN_POS];\n                                                                                 ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:414: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n        else if(state==READ_HDR && qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM)\n                                                                 ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/qos_wrr.v:414: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n        else if(state==READ_HDR && qos_fifo_ctrl_out[cur_queue]==`IO_QUEUE_STAGE_NUM)\n                                                                                    ^\n%Error: Exiting due to 14 error(s)\n"
function integer log2;
       input integer number;
       begin
          log2=0;
          while(2**log2<number) begin
             log2=log2+1;
          end
       end
    endfunction
function integer log2;

       input integer number;
       begin
          log2=0;
          while(2**log2<number) begin
             log2=log2+1;
          end
       end
    endfunction