diff options
| author | lonkaars <loek@pipeframe.xyz> | 2022-11-14 16:34:08 +0100 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2022-11-14 16:34:08 +0100 |
| commit | f377c4e8baf56284673d673172005bff943483fb (patch) | |
| tree | 0d8e7bd151d2af27793bb410721ddd38dcaf4401 /adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd | |
| parent | 46ce24d90ab47df64b272ac26ce61855006e5618 (diff) | |
WIP display driver
Diffstat (limited to 'adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd')
| -rw-r--r-- | adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd b/adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd index 7322509..cee9a97 100644 --- a/adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd +++ b/adder-and-display/adder-and-display.srcs/sources_1/bcddec.vhd @@ -3,20 +3,20 @@ use IEEE.STD_LOGIC_1164.ALL; entity bcddec is port( A: in std_logic_vector(3 downto 0); - X: out std_logic_vector(6 downto 0)); + X: out std_logic_vector(7 downto 0)); end bcddec; architecture Behavioral of bcddec is begin - X <= "0111111" when A = "0000" else - "0000110" when A = "0001" else - "1011011" when A = "0010" else - "1001111" when A = "0011" else - "1100110" when A = "0100" else - "1101101" when A = "0101" else - "1111101" when A = "0110" else - "0100111" when A = "0111" else - "1111111" when A = "1000" else - "1101111" when A = "1001"; + X <= "00111111" when A = "0000" else + "00000110" when A = "0001" else + "01011011" when A = "0010" else + "01001111" when A = "0011" else + "01100110" when A = "0100" else + "01101101" when A = "0101" else + "01111101" when A = "0110" else + "00100111" when A = "0111" else + "01111111" when A = "1000" else + "01101111" when A = "1001"; end Behavioral; |