data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v
 line:79: before: "integer"
1: b"%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:42: Define or directive not defined: '`MAC_GRP_REG_ADDR_WIDTH'\n     input  [`MAC_GRP_REG_ADDR_WIDTH-1:0] mac_grp_reg_addr,\n             ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:43: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n     input  [`CPCI_NF2_DATA_WIDTH-1:0]    mac_grp_reg_wr_data,\n             ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:45: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n     output reg [`CPCI_NF2_DATA_WIDTH-1:0] mac_grp_reg_rd_data,\n                 ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:122: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]      reg_file [0:NUM_REGS_USED-1];\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:124: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]      reg_file_in;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:125: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   wire [`CPCI_NF2_DATA_WIDTH-1:0]     reg_file_out;\n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:133: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]      control_reg;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:134: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n   reg [`CPCI_NF2_DATA_WIDTH-1:0]      control_reg_nxt;\n        ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:199: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_FULL'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_FULL)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:199: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_FULL)\n                                                                                 ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:207: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_BAD'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_BAD)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:207: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DROPPED_BAD)\n                                                                                ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:215: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_PKTS_STORED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_STORED )\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:215: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_STORED )\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:223: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_WORDS_PUSHED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_WORDS_PUSHED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:223: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_WORDS_PUSHED)\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:231: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_BYTES_PUSHED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_BYTES_PUSHED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:231: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_BYTES_PUSHED)\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:239: Define or directive not defined: '`MAC_GRP_TX_QUEUE_NUM_PKTS_SENT'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_PKTS_SENT)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:239: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_PKTS_SENT)\n                                                                         ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:247: Define or directive not defined: '`MAC_GRP_TX_QUEUE_NUM_WORDS_PUSHED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_WORDS_PUSHED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:247: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_WORDS_PUSHED)\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:255: Define or directive not defined: '`MAC_GRP_TX_QUEUE_NUM_BYTES_PUSHED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_BYTES_PUSHED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:255: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_BYTES_PUSHED)\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:263: Define or directive not defined: '`MAC_GRP_TX_QUEUE_NUM_PKTS_IN_QUEUE'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_PKTS_IN_QUEUE) begin\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:263: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_PKTS_IN_QUEUE) begin\n                                                                             ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:281: Define or directive not defined: '`MAC_GRP_TX_QUEUE_NUM_PKTS_ENQUEUED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_TX_QUEUE_NUM_PKTS_ENQUEUED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:289: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_PKTS_DEQUEUED'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DEQUEUED)\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:289: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_DEQUEUED)\n                                                                             ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:297: Define or directive not defined: '`MAC_GRP_RX_QUEUE_NUM_PKTS_IN_QUEUE'\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_IN_QUEUE) begin\n                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:297: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n      else if (!new_reg_req && reg_cnt == `MAC_GRP_RX_QUEUE_NUM_PKTS_IN_QUEUE) begin\n                                                                             ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:321: Define or directive not defined: '`MAC_GRP_RX_QUEUE_DISABLE_BIT_NUM'\n   assign rx_queue_en         = !control_reg[`MAC_GRP_RX_QUEUE_DISABLE_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:321: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign rx_queue_en         = !control_reg[`MAC_GRP_RX_QUEUE_DISABLE_BIT_NUM];\n                                                                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:322: Define or directive not defined: '`MAC_GRP_TX_QUEUE_DISABLE_BIT_NUM'\n   assign tx_queue_en         = !control_reg[`MAC_GRP_TX_QUEUE_DISABLE_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:322: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign tx_queue_en         = !control_reg[`MAC_GRP_TX_QUEUE_DISABLE_BIT_NUM];\n                                                                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:323: Define or directive not defined: '`MAC_GRP_RESET_MAC_BIT_NUM'\n   assign reset_MAC           = control_reg[`MAC_GRP_RESET_MAC_BIT_NUM] | (|reset_long);\n                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:323: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign reset_MAC           = control_reg[`MAC_GRP_RESET_MAC_BIT_NUM] | (|reset_long);\n                                                                      ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:324: Define or directive not defined: '`MAC_GRP_MAC_DIS_JUMBO_TX_BIT_NUM'\n   assign enable_jumbo_tx     = !control_reg[`MAC_GRP_MAC_DIS_JUMBO_TX_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:324: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign enable_jumbo_tx     = !control_reg[`MAC_GRP_MAC_DIS_JUMBO_TX_BIT_NUM];\n                                                                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:325: Define or directive not defined: '`MAC_GRP_MAC_DIS_JUMBO_RX_BIT_NUM'\n   assign enable_jumbo_rx     = !control_reg[`MAC_GRP_MAC_DIS_JUMBO_RX_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:325: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign enable_jumbo_rx     = !control_reg[`MAC_GRP_MAC_DIS_JUMBO_RX_BIT_NUM];\n                                                                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:326: Define or directive not defined: '`MAC_GRP_MAC_DIS_CRC_CHECK_BIT_NUM'\n   assign disable_crc_check   = control_reg[`MAC_GRP_MAC_DIS_CRC_CHECK_BIT_NUM];\n                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:326: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign disable_crc_check   = control_reg[`MAC_GRP_MAC_DIS_CRC_CHECK_BIT_NUM];\n                                                                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:327: Define or directive not defined: '`MAC_GRP_MAC_DIS_CRC_GEN_BIT_NUM'\n   assign disable_crc_gen     = control_reg[`MAC_GRP_MAC_DIS_CRC_GEN_BIT_NUM];\n                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:327: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign disable_crc_gen     = control_reg[`MAC_GRP_MAC_DIS_CRC_GEN_BIT_NUM];\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:328: Define or directive not defined: '`MAC_GRP_MAC_DISABLE_RX_BIT_NUM'\n   assign rx_mac_en           = !control_reg[`MAC_GRP_MAC_DISABLE_RX_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:328: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign rx_mac_en           = !control_reg[`MAC_GRP_MAC_DISABLE_RX_BIT_NUM];\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:329: Define or directive not defined: '`MAC_GRP_MAC_DISABLE_TX_BIT_NUM'\n   assign tx_mac_en           = !control_reg[`MAC_GRP_MAC_DISABLE_TX_BIT_NUM];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:329: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\n   assign tx_mac_en           = !control_reg[`MAC_GRP_MAC_DISABLE_TX_BIT_NUM];\n                                                                            ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/mac_grp_regs.v:332: Define or directive not defined: '`MAC_GRP_REG_ADDR_WIDTH'\n   assign addr_good           = mac_grp_reg_addr[`MAC_GRP_REG_ADDR_WIDTH-1:REG_FILE_ADDR_WIDTH] == 'h0 &&\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