data/full_repos/permissive/419538859/lab8/lab8.v
data/verilator_xmls/72eaa1fa-e1a0-4b8a-9606-e8f8e9cdaa6a.xml
module key_decode(sel, column, press, scan_code);
input[2:0]sel;
input[2:0] column;
output press;
output[3:0] scan_code;
reg[3:0] scan_code;
reg press;
always@(sel or column) begin
	case(sel)
		3'b000:
			case(column)

			3'b101: begin scan_code= 4'b0010; press = 1'b1; end

			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase

		3'b001:
			case(column)
			3'b011: 	
				begin
				scan_code= 4'b0100; press = 1'b1; 
				end

			3'b110: 
			begin scan_code= 4'b0110; press = 1'b1; end
			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase

		3'b010:
			case(column)

			3'b101: begin scan_code= 4'b1000; press = 1'b1; end

			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase







	default:
		begin scan_code= 4'b0; press = 1'b0; end
endcase
end
endmodule
module key_decode(sel, column, press, scan_code);

input[2:0]sel;
input[2:0] column;
output press;
output[3:0] scan_code;
reg[3:0] scan_code;
reg press;
always@(sel or column) begin
	case(sel)
		3'b000:
			case(column)

			3'b101: begin scan_code= 4'b0010; press = 1'b1; end

			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase

		3'b001:
			case(column)
			3'b011: 	
				begin
				scan_code= 4'b0100; press = 1'b1; 
				end

			3'b110: 
			begin scan_code= 4'b0110; press = 1'b1; end
			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase

		3'b010:
			case(column)

			3'b101: begin scan_code= 4'b1000; press = 1'b1; end

			default: begin scan_code= 4'b0; press = 1'b0; end
			endcase







	default:
		begin scan_code= 4'b0; press = 1'b0; end
endcase
end
endmodule