data/full_repos/permissive/419538859/lab6/sim/lab6.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/419538859/lab6/sim/lab6.v:110: 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 \'lab6\'\nmodule lab6(clk, reset, column, sel, seg7);\n       ^~~~\n                                                                           : ... Top module \'key_led\'\nmodule  key_led(clk_sel, reset, column, sel, key_code);\n        ^~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/419538859/lab6/sim/lab6.v:122: Signal definition not found, creating implicitly: \'press_valid\'\nkey_buf6 g3(clk_sel, reset, press_valid, scan_code, display_code);\n                            ^~~~~~~~~~~\n%Error: Exiting due to 2 warning(s)\n'
module 	debounce_ctl (clk,reset,press,press_valid);

input 	press,clk,reset;
output 	press_valid;
reg		[5:0] gg;

assign 	press_valid=~(gg[5]||(~press));

always@(posedge clk or posedge reset)
begin
	if(reset)
		gg<=6'b0;
	else
		gg<={gg[4:0],press};
	end
endmodule
module 	debounce_ctl (clk,reset,press,press_valid);


input 	press,clk,reset;
output 	press_valid;
reg		[5:0] gg;

assign 	press_valid=~(gg[5]||(~press));

always@(posedge clk or posedge reset)
begin
	if(reset)
		gg<=6'b0;
	else
		gg<={gg[4:0],press};
	end
endmodule