data/full_repos/permissive/205926239/ISE_project/Sources/noise_cancel.v
data/verilator_xmls/536ead67-0216-4ae6-ac1c-e2d8e01279dc.xml
module noise_cancel(clk, a_noise, a);
    input clk;
    input a_noise;
    output a;

	reg a;
	reg [4:0] count;
	
	always @(posedge clk)
		if (a_noise == 1) 
			begin
				count <= count+1;
				if (count > 5) a <= 1;
			end
			
		else
			begin
				count <= 0;
				a <= 0;
			end
	
endmodule
module noise_cancel(clk, a_noise, a);

    input clk;
    input a_noise;
    output a;

	reg a;
	reg [4:0] count;
	
	always @(posedge clk)
		if (a_noise == 1) 
			begin
				count <= count+1;
				if (count > 5) a <= 1;
			end
			
		else
			begin
				count <= 0;
				a <= 0;
			end
	
endmodule