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/bin2bcd.vhd | |
| parent | 46ce24d90ab47df64b272ac26ce61855006e5618 (diff) | |
WIP display driver
Diffstat (limited to 'adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd')
| -rw-r--r-- | adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd b/adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd deleted file mode 100644 index fa6fdea..0000000 --- a/adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd +++ /dev/null @@ -1,22 +0,0 @@ -library IEEE; -use IEEE.STD_LOGIC_1164.ALL; -use IEEE.STD_LOGIC_UNSIGNED.ALL; -use IEEE.NUMERIC_STD.ALL; - -entity bin2bcd is - port ( - A: in std_logic_vector(4 downto 0); - X: out std_logic_vector(3 downto 0); - Y: out std_logic_vector(3 downto 0)); -end bin2bcd; - -architecture Behavioral of bin2bcd is - signal X_tmp: unsigned(3 downto 0); - signal Y_tmp: unsigned(3 downto 0); -begin - X_tmp <= (unsigned(A(X_tmp'range)) / 10); - Y_tmp <= (unsigned(A(Y_tmp'range)) mod 10); - - X <= std_logic_vector(X_tmp); - Y <= std_logic_vector(Y_tmp); -end Behavioral; |