module letter_decoder(input wire [9:0] SW, output wire [6:0] HEX0);
    // Segment 0 is the top bar. A low pin lights its segment.
    assign HEX0[0] = SW[1] | ~SW[0];
    // Derive the remaining six Boolean expressions from the character table.
    assign HEX0[6:1] = 6'b111111;
endmodule
