data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v
1: b'%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:53: Cannot find include file: input_arbiter_cpu_regs_defines.v\n`include "input_arbiter_cpu_regs_defines.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl,data/full_repos/permissive/498471995/input_arbiter_cpu_regs_defines.v\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl,data/full_repos/permissive/498471995/input_arbiter_cpu_regs_defines.v.v\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl,data/full_repos/permissive/498471995/input_arbiter_cpu_regs_defines.v.sv\n             input_arbiter_cpu_regs_defines.v\n             input_arbiter_cpu_regs_defines.v.v\n             input_arbiter_cpu_regs_defines.v.sv\n             obj_dir/input_arbiter_cpu_regs_defines.v\n             obj_dir/input_arbiter_cpu_regs_defines.v.v\n             obj_dir/input_arbiter_cpu_regs_defines.v.sv\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:203: Define or directive not defined: \'`REG_ID_BITS\'\n   reg      [`REG_ID_BITS]    id_reg;\n             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:203: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_ID_BITS]    id_reg;\n                         ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:204: Define or directive not defined: \'`REG_VERSION_BITS\'\n   reg      [`REG_VERSION_BITS]    version_reg;\n             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:204: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_VERSION_BITS]    version_reg;\n                              ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:205: Define or directive not defined: \'`REG_RESET_BITS\'\n   wire     [`REG_RESET_BITS]    reset_reg;\n             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:205: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   wire     [`REG_RESET_BITS]    reset_reg;\n                            ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:206: Define or directive not defined: \'`REG_FLIP_BITS\'\n   reg      [`REG_FLIP_BITS]    ip2cpu_flip_reg;\n             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:206: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_FLIP_BITS]    ip2cpu_flip_reg;\n                           ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:207: Define or directive not defined: \'`REG_FLIP_BITS\'\n   wire     [`REG_FLIP_BITS]    cpu2ip_flip_reg;\n             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:207: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   wire     [`REG_FLIP_BITS]    cpu2ip_flip_reg;\n                           ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:208: Define or directive not defined: \'`REG_PKTIN_BITS\'\n   reg      [`REG_PKTIN_BITS]    pktin_reg;\n             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:208: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_PKTIN_BITS]    pktin_reg;\n                            ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:210: Define or directive not defined: \'`REG_PKTOUT_BITS\'\n   reg      [`REG_PKTOUT_BITS]    pktout_reg;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:210: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_PKTOUT_BITS]    pktout_reg;\n                             ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:212: Define or directive not defined: \'`REG_DEBUG_BITS\'\n   reg      [`REG_DEBUG_BITS]    ip2cpu_debug_reg;\n             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:212: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   reg      [`REG_DEBUG_BITS]    ip2cpu_debug_reg;\n                            ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:213: Define or directive not defined: \'`REG_DEBUG_BITS\'\n   wire     [`REG_DEBUG_BITS]    cpu2ip_debug_reg;\n             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:213: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   wire     [`REG_DEBUG_BITS]    cpu2ip_debug_reg;\n                            ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:398: Define or directive not defined: \'`REG_ID_DEFAULT\'\n  id_reg <= #1    `REG_ID_DEFAULT;\n                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:398: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  id_reg <= #1    `REG_ID_DEFAULT;\n                                 ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:399: Define or directive not defined: \'`REG_VERSION_DEFAULT\'\n  version_reg <= #1    `REG_VERSION_DEFAULT;\n                       ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:399: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  version_reg <= #1    `REG_VERSION_DEFAULT;\n                                           ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:400: Define or directive not defined: \'`REG_FLIP_DEFAULT\'\n  ip2cpu_flip_reg <= #1    `REG_FLIP_DEFAULT;\n                           ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:400: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  ip2cpu_flip_reg <= #1    `REG_FLIP_DEFAULT;\n                                            ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:401: Define or directive not defined: \'`REG_PKTIN_DEFAULT\'\n  pktin_reg <= #1    `REG_PKTIN_DEFAULT;\n                     ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:401: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  pktin_reg <= #1    `REG_PKTIN_DEFAULT;\n                                       ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:402: Define or directive not defined: \'`REG_PKTOUT_DEFAULT\'\n  pktout_reg <= #1    `REG_PKTOUT_DEFAULT;\n                      ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:402: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  pktout_reg <= #1    `REG_PKTOUT_DEFAULT;\n                                         ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:403: Define or directive not defined: \'`REG_DEBUG_DEFAULT\'\n  ip2cpu_debug_reg <= #1    `REG_DEBUG_DEFAULT;\n                            ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:403: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  ip2cpu_debug_reg <= #1    `REG_DEBUG_DEFAULT;\n                                              ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:406: Define or directive not defined: \'`REG_ID_DEFAULT\'\n  id_reg <= #1    `REG_ID_DEFAULT;\n                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:406: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  id_reg <= #1    `REG_ID_DEFAULT;\n                                 ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:407: Define or directive not defined: \'`REG_VERSION_DEFAULT\'\n  version_reg <= #1    `REG_VERSION_DEFAULT;\n                       ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:407: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  version_reg <= #1    `REG_VERSION_DEFAULT;\n                                           ^\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:409: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:410: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:412: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n  pktout_reg [`REG_PKTOUT_WIDTH-2:0]<= #1  clear_counters | pktout_reg_clear ? \'h0  : pktout_reg [`REG_PKTOUT_WIDTH-2:0] + (m_axis_tvalid && m_axis_tlast && m_axis_tready ) ;\n              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:412: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n  pktout_reg [`REG_PKTOUT_WIDTH-2:0]<= #1  clear_counters | pktout_reg_clear ? \'h0  : pktout_reg [`REG_PKTOUT_WIDTH-2:0] + (m_axis_tvalid && m_axis_tlast && m_axis_tready ) ;\n                                                                                                  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:413: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n                pktout_reg [`REG_PKTOUT_WIDTH-1]<= #1  clear_counters | pktout_reg_clear ? \'h0  : pktout_reg [`REG_PKTOUT_WIDTH-2:0] + (m_axis_tvalid && m_axis_tlast && m_axis_tready) > {(`REG_PKTOUT_WIDTH-1){1\'b1}} ?\n                            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:413: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n                pktout_reg [`REG_PKTOUT_WIDTH-1]<= #1  clear_counters | pktout_reg_clear ? \'h0  : pktout_reg [`REG_PKTOUT_WIDTH-2:0] + (m_axis_tvalid && m_axis_tlast && m_axis_tready) > {(`REG_PKTOUT_WIDTH-1){1\'b1}} ?\n                                                                                                              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:413: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n                pktout_reg [`REG_PKTOUT_WIDTH-1]<= #1  clear_counters | pktout_reg_clear ? \'h0  : pktout_reg [`REG_PKTOUT_WIDTH-2:0] + (m_axis_tvalid && m_axis_tlast && m_axis_tready) > {(`REG_PKTOUT_WIDTH-1){1\'b1}} ?\n                                                                                                                                                                                            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:414: Define or directive not defined: \'`REG_PKTOUT_WIDTH\'\n                                                                1\'b1 : pktout_reg [`REG_PKTOUT_WIDTH-1];\n                                                                                   ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/input_arbiter_v1_0_0/hdl/input_arbiter.v:415: Define or directive not defined: \'`REG_DEBUG_DEFAULT\'\n                ip2cpu_debug_reg <= #1    `REG_DEBUG_DEFAULT+cpu2ip_debug_reg;\n                                          ^~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 44 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