data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v
 line:44: before: ","
1: b"%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:44: Define or directive not defined: '`IO_QUEUE_STAGE_NUM'\n      parameter IOQ_STAGE_NUM = `IO_QUEUE_STAGE_NUM,\n                                ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:44: syntax error, unexpected ',', expecting TYPE-IDENTIFIER\n      parameter IOQ_STAGE_NUM = `IO_QUEUE_STAGE_NUM,\n                                                   ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:46: syntax error, unexpected parameter, expecting IDENTIFIER\n      parameter PKT_WORDS_WIDTH = PKT_LEN_WIDTH-log2(CTRL_WIDTH),\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:47: syntax error, unexpected parameter, expecting IDENTIFIER\n      parameter NUM_OQ_WIDTH = log2(NUM_OUTPUT_QUEUES)\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:49: syntax error, unexpected ')', expecting ';'\n  )\n  ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:125: syntax error, unexpected output\n     output reg                         rd_0_req;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:128: syntax error, unexpected output\n     output reg [NUM_OQ_WIDTH-1:0]      src_oq;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:129: syntax error, unexpected output\n     output reg                         rd_src_addr;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:130: syntax error, unexpected input\n     input      [SRAM_ADDR_WIDTH-1:0]   src_oq_rd_addr;\n     ^~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:136: syntax error, unexpected output\n     output reg [PKT_LEN_WIDTH-1:0]     removed_pkt_data_length;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:137: syntax error, unexpected output\n     output reg [CTRL_WIDTH-1:0]        removed_pkt_overhead_length;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:138: syntax error, unexpected output\n     output reg [PKT_WORDS_WIDTH-1:0]   removed_pkt_total_word_length;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:139: syntax error, unexpected output\n     output reg [NUM_OQ_WIDTH-1:0]      removed_oq;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:141: syntax error, unexpected input\n     input      [NUM_OUTPUT_QUEUES-1:0] enable_send_pkt;\n     ^~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:149: syntax error, unexpected output\n     output     [DATA_WIDTH-1:0]        out_data_1;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:154: syntax error, unexpected output\n     output     [DATA_WIDTH-1:0]        out_data_2;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:159: syntax error, unexpected output\n     output     [DATA_WIDTH-1:0]        out_data_3;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:164: syntax error, unexpected output\n     output     [DATA_WIDTH-1:0]        out_data_4;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:169: syntax error, unexpected output\n     output  [DATA_WIDTH-1:0]           out_data_5;\n     ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:172: syntax error, unexpected input\n     input                              out_rdy_5;\n     ^~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:177: syntax error, unexpected input\n     input                              out_rdy_6;\n     ^~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:182: syntax error, unexpected input\n     input                              out_rdy_7;\n     ^~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:262: syntax error, unexpected generate\n   generate\n   ^~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:502: Define or directive not defined: '`IOQ_DST_PORT_POS'\n              output_fifo_wr_en   = sram_data_out[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] & output_fifo_empty;\n                                                  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:502: Define or directive not defined: '`IOQ_DST_PORT_POS'\n              output_fifo_wr_en   = sram_data_out[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] & output_fifo_empty;\n                                                                                            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:532: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n            pkt_len_counter <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS] + 'h1;\n                                                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:532: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n            pkt_len_counter <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS] + 'h1;\n                                                                               ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:543: Define or directive not defined: '`IOQ_DST_PORT_POS'\n            out_wr_selected <= sram_data_out[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] & output_fifo_empty;\n                                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:543: Define or directive not defined: '`IOQ_DST_PORT_POS'\n            out_wr_selected <= sram_data_out[`IOQ_DST_PORT_POS + NUM_OUTPUT_QUEUES - 1:`IOQ_DST_PORT_POS] & output_fifo_empty;\n                                                                                       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:556: Define or directive not defined: '`IOQ_BYTE_LEN_POS'\n            removed_pkt_data_length          <= sram_data_out[PKT_LEN_WIDTH+`IOQ_BYTE_LEN_POS:`IOQ_BYTE_LEN_POS];\n                                                                            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:556: Define or directive not defined: '`IOQ_BYTE_LEN_POS'\n            removed_pkt_data_length          <= sram_data_out[PKT_LEN_WIDTH+`IOQ_BYTE_LEN_POS:`IOQ_BYTE_LEN_POS];\n                                                                                              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:558: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n            removed_pkt_total_word_length    <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS] + 1;\n                                                                              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:558: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n            removed_pkt_total_word_length    <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS] + 1;\n                                                                                                ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:568: syntax error, unexpected always\n   always @(posedge clk) begin\n   ^~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:570: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n         pkt_len_counter_sim <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS];\n                                                              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/remove_pkt.v:570: Define or directive not defined: '`IOQ_WORD_LEN_POS'\n         pkt_len_counter_sim <= sram_data_out[PKT_WORDS_WIDTH+`IOQ_WORD_LEN_POS:`IOQ_WORD_LEN_POS];\n                                                                                ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 36 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