data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v
 line:56: before: "integer"
1: b"%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:39: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n    input  [`UDP_REG_ADDR_WIDTH-1:0]   reg_addr_in,\n            ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:40: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n    input  [`CPCI_NF2_DATA_WIDTH-1:0]  reg_data_in,\n            ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:46: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n    output  [`UDP_REG_ADDR_WIDTH-1:0]  reg_addr_out,\n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:47: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n    output  [`CPCI_NF2_DATA_WIDTH-1:0] reg_data_out,\n             ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:272: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n              if(in_fifo_ctrl_dout==`IO_QUEUE_STAGE_NUM) begin\n                                    ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:272: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n              if(in_fifo_ctrl_dout==`IO_QUEUE_STAGE_NUM) begin\n                                                       ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:273: Define or directive not defined: '`IOQ_DST_PORT_POS'\n                 out_data[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] = dst_ports_latched;\n                          ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:273: Define or directive not defined: '`IOQ_DST_PORT_POS'\n                 out_data[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] = dst_ports_latched;\n                                                                    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:279: syntax error, unexpected end, expecting endcase\n        end\n        ^~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/output_port_lookup.v:287: syntax error, unexpected '=', expecting IDENTIFIER\n              in_fifo_rd_en   = 1;\n                              ^\n%Error: Cannot continue\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