Docsity

Digital code for calculator project, Lecture notes of Digital Electronics

Partial preview of the text

Download Digital code for calculator project and more Lecture notes Digital Electronics in PDF only on Docsity!

Shift 4x BCD2Binary

Addsub

Binary2BCD

Check

Shift 4x4 SS Ca SLi] late 5 hs = (bed_O * "01") + (bed_10 * "1010") + (bed_100 * "1100100") + (bed_1000 * "1112101000"; in std_logic_vector (3 downto in std_logic_vector (3 downto in std_logic vector (3 downto in std_logic_vector (3 downto out std_logié_vector (13 downto 0) (others => '0")); BCD2Binary Z| library ieee: 2 use ieee.std logic 1164.a11; 3 use ieee.std logic _arith.all: 4 use ieee.std_logic_unsigned.all; 5 6 entity BCD2Binary is 7° port ( e bed_o : 8 bed_10 : 10 bed_100 a bed_1000 12 pinout: 23 end BCD2Binary; 14 25 Garchitecture behavior of BCD2Binary is 16 begin a7 bin_out 28 fend behavior: