data/full_repos/permissive/121277233/ons20-app52-ref_ofshw/vivado/onets_7020_4x_ref_ofshw/ip/packet_pipeline_v1_0/src/user_data_path/queue_splitter.v
 line:92: 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/queue_splitter.v:239: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n                   if(in_wr && (in_ctrl==`IO_QUEUE_STAGE_NUM | in_ctrl==`VLAN_CTRL_WORD)) nxt_st=READY_TO_WRITE;\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/queue_splitter.v:239: Define or directive not defined: '`VLAN_CTRL_WORD'\n                   if(in_wr && (in_ctrl==`IO_QUEUE_STAGE_NUM | in_ctrl==`VLAN_CTRL_WORD)) nxt_st=READY_TO_WRITE;\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/queue_splitter.v:239: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n                   if(in_wr && (in_ctrl==`IO_QUEUE_STAGE_NUM | in_ctrl==`VLAN_CTRL_WORD)) nxt_st=READY_TO_WRITE;\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/queue_splitter.v:249: syntax error, unexpected default\n               default:nxt_st=READ_HDR;\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/queue_splitter.v:256: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n       else if(in_wr && in_ctrl==`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/queue_splitter.v:258: Define or directive not defined: '`IOQ_METER_ID_POS'\n                if(in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_POS]==0)\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/queue_splitter.v:258: Define or directive not defined: '`IOQ_METER_ID_POS'\n                if(in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_POS]==0)\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/queue_splitter.v:260: Define or directive not defined: '`IOQ_METER_ID_POS'\n                else if(in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_POS]>=5'b10000)\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/queue_splitter.v:260: Define or directive not defined: '`IOQ_METER_ID_POS'\n                else if(in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_POS]>=5'b10000)\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/queue_splitter.v:263: Define or directive not defined: '`IOQ_METER_ID_POS'\n                    in_fifo_wr<=in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_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/queue_splitter.v:263: Define or directive not defined: '`IOQ_METER_ID_POS'\n                    in_fifo_wr<=in_data[`IOQ_METER_ID_POS + 8 - 1:`IOQ_METER_ID_POS];\n                                                                  ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 11 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