data/full_repos/permissive/488964817/Mux8to1.v
1: b"%Error: data/full_repos/permissive/488964817/Mux8to1.v:9: syntax error, unexpected '(', expecting IDENTIFIER\n FD(iClk, nClk, sw);\n    ^~~~\n%Error: data/full_repos/permissive/488964817/Mux8to1.v:46: syntax error, unexpected '(', expecting IDENTIFIER\n JK_FF(iClk, Q[0], 1'b1, 1'b1);\n       ^~~~\n%Error: Exiting due to 2 error(s)\n"
module FD(iClk, oClk, sw);
	input iClk, sw;
	output reg oClk;
	integer count;
	parameter RATE = 50000000;
	
	initial
		count = 0;

	always@(negedge iClk)
	begin
		if (sw)
		begin
			if (count > RATE / 2)
				oClk = 1;
			else
				oClk = 0;
		end
		else
			oClk = 0;
		count = (count + 1) % RATE;
	end
	
endmodule
module FD(iClk, oClk, sw);

	input iClk, sw;
	output reg oClk;
	integer count;
	parameter RATE = 50000000;
	
	initial
		count = 0;

	always@(negedge iClk)
	begin
		if (sw)
		begin
			if (count > RATE / 2)
				oClk = 1;
			else
				oClk = 0;
		end
		else
			oClk = 0;
		count = (count + 1) % RATE;
	end
	
endmodule