data/full_repos/permissive/2012679/stage_control.v
1: b"%Error: data/full_repos/permissive/2012679/stage_control.v:5: Can't find definition of variable: 'clock'\nalways @(posedge clock)\n                 ^~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:7: Can't find definition of variable: 'reset'\n if (reset)\n     ^~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:8: Can't find definition of variable: 'stage'\n  stage <= 2'b00;\n  ^~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:9: Can't find definition of variable: 'load_stage'\n else if (load_stage)\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:10: Can't find definition of variable: 'next_stage'\n  stage <= next_stage;\n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:14: Can't find definition of variable: 'iSW'\n if (iSW[1:0] == 2'b11)\n     ^~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:16: Can't find definition of variable: 'state'\n                                                             : ... Suggested alternative: 'stage'\n else if (state == ST_INIT)\n          ^~~~~\n%Error: data/full_repos/permissive/2012679/stage_control.v:16: Can't find definition of variable: 'ST_INIT'\n else if (state == ST_INIT)\n                   ^~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module stage_control(
);


always @(posedge clock)
begin
	if (reset)
		stage <= 2'b00;
	else if (load_stage)
		stage <= next_stage;
end
always @(*)
begin
	if (iSW[1:0] == 2'b11)
		next_stage = iSW[3:2];
	else if (state == ST_INIT)
		next_stage = 2'b00;
	else
		next_stage = (stage + 1)%4;
end
endmodule
module stage_control(
);



always @(posedge clock)
begin
	if (reset)
		stage <= 2'b00;
	else if (load_stage)
		stage <= next_stage;
end
always @(*)
begin
	if (iSW[1:0] == 2'b11)
		next_stage = iSW[3:2];
	else if (state == ST_INIT)
		next_stage = 2'b00;
	else
		next_stage = (stage + 1)%4;
end
endmodule