data/full_repos/permissive/143278/ivltests/fork_join_dis.v
 line:36: before: "."
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:12: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:36: syntax error, unexpected \'.\', expecting \';\'\n    disable top.be_name;\n               ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:37: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:66: Unsupported: fork statements\n    fork: fa_name\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:67: Unsupported: Ignoring delay on this delayed statement.\n      #1 a[0] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:68: Unsupported: Ignoring delay on this delayed statement.\n      #3 a[1] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:75: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:76: Unsupported: Ignoring delay on this delayed statement.\n      #1 b[0] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:77: Unsupported: Ignoring delay on this delayed statement.\n      #3 b[1] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:84: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:85: Unsupported: Ignoring delay on this delayed statement.\n      #1 c[0] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:86: Unsupported: Ignoring delay on this delayed statement.\n      #3 c[1] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:92: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:93: Unsupported: Ignoring delay on this delayed statement.\n      #1 d[0] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:94: Unsupported: Ignoring delay on this delayed statement.\n      #3 d[1] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:96: Unsupported: Ignoring delay on this delayed statement.\n    #4;\n    ^\n%Error: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:102: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:103: Unsupported: Ignoring delay on this delayed statement.\n      #1 e[0] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/fork_join_dis.v:104: Unsupported: Ignoring delay on this delayed statement.\n      #3 e[1] = 1\'b1;\n      ^\n%Error: Exiting due to 6 error(s), 13 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg [1:0] a, b, c, d, e;
  reg passed;

  initial begin
    a = 2'b00;
    b = 2'b00;
    c = 2'b00;
    d = 2'b00;
    e = 2'b00;
    passed =1'b1;
    #2;

    if (a !== 2'b01) begin
      $display("First process in named fork has not run: %b", a);
      passed = 1'b0;
    end
    if (b !== 2'b01) begin
      $display("First process in named block has not run: %b", b);
      passed = 1'b0;
    end
    if (c !== 2'b01) begin
      $display("First process in parent ending has not run: %b", c);
      passed = 1'b0;
    end
    if (d !== 2'b01) begin
      $display("First process in parent alive has not run: %b", d);
      passed = 1'b0;
    end
    if (e !== 2'b01) begin
      $display("First process in parent ending (disable) has not run: %b", e);
      passed = 1'b0;
    end


    disable top.be_name;
    #2;


    if (a !== 2'b01) begin
      $display("Second process in named fork ran: %b", a);
      passed = 1'b0;
    end
    if (b !== 2'b01) begin
      $display("Second process in named block ran: %b", b);
      passed = 1'b0;
    end
    if (c !== 2'b11) begin
      $display("Second process in parent ending has not run: %b", c);
      passed = 1'b0;
    end
    if (d !== 2'b11) begin
      $display("Second process in parent alive has not run: %b", d);
      passed = 1'b0;
    end
    if (e !== 2'b01) begin
      $display("Second process in parent ending (disable) ran: %b", e);
      passed = 1'b0;
    end

    if (passed) $display("PASSED");
  end


  initial begin
    fork: fa_name
      #1 a[0] = 1'b1;
      #3 a[1] = 1'b1;
    join_any
    disable fa_name;
  end


  initial begin: bb_name
    fork
      #1 b[0] = 1'b1;
      #3 b[1] = 1'b1;
    join_any
    disable bb_name;
  end


  initial begin
    fork
      #1 c[0] = 1'b1;
      #3 c[1] = 1'b1;
    join_any
  end


  initial begin
    fork
      #1 d[0] = 1'b1;
      #3 d[1] = 1'b1;
    join_any
    #4;
  end



  initial begin: be_name
    fork
      #1 e[0] = 1'b1;
      #3 e[1] = 1'b1;
    join_any
  end

endmodule
module top;

  reg [1:0] a, b, c, d, e;
  reg passed;

  initial begin
    a = 2'b00;
    b = 2'b00;
    c = 2'b00;
    d = 2'b00;
    e = 2'b00;
    passed =1'b1;
    #2;

    if (a !== 2'b01) begin
      $display("First process in named fork has not run: %b", a);
      passed = 1'b0;
    end
    if (b !== 2'b01) begin
      $display("First process in named block has not run: %b", b);
      passed = 1'b0;
    end
    if (c !== 2'b01) begin
      $display("First process in parent ending has not run: %b", c);
      passed = 1'b0;
    end
    if (d !== 2'b01) begin
      $display("First process in parent alive has not run: %b", d);
      passed = 1'b0;
    end
    if (e !== 2'b01) begin
      $display("First process in parent ending (disable) has not run: %b", e);
      passed = 1'b0;
    end


    disable top.be_name;
    #2;


    if (a !== 2'b01) begin
      $display("Second process in named fork ran: %b", a);
      passed = 1'b0;
    end
    if (b !== 2'b01) begin
      $display("Second process in named block ran: %b", b);
      passed = 1'b0;
    end
    if (c !== 2'b11) begin
      $display("Second process in parent ending has not run: %b", c);
      passed = 1'b0;
    end
    if (d !== 2'b11) begin
      $display("Second process in parent alive has not run: %b", d);
      passed = 1'b0;
    end
    if (e !== 2'b01) begin
      $display("Second process in parent ending (disable) ran: %b", e);
      passed = 1'b0;
    end

    if (passed) $display("PASSED");
  end


  initial begin
    fork: fa_name
      #1 a[0] = 1'b1;
      #3 a[1] = 1'b1;
    join_any
    disable fa_name;
  end


  initial begin: bb_name
    fork
      #1 b[0] = 1'b1;
      #3 b[1] = 1'b1;
    join_any
    disable bb_name;
  end


  initial begin
    fork
      #1 c[0] = 1'b1;
      #3 c[1] = 1'b1;
    join_any
  end


  initial begin
    fork
      #1 d[0] = 1'b1;
      #3 d[1] = 1'b1;
    join_any
    #4;
  end



  initial begin: be_name
    fork
      #1 e[0] = 1'b1;
      #3 e[1] = 1'b1;
    join_any
  end

endmodule