data/full_repos/permissive/143278/ivltests/pr2969724.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr2969724.v:16: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (res !== 8\'d7) begin\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/pr2969724.v:22: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (res !== 8\'d8) begin\n    ^\n%Warning-REALCVT: data/full_repos/permissive/143278/ivltests/pr2969724.v:8: Implicit conversion of real to integer\n    res = 6.0;\n          ^~~\n%Warning-REALCVT: data/full_repos/permissive/143278/ivltests/pr2969724.v:15: Implicit conversion of real to integer\n    res <= 7.0;\n           ^~~\n%Warning-REALCVT: data/full_repos/permissive/143278/ivltests/pr2969724.v:21: Implicit conversion of real to integer\n    res <= rval;\n           ^~~~\n%Error: Exiting due to 5 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass;
  real rval;
  reg [7:0] res;

  initial begin
    pass = 1'b1;
    res = 6.0;
    if (res !== 8'd6) begin
      $display("Failed blocking assignment, expeted 6, got %d", res);
      pass = 1'b0;
    end


    res <= 7.0;
    #1 if (res !== 8'd7) begin
      $display("Failed nonblocking assignment, expeted 7, got %d", res);
      pass = 1'b0;
    end
    rval = 8.0;
    res <= rval;
    #1 if (res !== 8'd8) begin
      $display("Failed nonblocking assignment, expeted 8, got %d", res);
      pass = 1'b0;
    end

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

  reg pass;
  real rval;
  reg [7:0] res;

  initial begin
    pass = 1'b1;
    res = 6.0;
    if (res !== 8'd6) begin
      $display("Failed blocking assignment, expeted 6, got %d", res);
      pass = 1'b0;
    end


    res <= 7.0;
    #1 if (res !== 8'd7) begin
      $display("Failed nonblocking assignment, expeted 7, got %d", res);
      pass = 1'b0;
    end
    rval = 8.0;
    res <= rval;
    #1 if (res !== 8'd8) begin
      $display("Failed nonblocking assignment, expeted 8, got %d", res);
      pass = 1'b0;
    end

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