library ieee;
use ieee.std_logic_1164.all;

entity letter_decoder is
    port (SW : in std_logic_vector(9 downto 0);
          HEX0 : out std_logic_vector(6 downto 0));
end entity;

architecture rtl of letter_decoder is
begin
    -- Segment 0 is the top bar. A low pin lights its segment.
    HEX0(0) <= SW(1) or not SW(0);
    -- Derive the remaining six Boolean expressions from the character table.
    HEX0(6 downto 1) <= (others => '1');
end architecture;
