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 	key_code_mux(display_code, sel, key_code);

input	[23:0]display_code;
input	[2:0]sel;
output	[3:0]key_code;

assign 	key_code= (sel== 3'b101) ? display_code[3:0] :
				(sel== 3'b100) ? display_code[7:4] :
				(sel== 3'b011) ? display_code[11:8] :
				(sel== 3'b010) ? display_code[15:12] :
				(sel== 3'b001) ? display_code[19:16] :
				(sel== 3'b000) ? display_code[23:20] : 	4'b1111;
endmodule
module 	key_code_mux(display_code, sel, key_code);


input	[23:0]display_code;
input	[2:0]sel;
output	[3:0]key_code;

assign 	key_code= (sel== 3'b101) ? display_code[3:0] :
				(sel== 3'b100) ? display_code[7:4] :
				(sel== 3'b011) ? display_code[11:8] :
				(sel== 3'b010) ? display_code[15:12] :
				(sel== 3'b001) ? display_code[19:16] :
				(sel== 3'b000) ? display_code[23:20] : 	4'b1111;
endmodule