data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv
 line:18: before: "package"
1: b'%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:20: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n  import PkgChdrUtils::*;\n         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:30: Unsupported: classes\n  class ItemDataBuff #(type item_t = logic [31:0], int CHDR_W = 64);\n  ^~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:32: Unsupported: class parameters\n    localparam ITEM_W = $bits(item_t);\n                                     ^\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:39: Unsupported: \'local\' class item\n    local item_t buff[$];\n    ^~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:42: Unsupported: new constructor\n    function new();\n             ^~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:116: Unsupported: this\n        chdr_word_queue_t chdr_q = this.to_chdr_payload();\n                                   ^~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:118: syntax error, unexpected \'{\', expecting STRING\n          str = { str, $sformatf({"%5d> ", format, "\\n"}, i, chdr_q[i]) };\n                                 ^\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:124: syntax error, unexpected \'{\', expecting STRING\n          str = { str, $sformatf({"%5d> ", format, "\\n"}, i, buff[i]) };\n                                 ^\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:137: Unsupported: Parameter classes\n      ItemDataBuff #(item_t,CHDR_W) rhs\n                     ^~~~~~\n%Error: Internal Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/rfnoc/PkgRfnocItemUtils.sv:137: ../V3ParseGrammar.cpp:172: Unknown signal type declared\n      ItemDataBuff #(item_t,CHDR_W) rhs\n                                    ^~~\n'
function void from_hex_file(
      int max_buff_size,
      string filename
    );
      string line;
      int word_i = 0;
      int handle = $fopen(filename, "r");
      queue.delete();
      while ($fgets(line, handle) > 0) begin
        item_t word = 'x;
        int buff_i = word_i++ / max_buff_size;
        if (queue.size() < buff_i + 1) begin
          ItemDataBuff #(item_t) buff = new;
          queue.push_back(buff);
        end
        if ($sscanf(line, "%x", word) > 0) begin
          queue[buff_i].put(word);
        end else begin
          $error("File parse error");
        end
      end
      $fclose(handle);
      handle = 0;
    endfunction
function void from_hex_file(
      int max_buff_size,
      string filename
    );

      string line;
      int word_i = 0;
      int handle = $fopen(filename, "r");
      queue.delete();
      while ($fgets(line, handle) > 0) begin
        item_t word = 'x;
        int buff_i = word_i++ / max_buff_size;
        if (queue.size() < buff_i + 1) begin
          ItemDataBuff #(item_t) buff = new;
          queue.push_back(buff);
        end
        if ($sscanf(line, "%x", word) > 0) begin
          queue[buff_i].put(word);
        end else begin
          $error("File parse error");
        end
      end
      $fclose(handle);
      handle = 0;
    endfunction