data/full_repos/permissive/20016915/quartus/avgai/clocking.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/20016915/quartus/avgai/clocking.v:32: Multiple top level modules\n                                                                                  : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                  : ... Top module \'debounce\'\nmodule debounce(input clk, but, output reg debounced);\n       ^~~~~~~~\n                                                                                  : ... Top module \'clkDiv\'\nmodule clkDiv(input clk, output divClk);\n       ^~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module debounce(input clk, but, output reg debounced);
	reg [9:0] debTimer;
	always @(posedge clk) begin
		if (debounced == but)
			debTimer <= 0;
		else if (debTimer != -10'b1)
			debTimer <= debTimer+1;
		else if (debTimer == -10'b1)
			debounced <= but;
	end
endmodule
module debounce(input clk, but, output reg debounced);

	reg [9:0] debTimer;
	always @(posedge clk) begin
		if (debounced == but)
			debTimer <= 0;
		else if (debTimer != -10'b1)
			debTimer <= debTimer+1;
		else if (debTimer == -10'b1)
			debounced <= but;
	end
endmodule