Documente Academic
Documente Profesional
Documente Cultură
PROJECT REPORT
ON
“4 Bit Addition using VHDL”
Submitted in partial fulfillment of the requirements of the award of degree
Of
DIPLOMA ENGINEERING
In
ELECLTRONICS AND TELECOMMUNICATION ENGINEERING
By
Mr. GANESH MAHADEV MOHITE (Roll no. 33 )
S.V.E.R.I.’s
COLLEGE OF ENGINEERING (POLY.).PANDHARPUR
2019-2020
CERTIFICATE
I take this opportunity to express my sincere thanks and deep sense of gratitude to my guide,
Ms. Raut S. A.for his constant support, motivation, valuable guidance and immense help during
the entire course of this work. Without his constant encouragement, timely advice and valuable
discussion, it would have been difficult in completing this work. I would also like to
acknowledge Electronics & Telecommunication Engineering Department who provided me the
facilities for completion of the project. We are thankful to him for sharing his experienced in
research field with me and providing constant motivation during entire project work.
I would also like to express my gratitude to all my friends who helped me a lot for
completion of my midterm project work.
Name of Student’s,
1. INTRODUCTION
2. COMPONENTS REQUIRED
3. THEORY
Adding two unsigned 4-bit numbers in VHDL using the VHDL addition operator (+)
– a 4-bit binary adder is written in VHDL and implemented on a CPLD.
There are many examples on the Internet that show how to create a 4-bit adder in
VHDL out of logic gates (which boils down to using logical operators in VHDL). A full
adder adds only two bits and a carry in bit. It also has a sum bit and a carry out bit. The idea
is that a number of these 1-bit adders are linked together to form an adder of the desired
length.
It may not be necessary to implement an adder in this way, as VHDL can use the
addition operator (+) to add two numbers. We will look at adding two
STD_LOGIC_VECTOR data types together.
The design is implemented on a CPLD on the home built CPLD board. Half of the
switch bank on the board (4 switches) is used to input one of the values to be added, the
other half of the switch bank is used to input the second value to be added. The result (sum)
of the addition of the two 4-bit numbers is displayed on 5 LEDs.
COMPONENTS/TOOL REQUIRED
1. Xilinx Vivado Design suite or Web pack (Download from Xilinx for free.
Registration required).
2. Mimas Artix 7 FPGA Development Board or a similar board.
3. Mimas A7 Configuration downloader software.
THEORY
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity binary_4_bit_adder2 is
Port ( NUM1 : in STD_LOGIC_VECTOR (4 downto 0) := "11111";
NUM2 : in STD_LOGIC_VECTOR (4 downto 0) := "11111";
SUM : out STD_LOGIC_VECTOR (4 downto 0));
end binary_4_bit_adder2;
X <= A + B;
end Behavioral;
OUTPUT