data/full_repos/permissive/422447942/Codebase/BCDToHex.v
data/verilator_xmls/fbfebfd5-9f8a-4031-a961-19e9da3ca058.xml
module BCDToHex(
	input en,
	input [3:0] BCD,
	output reg [6:0] sevenSeg);
	

	
	always @(BCD) begin
		if (en == 0);
			case(BCD)
				4'b0000: sevenSeg = 7'b1000000;
				4'b0001: sevenSeg = 7'b1111001;
				4'b0010: sevenSeg = 7'b0100100;
				4'b0011: sevenSeg = 7'b0110000;
				4'b0100: sevenSeg = 7'b0011001;
				4'b0101: sevenSeg = 7'b0010010;
				4'b0110: sevenSeg = 7'b0000010;
				4'b0111: sevenSeg = 7'b1111000;
				4'b1000: sevenSeg = 7'b0000000;
				4'b1001: sevenSeg = 7'b0010000;
				default: sevenSeg = 7'b1111111;
			
		endcase
		
	end
	
endmodule
module BCDToHex(
	input en,
	input [3:0] BCD,
	output reg [6:0] sevenSeg);

	

	
	always @(BCD) begin
		if (en == 0);
			case(BCD)
				4'b0000: sevenSeg = 7'b1000000;
				4'b0001: sevenSeg = 7'b1111001;
				4'b0010: sevenSeg = 7'b0100100;
				4'b0011: sevenSeg = 7'b0110000;
				4'b0100: sevenSeg = 7'b0011001;
				4'b0101: sevenSeg = 7'b0010010;
				4'b0110: sevenSeg = 7'b0000010;
				4'b0111: sevenSeg = 7'b1111000;
				4'b1000: sevenSeg = 7'b0000000;
				4'b1001: sevenSeg = 7'b0010000;
				default: sevenSeg = 7'b1111111;
			
		endcase
		
	end
	
endmodule