data/full_repos/permissive/162344596/BCDToSevenSeg.v
data/verilator_xmls/9aca9da6-0840-4d9e-83f5-d135df3d2433.xml
module BCDToSevenSeg(
	input[3:0] code,
	output reg[6:0] hex
);



always @* begin
	case(code)
		4'b0000: begin hex = 7'b1000000; end
		4'b0001: begin hex = 7'b1111001; end
		4'b0010: begin hex = 7'b0100100; end
		4'b0011: begin hex = 7'b0110000; end
		4'b0100: begin hex = 7'b0011001; end
		4'b0101: begin hex = 7'b0010010; end
		4'b0110: begin hex = 7'b0000010; end
		4'b0111: begin hex = 7'b1111000; end
		4'b1000: begin hex = 7'b0000000; end
		4'b1001: begin hex = 7'b0010000; end
	endcase
end



endmodule
module BCDToSevenSeg(
	input[3:0] code,
	output reg[6:0] hex
);




always @* begin
	case(code)
		4'b0000: begin hex = 7'b1000000; end
		4'b0001: begin hex = 7'b1111001; end
		4'b0010: begin hex = 7'b0100100; end
		4'b0011: begin hex = 7'b0110000; end
		4'b0100: begin hex = 7'b0011001; end
		4'b0101: begin hex = 7'b0010010; end
		4'b0110: begin hex = 7'b0000010; end
		4'b0111: begin hex = 7'b1111000; end
		4'b1000: begin hex = 7'b0000000; end
		4'b1001: begin hex = 7'b0010000; end
	endcase
end



endmodule