data/full_repos/permissive/143278/ivltests/abstime.v
1: b'%Error: data/full_repos/permissive/143278/ivltests/abstime.v:10: Unsupported or unknown PLI call: $abstime\n    result = $abstime;\n             ^~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/abstime.v:16: Unsupported: Ignoring delay on this delayed statement.\n    #10;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:17: Unsupported or unknown PLI call: $abstime\n    result = $abstime;\n             ^~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:18: Unsupported or unknown PLI call: $abs\n    if ($abs(result-10e-9) > result*1e-9) begin\n        ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/abstime.v:23: Unsupported: Ignoring delay on this delayed statement.\n    #999990;\n    ^\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:24: Unsupported or unknown PLI call: $abstime\n    result = $abstime;\n             ^~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:25: Unsupported or unknown PLI call: $abs\n    if ($abs(result-0.001) > result*1e-9) begin\n        ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/abstime.v:33: Unsupported: Ignoring delay on this delayed statement.\n    #9999000000.0;\n    ^\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:35: Unsupported or unknown PLI call: $abstime\n    result = $abstime;\n             ^~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/abstime.v:36: Unsupported or unknown PLI call: $abs\n    if ($abs(result-10.0) > result*1e-9) begin\n        ^~~~\n%Error: Exiting due to 7 error(s), 3 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass;
  real result;

  initial begin
    pass = 1'b1;

    result = $abstime;
    if (result != 0.0) begin
      $display("FAILED at time 0, expected 0.0, got %g", result);
      pass = 1'b0;
    end

    #10;
    result = $abstime;
    if ($abs(result-10e-9) > result*1e-9) begin
      $display("FAILED at time 10ns, expected 1e-8, got %g", result);
      pass = 1'b0;
    end

    #999990;
    result = $abstime;
    if ($abs(result-0.001) > result*1e-9) begin
      $display("FAILED at time 1ms, expected 0.001, got %g", result);
      pass = 1'b0;
    end

`ifdef __ICARUS_UNSIZED__
    #9999000000;
`else
    #9999000000.0;
`endif
    result = $abstime;
    if ($abs(result-10.0) > result*1e-9) begin
      $display("FAILED at time 10s, expected 10.0, got %g", result);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule
module top;

  reg pass;
  real result;

  initial begin
    pass = 1'b1;

    result = $abstime;
    if (result != 0.0) begin
      $display("FAILED at time 0, expected 0.0, got %g", result);
      pass = 1'b0;
    end

    #10;
    result = $abstime;
    if ($abs(result-10e-9) > result*1e-9) begin
      $display("FAILED at time 10ns, expected 1e-8, got %g", result);
      pass = 1'b0;
    end

    #999990;
    result = $abstime;
    if ($abs(result-0.001) > result*1e-9) begin
      $display("FAILED at time 1ms, expected 0.001, got %g", result);
      pass = 1'b0;
    end

`ifdef __ICARUS_UNSIZED__
    #9999000000;
`else
    #9999000000.0;
`endif
    result = $abstime;
    if ($abs(result-10.0) > result*1e-9) begin
      $display("FAILED at time 10s, expected 10.0, got %g", result);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule