data/full_repos/permissive/143278/vpi/check_version.v
1: b'%Error: data/full_repos/permissive/143278/vpi/check_version.v:5: Unsupported or unknown PLI call: $simparam\n    ver = $simparam("simulatorVersion");\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/143278/vpi/check_version.v:6: Unsupported or unknown PLI call: $simparam\n    subver = $simparam("simulatorSubversion");\n             ^~~~~~~~~\n%Error: data/full_repos/permissive/143278/vpi/check_version.v:11: Unsupported or unknown PLI call: $get_version\n    $get_version(info_str);\n    ^~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg [80*8:1] simp_str, info_str;
  real ver, subver;
  initial begin
    ver = $simparam("simulatorVersion");
    subver = $simparam("simulatorSubversion");

    if (ver < 1.0) $swrite(simp_str, "%0.1f.%0.0f", ver, subver);

    else $swrite(simp_str, "%0.0f.%0.0f", ver, subver);
    $get_version(info_str);
    if (simp_str !== info_str) begin
      $display("FAILED");
      $display("$simparam         version: '%0s'", simp_str);
      $display("vpi_get_vlog_info version: '%0s'", info_str);
    end else $display("The two versions matched!");
  end
endmodule
module top;

  reg [80*8:1] simp_str, info_str;
  real ver, subver;
  initial begin
    ver = $simparam("simulatorVersion");
    subver = $simparam("simulatorSubversion");

    if (ver < 1.0) $swrite(simp_str, "%0.1f.%0.0f", ver, subver);

    else $swrite(simp_str, "%0.0f.%0.0f", ver, subver);
    $get_version(info_str);
    if (simp_str !== info_str) begin
      $display("FAILED");
      $display("$simparam         version: '%0s'", simp_str);
      $display("vpi_get_vlog_info version: '%0s'", info_str);
    end else $display("The two versions matched!");
  end
endmodule