data/full_repos/permissive/143278/ivltests/test_enumsystem.v
 line:23: before: "("
1: b'%Error: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:23: syntax error, unexpected \'@\'\n    repeat (100) @(posedge clk);\n                 ^\n%Error: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:32: syntax error, unexpected \'@\'\n  @(posedge reset);\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:39: Unsupported: Ignoring delay on this delayed statement.\n    #1;\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/test_enumsystem.v:47: Unsupported: Ignoring delay on this delayed statement.\n      #2;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:87: Unsupported: Ignoring delay on this delayed statement.\ninitial forever #(T) clk = !clk;\n                ^\n%Error: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:90: syntax error, unexpected \'@\'\n    @(negedge clk);\n    ^\n%Error: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:92: syntax error, unexpected \'@\'\n    repeat(6) @(negedge clk);\n              ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/test_enumsystem.v:101: Unsupported: Ignoring delay on this delayed statement.\n    #S;\n    ^\n%Error: Exiting due to 4 error(s), 4 warning(s)\n'
module scoreboard (input [2:0] count, input reset, en, input [0:3] y);

initial begin
  @(posedge reset);
  @(negedge reset);
  mycheck();
end

task mycheck;
  forever begin
    #1;
    if (en == 0) begin
      if (y !== 4'b0000) begin
        $display ("ERROR");
        $finish;
      end
    end
    else begin
      #2;
       case (count)
          0: if (y !== 4'b1000) begin
               $display("ERROR");
               $finish;
             end
          1: if (y !== 4'b0100) begin
               $display("ERROR");
               $finish;
             end
          2: if (y !== 4'b0010) begin
               $display("ERROR");
               $finish;
             end
          3: if (y !== 4'b0001) begin
               $display("ERROR");
               $finish;
             end
          default: if (y !== 4'b1111 && en == 1) begin
                     $display("ERROR here, en = %d", en);
                     $finish;
                   end
      endcase
    end
end
endtask

endmodule
module scoreboard (input [2:0] count, input reset, en, input [0:3] y);


initial begin
  @(posedge reset);
  @(negedge reset);
  mycheck();
end

task mycheck;
  forever begin
    #1;
    if (en == 0) begin
      if (y !== 4'b0000) begin
        $display ("ERROR");
        $finish;
      end
    end
    else begin
      #2;
       case (count)
          0: if (y !== 4'b1000) begin
               $display("ERROR");
               $finish;
             end
          1: if (y !== 4'b0100) begin
               $display("ERROR");
               $finish;
             end
          2: if (y !== 4'b0010) begin
               $display("ERROR");
               $finish;
             end
          3: if (y !== 4'b0001) begin
               $display("ERROR");
               $finish;
             end
          default: if (y !== 4'b1111 && en == 1) begin
                     $display("ERROR here, en = %d", en);
                     $finish;
                   end
      endcase
    end
end
endtask

endmodule