data/full_repos/permissive/143278/ivltests/task3.14F.v
Syntax Error
1: b'%Error: data/full_repos/permissive/143278/ivltests/task3.14F.v:38: Unsupported: fork statements\n     fork\n     ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/task3.14F.v:46: Unsupported: Ignoring delay on this delayed statement.\n           #20;\n           ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 error(s), 1 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module main;

reg var1,var2;
reg in1;
reg error;

task my_task ;
  input in1;
  output out1;
    out1 = #10 in1;
endtask

initial
  begin
     var1 = 0;
     error = 0;
     fork
         my_task(1'b1,var1);
         begin
           if(var1 != 1'b0)
             begin
                $display("FAILED - task3.14F Task with internal delay(1)");
                error = 1;
             end
           #20;
           if(var1 != 1'b1)
             begin
                $display("FAILED - task3.14F Task with internal delay(2)");
                error = 1;
             end
         end
     join
     if(error == 0)
       $display("PASSED");
  end

endmodule
module main;


reg var1,var2;
reg in1;
reg error;

task my_task ;
  input in1;
  output out1;
    out1 = #10 in1;
endtask

initial
  begin
     var1 = 0;
     error = 0;
     fork
         my_task(1'b1,var1);
         begin
           if(var1 != 1'b0)
             begin
                $display("FAILED - task3.14F Task with internal delay(1)");
                error = 1;
             end
           #20;
           if(var1 != 1'b1)
             begin
                $display("FAILED - task3.14F Task with internal delay(2)");
                error = 1;
             end
         end
     join
     if(error == 0)
       $display("PASSED");
  end

endmodule