I was learning about loops in Verilog and wanted to create a simple clock with time period of 20ns. I am getting the error below whenever I am trying to run the code in EDA Playground.
module Pulse(clock);
output reg clock;
initial
begin
clock = 1'b0;
end
forever #10 clock = ~clock; //Error is here
endmodule
design.sv:9: syntax error design.sv:9: error: invalid module item.