Professional Documents
Culture Documents
Experiment No.: - 3: Half-Adder
Experiment No.: - 3: Half-Adder
VHDL CODE: -
HALF-ADDER
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--use IEEE.NUMERIC_STD.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
entity yasha_exp3 is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
end yasha_exp3;
begin
end Data_Flow;
Name: - Yash Arya
Roll No.: - 19EEAEC078
Name: - Yash Arya
Roll No.: - 19EEAEC078
Full Adder
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--use IEEE.NUMERIC_STD.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
Name: - Yash Arya
Roll No.: - 19EEAEC078
entity yasha_fulladder is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
cin : in STD_LOGIC;
end yasha_fulladder;
begin
end Data_Flow;
Name: - Yash Arya
Roll No.: - 19EEAEC078