data/full_repos/permissive/42149584/Lab4-Part1-40x7bit-RAM/ScrollTimer.v
data/verilator_xmls/b5501077-cbaa-419e-8557-18846a4280a9.xml
module ScrollTimer(Clock, Enable, Reset, PulseOutput);
	input Clock, Enable, Reset;
	output reg PulseOutput;
	reg [24:0] counter;
	parameter CLOCK_CYCLES = 17500000;
	initial PulseOutput = 0;
	initial counter = 0;
	always@(posedge Clock)
		if (Enable==0|Reset==1) begin counter <= 0; PulseOutput <= 0; end
		else if (counter == CLOCK_CYCLES) begin counter <= 0; PulseOutput <= 1; end
		else begin counter <= counter + 1; PulseOutput <= 0; end
endmodule
module ScrollTimer(Clock, Enable, Reset, PulseOutput);

	input Clock, Enable, Reset;
	output reg PulseOutput;
	reg [24:0] counter;
	parameter CLOCK_CYCLES = 17500000;
	initial PulseOutput = 0;
	initial counter = 0;
	always@(posedge Clock)
		if (Enable==0|Reset==1) begin counter <= 0; PulseOutput <= 0; end
		else if (counter == CLOCK_CYCLES) begin counter <= 0; PulseOutput <= 1; end
		else begin counter <= counter + 1; PulseOutput <= 0; end
endmodule