data/full_repos/permissive/433640910/MorseCode/morsecode.v
data/verilator_xmls/69155fef-0586-4a12-b73e-6cd2b08f337d.xml
module RateDivider(ClockIn, Reset, Enable); 
	input ClockIn, Reset;
	output reg Enable;
	reg [10:0]counter;
	
	always @(posedge ClockIn, negedge Reset)
		begin
			if(Reset == 1'b0)
				begin 
					Enable <= 1'b0; 
					counter <= 11'b00011111001; 
				end
			else if(Enable == 1'b1)
				begin 
					Enable <= ~Enable; 
					counter <= 11'b00011111001; 
				end 
			else if(counter == 11'b00000000001)
				Enable <= 1'b1;
			else 
				counter <= counter-1;
	end
	
endmodule
module RateDivider(ClockIn, Reset, Enable);
 
	input ClockIn, Reset;
	output reg Enable;
	reg [10:0]counter;
	
	always @(posedge ClockIn, negedge Reset)
		begin
			if(Reset == 1'b0)
				begin 
					Enable <= 1'b0; 
					counter <= 11'b00011111001; 
				end
			else if(Enable == 1'b1)
				begin 
					Enable <= ~Enable; 
					counter <= 11'b00011111001; 
				end 
			else if(counter == 11'b00000000001)
				Enable <= 1'b1;
			else 
				counter <= counter-1;
	end
	
endmodule