data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v
 line:47: before: "integer"
1: b"%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:24: 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/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:25: 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/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:31: 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/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:32: 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/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:63: 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/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:64: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   wire [((`UDP_REG_ADDR_WIDTH-`IN_ARB_REG_ADDR_WIDTH) - 1):0] tag_addr;\n           ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:64: Define or directive not defined: '`IN_ARB_REG_ADDR_WIDTH'\n   wire [((`UDP_REG_ADDR_WIDTH-`IN_ARB_REG_ADDR_WIDTH) - 1):0] tag_addr;\n                               ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:64: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n   wire [((`UDP_REG_ADDR_WIDTH-`IN_ARB_REG_ADDR_WIDTH) - 1):0] tag_addr;\n                                                     ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:81: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]                     eop_cnt;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:83: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]                     reg_data;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:90: Define or directive not defined: '`IN_ARB_REG_ADDR_WIDTH'\n   assign reg_addr = reg_addr_in[`IN_ARB_REG_ADDR_WIDTH-1:0];\n                                 ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:91: Define or directive not defined: '`UDP_REG_ADDR_WIDTH'\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`IN_ARB_REG_ADDR_WIDTH];\n                                 ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:91: Define or directive not defined: '`IN_ARB_REG_ADDR_WIDTH'\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`IN_ARB_REG_ADDR_WIDTH];\n                                                         ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:91: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign tag_addr = reg_addr_in[`UDP_REG_ADDR_WIDTH - 1:`IN_ARB_REG_ADDR_WIDTH];\n                                                                               ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:93: Define or directive not defined: '`IN_ARB_REG_ADDR_WIDTH'\n   assign addr_good = reg_addr[`IN_ARB_REG_ADDR_WIDTH-1:ADDR_WIDTH] == 'h0 &&\n                               ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:95: Define or directive not defined: '`IN_ARB_BLOCK_ADDR'\n   assign tag_hit = tag_addr == `IN_ARB_BLOCK_ADDR;\n                                ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:95: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\n   assign tag_hit = tag_addr == `IN_ARB_BLOCK_ADDR;\n                                                  ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:101: Define or directive not defined: '`IN_ARB_NUM_PKTS_SENT'\n      if (reset || (reg_req_in && tag_hit && addr == `IN_ARB_NUM_PKTS_SENT))\n                                                     ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:101: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      if (reset || (reg_req_in && tag_hit && addr == `IN_ARB_NUM_PKTS_SENT))\n                                                                          ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:165: Define or directive not defined: '`IN_ARB_NUM_PKTS_SENT'\n            `IN_ARB_NUM_PKTS_SENT:        reg_data = eop_cnt;\n            ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:165: syntax error, unexpected ':', expecting endcase\n            `IN_ARB_NUM_PKTS_SENT:        reg_data = eop_cnt;\n                                 ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:166: Define or directive not defined: '`IN_ARB_STATE'\n            `IN_ARB_STATE:                reg_data = {{(`CPCI_NF2_DATA_WIDTH-2){1'b0}}, out_rdy_latched, state_latched};\n            ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:166: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n            `IN_ARB_STATE:                reg_data = {{(`CPCI_NF2_DATA_WIDTH-2){1'b0}}, out_rdy_latched, state_latched};\n                                                        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:167: Define or directive not defined: '`IN_ARB_LAST_PKT_WORD_0_LO'\n            `IN_ARB_LAST_PKT_WORD_0_LO:   reg_data = last_pkt_data_0[31:0];\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:168: Define or directive not defined: '`IN_ARB_LAST_PKT_WORD_0_HI'\n            `IN_ARB_LAST_PKT_WORD_0_HI:   reg_data = last_pkt_data_0[63:32];\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:169: Define or directive not defined: '`IN_ARB_LAST_PKT_CTRL_0'\n            `IN_ARB_LAST_PKT_CTRL_0:      reg_data = last_pkt_ctrl_0;\n            ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:170: Define or directive not defined: '`IN_ARB_LAST_PKT_WORD_1_LO'\n            `IN_ARB_LAST_PKT_WORD_1_LO:   reg_data = last_pkt_data_1[31:0];\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:171: Define or directive not defined: '`IN_ARB_LAST_PKT_WORD_1_HI'\n            `IN_ARB_LAST_PKT_WORD_1_HI:   reg_data = last_pkt_data_1[63:32];\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:172: Define or directive not defined: '`IN_ARB_LAST_PKT_CTRL_1'\n            `IN_ARB_LAST_PKT_CTRL_1:      reg_data = last_pkt_ctrl_1;\n            ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/in_arb_regs.v:209: syntax error, unexpected endmodule\nendmodule  \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