data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv
 line:16: before: "package"
1: b"%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:18: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n  import PkgMath::*;\n         ^~~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:37: Unsupported or unknown PLI call: $urandom\n    real_bits[31: 0] = $urandom();\n                       ^~~~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:38: Unsupported or unknown PLI call: $urandom\n    real_bits[51:32] = $urandom();\n                       ^~~~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:76: Unsupported: classes\n  class Rand #(WIDTH = 64);\n  ^~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:92: Unsupported: 'static' class item\n    static function unsigned_t rand_bit();\n    ^~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:96: Unsupported or unknown PLI call: $urandom\n        result = {result, $urandom()};\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:105: Unsupported: 'static' class item\n    static function bit [WIDTH-1:0] rand_bit_range(\n    ^~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:128: Unsupported: 'static' class item\n    static function signed_t rand_sbit_range(\n    ^~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:140: Unsupported: 'static' class item\n    static function logic [WIDTH-1:0] rand_logic();\n    ^~~~~~\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/packages/PkgRandom.sv:146: syntax error, unexpected endpackage\nendpackage : PkgRandom\n^~~~~~~~~~\n%Error: Exiting due to 10 error(s)\n"
function unsigned_t rand_bit();
      unsigned_t result;
      int num_rand32 = (WIDTH + 31) / 32;
      for (int i = 0; i < num_rand32; i++) begin
        result = {result, $urandom()};
      end
      return result;
    endfunction
function unsigned_t rand_bit();

      unsigned_t result;
      int num_rand32 = (WIDTH + 31) / 32;
      for (int i = 0; i < num_rand32; i++) begin
        result = {result, $urandom()};
      end
      return result;
    endfunction