data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v
1: b'%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:53: Cannot find include file: output_port_lookup_cpu_regs_defines.v\n`include "output_port_lookup_cpu_regs_defines.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl,data/full_repos/permissive/498471995/output_port_lookup_cpu_regs_defines.v\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl,data/full_repos/permissive/498471995/output_port_lookup_cpu_regs_defines.v.v\n             data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl,data/full_repos/permissive/498471995/output_port_lookup_cpu_regs_defines.v.sv\n             output_port_lookup_cpu_regs_defines.v\n             output_port_lookup_cpu_regs_defines.v.v\n             output_port_lookup_cpu_regs_defines.v.sv\n             obj_dir/output_port_lookup_cpu_regs_defines.v\n             obj_dir/output_port_lookup_cpu_regs_defines.v.v\n             obj_dir/output_port_lookup_cpu_regs_defines.v.sv\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:115: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:115: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:116: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:116: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:117: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:117: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:118: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:118: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:119: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:119: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:120: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:120: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:122: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:122: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:124: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:124: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:125: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:125: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:282: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:282: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:283: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:283: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:284: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:284: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:285: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:285: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:286: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:286: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:287: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:287: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:290: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:290: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:291: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:291: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:293: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n  pktin_reg[`REG_PKTIN_WIDTH -2: 0] <= #1  clear_counters | pktin_reg_clear ? \'h0  : pktin_reg[`REG_PKTIN_WIDTH-2:0] + (s_axis_tlast && s_axis_tvalid && s_axis_tready) ;\n            ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:293: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n  pktin_reg[`REG_PKTIN_WIDTH -2: 0] <= #1  clear_counters | pktin_reg_clear ? \'h0  : pktin_reg[`REG_PKTIN_WIDTH-2:0] + (s_axis_tlast && s_axis_tvalid && s_axis_tready) ;\n                                                                                               ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:294: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n                pktin_reg[`REG_PKTIN_WIDTH-1] <= #1 clear_counters | pktin_reg_clear ? 1\'h0 : pktin_reg_clear ? \'h0  : pktin_reg[`REG_PKTIN_WIDTH-2:0] + (s_axis_tlast && s_axis_tvalid && s_axis_tready) \n                          ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:294: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n                pktin_reg[`REG_PKTIN_WIDTH-1] <= #1 clear_counters | pktin_reg_clear ? 1\'h0 : pktin_reg_clear ? \'h0  : pktin_reg[`REG_PKTIN_WIDTH-2:0] + (s_axis_tlast && s_axis_tvalid && s_axis_tready) \n                                                                                                                                 ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:295: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n                                                     > {(`REG_PKTIN_WIDTH-1){1\'b1}} ? 1\'b1 : pktin_reg[`REG_PKTIN_WIDTH-1];\n                                                         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:295: Define or directive not defined: \'`REG_PKTIN_WIDTH\'\n                                                     > {(`REG_PKTIN_WIDTH-1){1\'b1}} ? 1\'b1 : pktin_reg[`REG_PKTIN_WIDTH-1];\n                                                                                                       ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:297: 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_tlast && m_axis_tvalid && m_axis_tready) ;\n              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:297: 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_tlast && m_axis_tvalid && m_axis_tready) ;\n                                                                                                  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:298: 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_tlast && m_axis_tvalid && 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:298: 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_tlast && m_axis_tvalid && 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:298: 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_tlast && m_axis_tvalid && 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:299: 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/nic_output_port_lookup_v1_0_0/hdl/nic_output_port_lookup.v:300: 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 48 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