data/full_repos/permissive/217697217/problems/04_hex_display/hex_display.v
data/verilator_xmls/f4a9ab16-4c9d-40a1-965b-847d150bbca3.xml
module hex_to_seg(
    input [3:0]data,

    output reg [6:0]segments
);

always @(*) begin
    case (data)
        4'h0: segments = 7'b1111110;
        4'h1: segments = 7'b0110000;


        4'h2: segments = 7'b1101101;
        4'h3: segments = 7'b1111001;
        4'hA: segments = 7'b1110111;
        4'hC: segments = 7'b1001110;
        4'hF: segments = 7'b1000111;
        4'hE: segments = 7'b1001111;
    endcase
end

endmodule
module hex_to_seg(
    input [3:0]data,

    output reg [6:0]segments
);


always @(*) begin
    case (data)
        4'h0: segments = 7'b1111110;
        4'h1: segments = 7'b0110000;


        4'h2: segments = 7'b1101101;
        4'h3: segments = 7'b1111001;
        4'hA: segments = 7'b1110111;
        4'hC: segments = 7'b1001110;
        4'hF: segments = 7'b1000111;
        4'hE: segments = 7'b1001111;
    endcase
end

endmodule