data/full_repos/permissive/43339463/clock.v
1: b'%Error: data/full_repos/permissive/43339463/clock.v:3: Define or directive not defined: \'`STATE_INIT\'\n reg state = `STATE_INIT;\n             ^~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:3: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n reg state = `STATE_INIT;\n                        ^\n%Warning-STMTDLY: data/full_repos/permissive/43339463/clock.v:5: Unsupported: Ignoring delay on this delayed statement.\n always #10 begin\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/43339463/clock.v:11: Define or directive not defined: \'`STATE_FETCH\'\n   `STATE_FETCH : state <= `STATE_DECODE;\n   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:11: syntax error, unexpected \':\', expecting endcase\n   `STATE_FETCH : state <= `STATE_DECODE;\n                ^\n%Error: data/full_repos/permissive/43339463/clock.v:11: Define or directive not defined: \'`STATE_DECODE\'\n   `STATE_FETCH : state <= `STATE_DECODE;\n                           ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:12: Define or directive not defined: \'`STATE_DECODE\'\n   `STATE_DECODE : state<= `STATE_EXECUTE;\n   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:12: Define or directive not defined: \'`STATE_EXECUTE\'\n   `STATE_DECODE : state<= `STATE_EXECUTE;\n                           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:13: Define or directive not defined: \'`STATE_EXECUTE\'\n   `STATE_EXECUTE : state <= `STATE_WRITE;\n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:13: Define or directive not defined: \'`STATE_WRITE\'\n   `STATE_EXECUTE : state <= `STATE_WRITE;\n                             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:14: Define or directive not defined: \'`STATE_WRITE\'\n   `STATE_WRITE : state <= `STATE_FETCH;  \n   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:14: Define or directive not defined: \'`STATE_FETCH\'\n   `STATE_WRITE : state <= `STATE_FETCH;  \n                           ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/clock.v:16: Define or directive not defined: \'`STATE_FETCH\'\n   default : state <= `STATE_FETCH;\n                      ^~~~~~~~~~~~\n%Error: Cannot continue\n'
module clock(output clk, output [3:0] state);
	reg clk = 0;
	reg state = `STATE_INIT;
	
	always #10 begin
		clk <= ~clk;
	end
	
	always @(clk) begin
		case (state)
			`STATE_FETCH : state <= `STATE_DECODE;
			`STATE_DECODE : state<= `STATE_EXECUTE;
			`STATE_EXECUTE : state <= `STATE_WRITE;
			`STATE_WRITE : state <= `STATE_FETCH;
			
			default : state <= `STATE_FETCH;
		endcase
	end
endmodule
module clock(output clk, output [3:0] state);

	reg clk = 0;
	reg state = `STATE_INIT;
	
	always #10 begin
		clk <= ~clk;
	end
	
	always @(clk) begin
		case (state)
			`STATE_FETCH : state <= `STATE_DECODE;
			`STATE_DECODE : state<= `STATE_EXECUTE;
			`STATE_EXECUTE : state <= `STATE_WRITE;
			`STATE_WRITE : state <= `STATE_FETCH;
			
			default : state <= `STATE_FETCH;
		endcase
	end
endmodule