aboutsummaryrefslogtreecommitdiff
path: root/adder-and-display/adder-and-display.srcs/sources_1/bin2bcd.vhd
diff options
context:
space:
mode:
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.vhd22
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;