data/full_repos/permissive/169220768/code/debounce.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/b45f9add-fdc3-4dae-80cb-8ce6ba395e33.xml
module debounce(
	 input clk,
    input in,
    output reg out=0
	  
    );
	reg [31:0] cnt=0;
	always@(posedge clk)
		begin
			if(in!=out)
				begin
					cnt=cnt+1;
					
					if(cnt==100000)
					begin
						out=~out;
						cnt=0;
					end
					
				end
			else cnt=0;
			
		end
endmodule
module debounce(
	 input clk,
    input in,
    output reg out=0
	  
    );

	reg [31:0] cnt=0;
	always@(posedge clk)
		begin
			if(in!=out)
				begin
					cnt=cnt+1;
					
					if(cnt==100000)
					begin
						out=~out;
						cnt=0;
					end
					
				end
			else cnt=0;
			
		end
endmodule