data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v
 line:6: before: "="
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:13: Unsupported: Ignoring delay on this delayed statement.\n    #0.9;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:19: Unsupported: Ignoring delay on this delayed statement.\n    #0.1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:20: Unsupported: Ignoring delay on this delayed statement.\n    #0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:26: Unsupported: Ignoring delay on this delayed statement.\n    #1 ra = 2.0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:27: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:33: Unsupported: Ignoring delay on this delayed statement.\n    #1 ra = 0.0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:34: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:40: Unsupported: Ignoring delay on this delayed statement.\n    #1 ra = 10.0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:41: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:47: Unsupported: Ignoring delay on this delayed statement.\n    #1 ra = 0.0; rb = -1.0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:48: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:51: Unsupported: Ignoring delay on this delayed statement.\n    #1 ra = -1.0; rb = 2.5;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/real_pwr_in_ca.v:52: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Error: Exiting due to 13 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass = 1'b1;

  real ra = 1.0, rb = 2.0;
  wire real rpow;


  assign #1 rpow = ra ** rb;

  initial begin
    #0.9;
    if (rpow == 1.0) begin
      pass = 1'b0;
      $display("Real: power value not delayed.");
    end

    #0.1;
    #0;
    if (rpow != 1.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 1.0 got %g.", rpow);
    end

    #1 ra = 2.0;
    #2;
    if (rpow != 4.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 4.0 got %g.", rpow);
    end

    #1 ra = 0.0;
    #2;
    if (rpow != 0.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 0.0 got %g.", rpow);
    end

    #1 ra = 10.0;
    #2;
    if (rpow != 100.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 100.0 got %g.", rpow);
    end

    #1 ra = 0.0; rb = -1.0;
    #2;
    $display("0.0 ** -1.0 = %g", rpow);

    #1 ra = -1.0; rb = 2.5;
    #2;
    $display("-1.0 ** 2.5 = %g", rpow);

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

  reg pass = 1'b1;

  real ra = 1.0, rb = 2.0;
  wire real rpow;


  assign #1 rpow = ra ** rb;

  initial begin
    #0.9;
    if (rpow == 1.0) begin
      pass = 1'b0;
      $display("Real: power value not delayed.");
    end

    #0.1;
    #0;
    if (rpow != 1.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 1.0 got %g.", rpow);
    end

    #1 ra = 2.0;
    #2;
    if (rpow != 4.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 4.0 got %g.", rpow);
    end

    #1 ra = 0.0;
    #2;
    if (rpow != 0.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 0.0 got %g.", rpow);
    end

    #1 ra = 10.0;
    #2;
    if (rpow != 100.0) begin
      pass = 1'b0;
      $display("Real: power value not correct, expected 100.0 got %g.", rpow);
    end

    #1 ra = 0.0; rb = -1.0;
    #2;
    $display("0.0 ** -1.0 = %g", rpow);

    #1 ra = -1.0; rb = 2.5;
    #2;
    $display("-1.0 ** 2.5 = %g", rpow);

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