data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.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/op_lut_regs.v:23: 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/op_lut_regs.v:24: 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/op_lut_regs.v:30: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n      output reg [`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/op_lut_regs.v:31: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n      output reg [`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/op_lut_regs.v:77: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      reg_file [0:NUM_REGS_USED-1];\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:78: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg  [`CPCI_NF2_DATA_WIDTH-1:0]      reg_file_next [0:NUM_REGS_USED-1];\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:80: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      reg_file_selected;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:83: Define or directive not defined: '`IN_ARB_REG_ADDR_WIDTH'\n   wire [`IN_ARB_REG_ADDR_WIDTH - 1:0]  reg_addr;\n         ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:84: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   wire [`UDP_REG_ADDR_WIDTH-`SWITCH_OP_LUT_BLOCK_ADDR_WIDTH-`SWITCH_OP_LUT_REG_ADDR_WIDTH - 1:0] tag_addr;\n         ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:84: Define or directive not defined: '`SWITCH_OP_LUT_BLOCK_ADDR_WIDTH'\n   wire [`UDP_REG_ADDR_WIDTH-`SWITCH_OP_LUT_BLOCK_ADDR_WIDTH-`SWITCH_OP_LUT_REG_ADDR_WIDTH - 1:0] tag_addr;\n                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:84: Define or directive not defined: '`SWITCH_OP_LUT_REG_ADDR_WIDTH'\n   wire [`UDP_REG_ADDR_WIDTH-`SWITCH_OP_LUT_BLOCK_ADDR_WIDTH-`SWITCH_OP_LUT_REG_ADDR_WIDTH - 1:0] tag_addr;\n                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:89: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      mac_addr_lo;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:90: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      ports_mac_addr_hi;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:94: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]       op_lut_reg_rd_data_next;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:96: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      num_hits;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:97: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]      num_misses;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:99: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg  [NUM_REGS_USED*`CPCI_NF2_DATA_WIDTH-1:0]   reg_file_linear;\n                       ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:100: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [NUM_REGS_USED*`CPCI_NF2_DATA_WIDTH-1:0]   reg_file_linear_next;\n                       ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:103: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   reg  [`UDP_REG_ADDR_WIDTH-1:0]        reg_addr_held;\n         ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:104: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg  [`CPCI_NF2_DATA_WIDTH-1:0]       reg_data_held;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:108: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   reg  [`UDP_REG_ADDR_WIDTH-1:0]        reg_addr_held_nxt;\n         ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:109: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg  [`CPCI_NF2_DATA_WIDTH-1:0]       reg_data_held_nxt;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:115: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   reg  [`UDP_REG_ADDR_WIDTH-1:0]        reg_addr_out_nxt;\n         ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:116: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg  [`CPCI_NF2_DATA_WIDTH-1:0]       reg_data_out_nxt;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:123: Define or directive not defined: '`SWITCH_OP_LUT_REG_ADDR_WIDTH'\n   assign reg_addr = reg_addr_in[`SWITCH_OP_LUT_REG_ADDR_WIDTH-1:0];\n                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:124: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`SWITCH_OP_LUT_REG_ADDR_WIDTH];\n                                 ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:124: Define or directive not defined: '`SWITCH_OP_LUT_REG_ADDR_WIDTH'\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`SWITCH_OP_LUT_REG_ADDR_WIDTH];\n                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:124: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`SWITCH_OP_LUT_REG_ADDR_WIDTH];\n                                                                                      ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:127: Define or directive not defined: '`SWITCH_OP_LUT_BLOCK_ADDR'\n   assign tag_hit = tag_addr == `SWITCH_OP_LUT_BLOCK_ADDR;\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:127: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\n   assign tag_hit = tag_addr == `SWITCH_OP_LUT_BLOCK_ADDR;\n                                                         ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:129: Define or directive not defined: '`SWITCH_OP_LUT_MAC_LO'\n   assign mac_addr_lo = reg_file[`SWITCH_OP_LUT_MAC_LO];\n                                 ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:129: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign mac_addr_lo = reg_file[`SWITCH_OP_LUT_MAC_LO];\n                                                      ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:130: Define or directive not defined: '`SWITCH_OP_LUT_PORTS_MAC_HI'\n   assign ports_mac_addr_hi = reg_file[`SWITCH_OP_LUT_PORTS_MAC_HI];\n                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:130: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign ports_mac_addr_hi = reg_file[`SWITCH_OP_LUT_PORTS_MAC_HI];\n                                                                  ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:133: Define or directive not defined: '`SWITCH_OP_LUT_MAC_LO'\n   assign wr_mac = {ports_mac_addr_hi, reg_file[`SWITCH_OP_LUT_MAC_LO]};  \n                                                ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:133: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign wr_mac = {ports_mac_addr_hi, reg_file[`SWITCH_OP_LUT_MAC_LO]};  \n                                                                     ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:134: Define or directive not defined: '`SWITCH_OP_LUT_MAC_LUT_WR_ADDR'\n   assign wr_addr = reg_file[`SWITCH_OP_LUT_MAC_LUT_WR_ADDR];\n                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:134: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign wr_addr = reg_file[`SWITCH_OP_LUT_MAC_LUT_WR_ADDR];\n                                                           ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:136: Define or directive not defined: '`SWITCH_OP_LUT_MAC_LUT_RD_ADDR'\n   assign rd_addr = reg_file[`SWITCH_OP_LUT_MAC_LUT_RD_ADDR];\n                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:136: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign rd_addr = reg_file[`SWITCH_OP_LUT_MAC_LUT_RD_ADDR];\n                                                           ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:138: Define or directive not defined: '`SWITCH_OP_LUT_NUM_HITS'\n   assign num_hits = reg_file[`SWITCH_OP_LUT_NUM_HITS];\n                              ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:138: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign num_hits = reg_file[`SWITCH_OP_LUT_NUM_HITS];\n                                                     ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:139: Define or directive not defined: '`SWITCH_OP_LUT_NUM_MISSES'\n   assign num_misses = reg_file[`SWITCH_OP_LUT_NUM_MISSES];\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:139: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign num_misses = reg_file[`SWITCH_OP_LUT_NUM_MISSES];\n                                                         ^\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:147: Define or directive not defined: '`REG_END'\n      assign reg_file_linear_next[`REG_END(j):`REG_START(j)] = reg_file_next[j];\n                                  ^~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:147: Define or directive not defined: '`REG_START'\n      assign reg_file_linear_next[`REG_END(j):`REG_START(j)] = reg_file_next[j];\n                                              ^~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:148: Define or directive not defined: '`REG_END'\n      assign reg_file[j] = reg_file_linear[`REG_END(j):`REG_START(j)];\n                                           ^~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:148: Define or directive not defined: '`REG_START'\n      assign reg_file[j] = reg_file_linear[`REG_END(j):`REG_START(j)];\n                                                       ^~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:155: Define or directive not defined: '`SWITCH_OP_LUT_PORTS_MAC_HI'\n      reg_file_next[`SWITCH_OP_LUT_PORTS_MAC_HI]    = ports_mac_addr_hi;\n                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/121277233/ons20-app21-ref_switch/vivado/onets_7020_ref_switch/ip/ref_switch_core/src/udp/op_lut_regs.v:155: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n      reg_file_next[`SWITCH_OP_LUT_PORTS_MAC_HI]    = ports_mac_addr_hi;\n                                               ^\n%Error: Exiting due to too many errors encountered; --error-limit=50\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