2
Most read
3
Most read
International Journal of Computer Applications (0975 – 8887)
                                                                                           Volume 29– No.10, September 2011


   VLSI Implementation of Adders for High Speed ALU

  Prashant Gurjar                    Rashmi Solanki                 Pooja Kansliwal                    Mahendra Vucha
UG Scholar,Dept. EC,               UG Scholar,Dept. EC,           UG Scholar,Dept. EC,                Asst. Prof., Dept. EC,
  GGITM, Bhopal                      GGITM, Bhopal                   GGITM, Bhopal                      GGITM, Bhopal,
       India                              India                          India                                 India




ABSTRACT                                                           1.1 What Is an Adder?
This paper is primarily deals the construction of high speed       In digital electronics, adder is a digital circuit that
adder circuit using Hardware Description Language (HDL)            performs addition of two numbers. As described in [2],
in the platform Xilinx ISE 9.2i and implement them on              many computers and other kinds of processors, adders are
Field Programmable Gate Arrays (FPGAs) to analyze the              used not only in the ALU(s), but also in other parts of the
design parameters. The motivation behind this investigation        processor, where they are used to calculate addresses, table
is that an adder is a very basic building block of Arithmetic      indices, and many more.
Logic Unit (ALU) and would be a limiting factor in
performance of Central Processing Unit (CPU).                      1.2 Concept of Adders
Design of a high speed single core processor is the future         Consider two binary variables x and y. As shown in [4], the
goal of this paper. Single core processor would have many          binary sum is denoted by x + y, such that
advantages over a multiple-core approach. Task execution
on a single core is a well understood process, while               0+0 = 0     0+1 = 1      1+0 = 1      1+1 = 10
execution on many cores is a problem that has not yet been
solved. There are also computational tasks which                   Here, the result in the last case is a binary 10 (i.e., 2 in base
parallelize very badly, where a single high clock rate             10). The sum of two numbers can be out of the range of the
processor would suit them very well. Such a high speed             digits in binary set. This, of course, is the origin of the
processor needs certain components that should support             concept of a carry out. In the binary sum 1+1, the result 10
high speed. The two main components of processors are the
                                                                   is viewed as a 0 with a 1 shifted to the left to give a “carry-
ALU and the register file. The one of the critical path
within an ALU may be the carry-chain in addition                   out is 1”.
operation.
In this research article, we have simulated and synthesized
                                                                   1.3 Half Adder
the various adders like full adder, ripple carry adder, carry-
look ahead adder, carry-skip adder and carry –select adder
by using VHDL and Xilinx ISE 9.2i. The simulated results
are verified and the functionality of high speed adders and
the parameters like area and speed is analyzed. Finally this
paper concludes that the carry-skip adder is the more
efficient in speed and area consumption.

Keywords:                                                                                Figure 1. Half adder
High Speed Adder, Field Programmable Gate Array, Carry
Skip Adder, Carry Select Adder.                                    A Half Adder (HA) is a logical circuit that performs an
                                                                   addition operation on two binary digits. The half adder
                                                                   produces a sum and a carry value which are both binary
1. INTRODUCTION                                                    digits. The logic diagram of HA is shown in figure 1.
Digital computer ALU is an aspect of logic design with the
objective of developing appropriate algorithms in order to         A HA adds two one-bit binary numbers A and B. It has two
achieve an efficient utilization of the available hardware.        outputs, S and C (the value C theoretically carried on to the
The hardware can only perform a relatively simple and              next addition).The simplest half-adder design, shown in
primitive set of Boolean operations and the arithmetic             figure 1, incorporates an XOR gate for S and an AND
operations are based on a hierarchy of operations that are         gate for C. The Boolean equation and Truth table of half
built by using algorithms against the hardware. Since,             adder is shown bellow in Table 1.
ultimately, speed, power and utilization of ALU are the
most often used measures of the efficiency of an algorithm.              S = A XOR B …… (i) C = A AND B …. (ii)




                                                                                                                                 11
International Journal of Computer Applications (0975 – 8887)
                                                                                         Volume 29– No.10, September 2011

           Table 1. Truth table for half adder                   of first HA is connected as one input along with Ci to
                                                                 second HA and it give SUM output. The logical OR of first
                Input                  Output                    and second HAs carry outputs a gives CARRY output of
                                                                 FA shown in [3].
            A           B          C            S
            0           0          0            0                2. COMPLEX ADDERS
            0           1          0            1                The reference to eve of adding single bits, let‟s extend it to
                                                                 adding binary words. In general, adding two n-bit words
            1           0          0            1                yields an n-bit sum and a carry-out bit Cn. The carry is
            1           1          1            0                carried from lower bit adder to higher bit adder. Based on
                                                                 carry transfer from LSB to MSB, the adders are classified.

1.4 Full Adder                                                   2.1 Ripple Carry Adder
                                                                 It is possible to create a logical circuit using multiple full
A Full Adder (FA) is a logical circuit that performs an
                                                                 adders to add N-bit numbers. Each full adder inputs a carry
addition operation on three binary digits. The full adder
                                                                 Cin which is the Cout of the previous adder. This kind of
produces a sum and a carry value, which are both binary
                                                                 adder is a Ripple Carry Adder (RCA) in [9], since each
digits. The logical diagram of full adder is shown in figure
                                                                 carry bit "ripples" to the next full adder. Note that the first
2.
                                                                 (and only the first) full adder may be replaced by a half
                                                                 adder. The layout of a ripple carry adder is simple, which
                                                                 allows fast design time. However, the ripple carry adder is
                                                                 relatively slow, since each full adder must wait for the
                                                                 carry bit which is coming from the previous full adder. The
                                                                 RCA is shown in figure. 3.



                    Figure 2. Full adder

A FA adds binary numbers and accounts for values carried
in as well as out. A one-bit full adder adds three one-bit
numbers, often written as A, B, and Ci here A, B are the
operands, and Ci is a bit carried in (in theory from a past
addition by [6]). The circuit produces a two-bit output sum
typically represented by the signals Co (Carry) and S (Sum).
The Boolean equation and truth table are shown bellow.

S = A XOR B XOR Ci                            ……(iii)

Co = (A AND B) OR (B AND Ci) OR (Ci AND A)                                      Figure 3. Ripple carry adder
……(iv)
                                                                 2.2 Carry - Look Ahead Adder
           Table 2. Truth table for full adder                             Carry- Lookahead Adder (CLA) is designed to
                                                                 overcome the latency introduced by the repelling effect of
   A            B           Cin        Cout         Sum          the carry bits in RCA. The CLA improves speed by
   0            0            0          0            0           reducing the amount of time required to determine carry
                                                                 bits. Carry lookahead logic uses the concepts of generating
   0            0            1          0            1
                                                                 (G) and propagating (P) carries. Its work is based on two
   0            1            0          0            1           signals called P and G for each bit position. The P and G
   0            1           1           1            0           are shown bellow.
   1            0           0           0            1           Ci+1 = Gi + Pi.Ci Here, Gi = Ai.Bi and Pi = (Ai  B)    i
                                                                 Si = Ai  Bi  Ci = Pi Ci.
   1            0           1           1            0           The Si and Ci+1 represent the sum and carry from ith full
   1            1           0           1            0           adder respectively. The carry-lookahead adder can be
   1            1           1           1            1            broken up in two modules: (1) The Partial Full Adder,
                                                                 PFA, which generates Si, Pi and Gi. (2) The Carry Look-
                                                                 Ahead Logic, which generates the carry-out bits. The
A FA can be constructed by cascading of two HA. The              structure of CLA for 4-bit adder is shown in figure 4.
A and B are connected to the input of first HA and the sum




                                                                                                                             12
International Journal of Computer Applications (0975 – 8887)
                                                                                              Volume 29– No.10, September 2011

                                                                      carry-in is automatically send to the next group of adders.
                                                                      The name “carry-skip” is due to the fact that if the
                                                                      condition P(i,i+3). Ci is true and then the carry-in bit skips the
                                                                      block entirely.

                                                                      3.2 Carry – Select Adder
                                                                                 Carry Select Adders (CSA) use multiple narrow
                                                                      adders to create fast wide adders. Consider the addition of
                                                                      two n bit numbers with a = an-1…..a0, and b = bn-1…..b0. At
                                                                      the bit level the adder delay increases from the least
                                                                      significant 0th position upward, with the (n-1)th requiring
                                                                      the most complex logic. A carry select adder breaks the
                                                                      addition problem into smaller groups. A carry-select adder
                                                                      provides two separate adders for the upper words, one for
                                                                      each possibility. A multiplexer (MUX) is then used to
                                                                      select the valid result. The figure 6 shows the block
                                                                      diagram of CSA.
                                                                                 As a concrete example, consider an 8-bit adder
                                                                      that is split into two 4-bit groups. The lower order bits a3 a2
            Figure 4: Carry Lookahead adder
                                                                      a1 a0 and b3 b2 b1 b0 are fed into the 4-bit adder to produce
                                                                      the sum bits S3 S2 S1S0 and a carry-out bit C4 as shown.
3. IMPLEMENTATION OF HSA
          The alternate approaches for designing High
Speed Adders (HSA) have been designed in the literature                              Figure 6. Carry Select Adder
[1], [2], [3], [4]. All of them have the objective of
decreasing the computation time and different tradeoffs.
This paper examines few of them bellow.

3.1 Carry – Skip Adder
          A carry-skip adder is designed to speed up a wide
adder by adding the propagation of carry bit around a
portion of the entire adder. The idea is illustrated in figure 5
for the case of a 4 bit adder. The carry-in bit is designated
as Ci and the adder itself produces a carry-out bit of Ci+4.
The carry skip circuitry consists of two logic gates. The
AND gate accepts the carry-in bit and compares it to the
group propagate signals.                                              The higher order bits a7 a6 a5 a4 and b7 b6 b5 b4 are used as
                                                                      two 4-bit adders. Adder calculates the sum with a carry in
                 P(i,i+3) = Pi+3. Pi+2.Pi+1.Pi                        of C=0, while the other adder does the same only it has a
                                                                      carry-in value of C=1. Both sets of results are used as
Using the individual propagate values, the output from the            inputs to an array of 2:1 MUXs. The carry bit C4 from the
AND gate is ORed with Ci+4 to produce a stage output of               first adder is used as the select signal to MUX. If C4 = 0,
                  Carry = Ci+4 + P(i,i+3). Ci                         then the result of C=0 adder are sent to the output, while a
                                                                      value of C4=1 selects the result of C=1 adder for S7 S6 S5 S4.
                                                                      The carry-out bit C8 is also selected by the MUX array. The
                                                                      design speeds up the addition of the word by allowing the
                                                                      upper and lower portions of the sum to be calculated
                                                                      simultaneously. The price paid is that it requires an
                                                                      additional word adder, a set of multiplexers and associated
                                                                      interconnect wiring. The design becomes viable if speed is
                                                                      more important than area consumption.
                                                                      3.3 Carry – Save Adder
                                                                                Carry – save adder are based on the idea that a
                                                                      full adder really has three inputs and produces two outputs
                                                                      as shown. While it is usually associates the third input with
                                                                      a carry in, it could equally well be used as a “regular”
                                                                      value. The full adder is used as 3:2 reduction network,
                Figure 5. Carry skip adder                            where it starts with bits from 3 bits words, adds them and
                                                                      then has an output that is 2-bits wide. An n-bit carry save
As shown in the figure 5, if P(i, i+3) = 0, then the carry-out of
                                                                      adder can be build by using n separate adders. The name
the group is determined by the value of C i+4. However, if
                                                                      „carry-save‟ arises from the fact that we save the carry out
P(i,i+3) = 1, then the carry-in bit is Ci= 1, then the group
                                                                      words instead of using it immediately to calculate the final



                                                                                                                                     13
International Journal of Computer Applications (0975 – 8887)
                                                                                            Volume 29– No.10, September 2011

sum. Carry-save adders are useful in situations where we               high speed processor. In this research, the hardware
need to add more than two numbers. Since the design                    implementation of various adders has been done to analyze
automatically avoids the delay in the carry-out bits.                  the speed and area. The RTL code is written in VHDL,
                                                                       Xilinx ISE 9.2i is used to simulate and synthesize the
4. RESULT AND DISCUSSIONS                                              design. The simulation helps to verify the design and the
The design of high speed adders is necessary to increase the           synthesis report gives the speed and area of the design.
computation speed of ALU and it supports to the design of              Finally, the VLSI implemented designs are targeted to the
                                                                       FPGA device xc3s500e-5-ft256 and captured the real time
                                                                       speed and area of the designs. The comparison table is
                                                                       shown in bellow. The table 3, 4 and Figure 8 shows
                                                                       synthesis report of 16 –bit adder, synthesis report of 8 – bit
                                                                       adder and speed comparison of various adders respectively.
                                                                       The figure 8 represents the comparison chart by taking
                                                                       speed in MHz on Y axis and various adders on X axis




            Figure 7. Carry save Adder
            Figure 7. Carry Save Adder
4.1 COMPARISON OF ADDERS
4.1.1 16-bit adders:
                                           Table 3: synthesis report of 16-bit adders

S.No.       Parameter                       Ripple carry         Carry-look ahead           Carry-skip              Carry-select
1.          XOR (1-bit)                     16                   32                         32                      24
2.          No. of Slices                   18/960               18/960                     21/960                  22/768
3.          Levels of Logic                 18                   18                         15                      16
4.          Processing Time                 3.77 s               3.555 s                    4.67 s                  3.66 s
5.          Memory Usage                    140796 Kb            140796 Kb                  141820 Kb               134356 Kb
            Logic Delay                     14.067 ns            14.067 ns                  11.316 ns               12 ns
6           Route Delay                     7.623 ns             7.623 ns                   5.326 ns                11.163 ns
            Total Delay                     21.69 ns             21.69 ns                   16.642 ns               23.163 ns


4.1.2 8-bit adders:
                                           Table 4: Synthesis report of 8-bit adders

S.No.      Parameter                        Ripple carry          Carry-look ahead          Carry-skip               Carry-select
1.         XOR (1-bit)                      8                     16                        16                       12
2.         No. of Slices                    9/960                 9/960                     11/960                   11/768
3.         Levels of Logic                  10                    10                        9                        9
4.         Processing Time                  3.453 s               3.44 s                    3.44 s                   2.945 s
5.         Memory Usage                     139772 Kb             139772 Kb                 140796 Kb                134356 Kb
           Logic Delay                      9.171 ns              9.171 ns                  8.254 ns                 8.977 ns
6                                           4.032 ns              4.032 ns                  3.286 ns                 6.945 ns
           Route Delay
           Total Delay                      13.203 ns             13.203 ns                 11.54 ns                 15.922 ns




                                                                                                                                   14
International Journal of Computer Applications (0975 – 8887)
                                                                                               Volume 29– No.10, September 2011

                    100
                     80
                                                                                            Ripple carry
                     60
                     40                                                                     Carry-look ahead
                     20                                                                     Carry-skip
                       0                                                                    Carry-select
                                   8 - Bit adder                 16 - Bit adder


                                     Figure 8. Speed (in MHz) comparison chart of adders

                                                                       [7] Abdellatif Bellaouar and Mohamed I.Elmasry, Low-
5. CONCLUSION                                                               power Digital VLSI Design, Kluwer Academic
                                                                            Publishers, Norwell, MA, 1995.
The research article describes about the hardware
                                                                       [8] William Stallings, Computer Design and Architecture,
implementation of high speed adders. In this paper, the
                                                                            4th Edition, Prentice Hall, Upper Saddle River, NJ,
various adders like full adder, ripple carry adder, carry-look
                                                                            1996.
ahead adder, carry-skip adder and carry –select adder have
                                                                       [9] John P. Uyemura, CMOS Logic Circuit Design,
been simulated and synthesized on Xilinx ISE 9.2i platform
                                                                            Kluwer Academic Publishers, Norwell, MA, 1999.
and their parameters are captured. Finally, the captured
                                                                       [10] Neil H.E. Weste and Kamran Eshraghian, Principles
parameters like speed and area are compared for 8 –bit and
                                                                            of CMOS VLSI Design, 2nd edition, Addision-Wesley,
16-bit adders. From the table 5, this paper concludes that
                                                                            Reading, MA, 1993.
the carry-skip adder is the efficient adder in speed and area
                                                                       [11] Wayne Wolf, Modern VLSI Design, 2 nd edition,
consumption. The analysis in table 5 for 16 – bit adder is
                                                                            Prentice Hall PTR, Upper Saddle River, NJ, 1998.
shown bellow.
                                                                       7. ACKNOWLEDGEMENT
Table 5: Speed & Area analysis for 16 – bit adder                       The authors would like to express their gratitude to the Dr.
                                                                       P.S. Venkataramu, Principal, GGITM, who have given
     Adder             Speed ( MHz)        Area ( XOR gate)            support and Ashutosh Agrawal, our classmate and friend
  Ripple Carry             46.1                   16                   who never seemed to lose faith that the paper would be
     Adder                                                             eventually Completed.
Carry-look ahead            46.1                   32
     adder                                                             8. AUTHORS BIOGRAPHY
Carry-skip adder            60.1                   32                  Prashant Gurjar working for his B.E degree at Gyan
  Carry-select              43.2                   24                  Ganga Institute of Technology and Management, Dept. of
     adder                                                             Electronics and communication Engineering, Bhopal (M.
                                                                       P), India.. His areas of interest are VLSI.
                                                                       Rashmi Solanki working for her B.E degree at Gyan
6. REFERENCES                                                          Ganga Institute of Technology and Management, Dept. of
                                                                       Electronics and communication Engineering, Bhopal (M.
[1] Bruce Shriver and Bennett Smith, The Anatomy of a
                                                                       P), India.. Her areas of interest are VLSI.
     High- Performance Microprocessor, IEEE Computer
     society Press, Los Alamitos, CA, 1998.                            Pooja Kansliwal working for her B.E degree at Gyan
 [2] James M. Feldman and Charles T. Retter, Computer                  Ganga Institute of Technology and Management, Dept. of
     Architecture, McGraw-Hill, New York, 1994.                        Electronics and communication Engineering, Bhopal (M.
[3] Ken Martin, Digital Integrated Circuit Design, Oxford              P), India.. Her areas of interest are VLSI.
     University Press, New York, 2000.
[4] Behrooz Parhami, Computer Arithmetic, Oxford                       Mahendra Vucha received his B. Tech in Electronics &
     University Press, New York, 2000. A comprehensive,                Communication Engineering from JNTU, Hyderabad in
     in depth treatment of the subject.                                2007 and M. Tech degree in VLSI and Embedded System
[5] David A. Patterson and John L. Hennessy, Computer                  Design from MANIT, Bhopal in 2009. He is currently
     Organization & Design, 2nd edition, Morgan-                       working for his Ph. D degree at MANIT and also working
     Koufmann Publishers, San Fransisco, 1998.                         as Asst. Prof in Gyan Ganga Institute of Tech & Mgmt,
[6] Jan M.Rabaey, Digital Integrated Circuits, Prentice                Dept. of Electronics and Communication Engineering,
     Hall, Upper Saddle River, NJ, 1996.                               Bhopal (M.P), India. His areas of interest are Hardware
                                                                       Software Co-Design, Analog Circuit design, Digital System
                                                                       Design and Embedded System Design.




                                                                                                                                 15

More Related Content

PPTX
DATA RATE LIMITS
PPT
Sliding window protocol
PPTX
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
PDF
IT8602 Mobile Communication Question Bank
PPTX
Travelling Salesman
PPTX
Half adder and full adder
PPT
Beckstrom's Law & The Economics Of Networks - ICANN
DATA RATE LIMITS
Sliding window protocol
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
IT8602 Mobile Communication Question Bank
Travelling Salesman
Half adder and full adder
Beckstrom's Law & The Economics Of Networks - ICANN

What's hot (20)

DOCX
Conversion from infix to prefix using stack
PPT
Data encryption standard
PPTX
Data link layer
PDF
9. parameters of mobile multipath channels
PPTX
Pgp pretty good privacy
PPTX
Graph terminologies & special type graphs
PPTX
Binary parallel adder
PPT
Error Detection And Correction
PPTX
Digital carrier modulation
PPTX
Asymptotic Notation and Data Structures
PPT
signal encoding techniques
PPTX
Logic gates and NAND and NOR univarsal gates
PPTX
Product Cipher
PPTX
Hamming code system
PPTX
Flipflop
PPT
Mobile Radio Propagations
PPTX
Dijkstra's algorithm presentation
PDF
Conversion from infix to prefix using stack
Data encryption standard
Data link layer
9. parameters of mobile multipath channels
Pgp pretty good privacy
Graph terminologies & special type graphs
Binary parallel adder
Error Detection And Correction
Digital carrier modulation
Asymptotic Notation and Data Structures
signal encoding techniques
Logic gates and NAND and NOR univarsal gates
Product Cipher
Hamming code system
Flipflop
Mobile Radio Propagations
Dijkstra's algorithm presentation
Ad

Viewers also liked (20)

DOCX
Project report on design & implementation of high speed carry select adder
PDF
High Speed Carryselect Adder
PPT
Low power & area efficient carry select adder
PPTX
Design & implementation of high speed carry select adder
PDF
My Report on adders
DOCX
Digital vlsi implementation of piecewise affine controllers based on lattice ...
PDF
Design and Simulation of a Modified Architecture of Carry Save Adder
DOCX
Adders and subtractors in vlsi design
DOC
Thiet ke so_dung_ngon_ngu_mo_ta_phan_cung_1565
PPT
Parallel Prefix Adders Presentation
PPTX
Temperature Controlled Fan
PPTX
PPT
Cmos Arithmetic Circuits
PDF
Carry save adder vhdl
PPTX
different logic full adders
PPT
L5 Adders
DOCX
Ramya Project
PPTX
THE CMOS VLSI DESIGN
PPTX
vlsi design summer training ppt
PDF
Performance evaluation of full adder and its impact on ripple carry adder design
Project report on design & implementation of high speed carry select adder
High Speed Carryselect Adder
Low power & area efficient carry select adder
Design & implementation of high speed carry select adder
My Report on adders
Digital vlsi implementation of piecewise affine controllers based on lattice ...
Design and Simulation of a Modified Architecture of Carry Save Adder
Adders and subtractors in vlsi design
Thiet ke so_dung_ngon_ngu_mo_ta_phan_cung_1565
Parallel Prefix Adders Presentation
Temperature Controlled Fan
Cmos Arithmetic Circuits
Carry save adder vhdl
different logic full adders
L5 Adders
Ramya Project
THE CMOS VLSI DESIGN
vlsi design summer training ppt
Performance evaluation of full adder and its impact on ripple carry adder design
Ad

Similar to Report adders (20)

PPTX
Adder ppt
PPTX
Unit I-L2-Binary Arithematic - Introduction
PPTX
Unit-3 PPT_Updated COA.pptx (1).pptx coa
PDF
ADDERS IN DIGITAL ELECTRONICS (DE) BY RIZWAN
PPTX
Parallel Adder_Mul_Mag.pptx
PPTX
18CSC203J_COA_Unit 2 final.pptx
PDF
Evaluation of High Speed and Low Memory Parallel Prefix Adders
PPTX
11dfffffffffffffffffffffssssssssssssssssss.pptx
DOCX
Parallel Adder
PPTX
Fulll Adder
PPT
f31-book-arith-pres-pt for computer science 2.ppt
PPTX
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
PPTX
CSO PPT.pptx
PPTX
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
PDF
Comparison among Different Adders
PDF
_Digital_Electronics_II.pdf circuits and circuit diagrams
PPTX
logic gates ppt.pptx
PDF
Comparison and Simulation of Digital Adders
PPTX
Adder substracter
DOCX
DESIGN AND PERFORMANCE ANALYSIS OF BINARY ADDERS_edited
Adder ppt
Unit I-L2-Binary Arithematic - Introduction
Unit-3 PPT_Updated COA.pptx (1).pptx coa
ADDERS IN DIGITAL ELECTRONICS (DE) BY RIZWAN
Parallel Adder_Mul_Mag.pptx
18CSC203J_COA_Unit 2 final.pptx
Evaluation of High Speed and Low Memory Parallel Prefix Adders
11dfffffffffffffffffffffssssssssssssssssss.pptx
Parallel Adder
Fulll Adder
f31-book-arith-pres-pt for computer science 2.ppt
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
CSO PPT.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Comparison among Different Adders
_Digital_Electronics_II.pdf circuits and circuit diagrams
logic gates ppt.pptx
Comparison and Simulation of Digital Adders
Adder substracter
DESIGN AND PERFORMANCE ANALYSIS OF BINARY ADDERS_edited

More from Peeyush Pashine (14)

DOCX
Temperature Controlled Fan Report
PPTX
PPTX
Power Ingredients
PPTX
PPTX
Dsp Presentation
PPTX
Adder Presentation
PPTX
Decimal arithmetic in Processors
PPTX
Control Unit Working
PPTX
Smith Adder
PPTX
Smith Adder
PDF
Good report on Adders/Prefix adders
PPTX
Kogge Stone Adder
PPTX
111adder
Temperature Controlled Fan Report
Power Ingredients
Dsp Presentation
Adder Presentation
Decimal arithmetic in Processors
Control Unit Working
Smith Adder
Smith Adder
Good report on Adders/Prefix adders
Kogge Stone Adder
111adder

Recently uploaded (20)

PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PPTX
Climate Change and Its Global Impact.pptx
PDF
Hazard Identification & Risk Assessment .pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
semiconductor packaging in vlsi design fab
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
English Textual Question & Ans (12th Class).pdf
PPTX
Education and Perspectives of Education.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Climate Change and Its Global Impact.pptx
Hazard Identification & Risk Assessment .pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
Journal of Dental Science - UDMY (2020).pdf
semiconductor packaging in vlsi design fab
Share_Module_2_Power_conflict_and_negotiation.pptx
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Journal of Dental Science - UDMY (2021).pdf
Empowerment Technology for Senior High School Guide
Climate and Adaptation MCQs class 7 from chatgpt
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
FORM 1 BIOLOGY MIND MAPS and their schemes
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
English Textual Question & Ans (12th Class).pdf
Education and Perspectives of Education.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf

Report adders

  • 1. International Journal of Computer Applications (0975 – 8887) Volume 29– No.10, September 2011 VLSI Implementation of Adders for High Speed ALU Prashant Gurjar Rashmi Solanki Pooja Kansliwal Mahendra Vucha UG Scholar,Dept. EC, UG Scholar,Dept. EC, UG Scholar,Dept. EC, Asst. Prof., Dept. EC, GGITM, Bhopal GGITM, Bhopal GGITM, Bhopal GGITM, Bhopal, India India India India ABSTRACT 1.1 What Is an Adder? This paper is primarily deals the construction of high speed In digital electronics, adder is a digital circuit that adder circuit using Hardware Description Language (HDL) performs addition of two numbers. As described in [2], in the platform Xilinx ISE 9.2i and implement them on many computers and other kinds of processors, adders are Field Programmable Gate Arrays (FPGAs) to analyze the used not only in the ALU(s), but also in other parts of the design parameters. The motivation behind this investigation processor, where they are used to calculate addresses, table is that an adder is a very basic building block of Arithmetic indices, and many more. Logic Unit (ALU) and would be a limiting factor in performance of Central Processing Unit (CPU). 1.2 Concept of Adders Design of a high speed single core processor is the future Consider two binary variables x and y. As shown in [4], the goal of this paper. Single core processor would have many binary sum is denoted by x + y, such that advantages over a multiple-core approach. Task execution on a single core is a well understood process, while 0+0 = 0 0+1 = 1 1+0 = 1 1+1 = 10 execution on many cores is a problem that has not yet been solved. There are also computational tasks which Here, the result in the last case is a binary 10 (i.e., 2 in base parallelize very badly, where a single high clock rate 10). The sum of two numbers can be out of the range of the processor would suit them very well. Such a high speed digits in binary set. This, of course, is the origin of the processor needs certain components that should support concept of a carry out. In the binary sum 1+1, the result 10 high speed. The two main components of processors are the is viewed as a 0 with a 1 shifted to the left to give a “carry- ALU and the register file. The one of the critical path within an ALU may be the carry-chain in addition out is 1”. operation. In this research article, we have simulated and synthesized 1.3 Half Adder the various adders like full adder, ripple carry adder, carry- look ahead adder, carry-skip adder and carry –select adder by using VHDL and Xilinx ISE 9.2i. The simulated results are verified and the functionality of high speed adders and the parameters like area and speed is analyzed. Finally this paper concludes that the carry-skip adder is the more efficient in speed and area consumption. Keywords: Figure 1. Half adder High Speed Adder, Field Programmable Gate Array, Carry Skip Adder, Carry Select Adder. A Half Adder (HA) is a logical circuit that performs an addition operation on two binary digits. The half adder produces a sum and a carry value which are both binary 1. INTRODUCTION digits. The logic diagram of HA is shown in figure 1. Digital computer ALU is an aspect of logic design with the objective of developing appropriate algorithms in order to A HA adds two one-bit binary numbers A and B. It has two achieve an efficient utilization of the available hardware. outputs, S and C (the value C theoretically carried on to the The hardware can only perform a relatively simple and next addition).The simplest half-adder design, shown in primitive set of Boolean operations and the arithmetic figure 1, incorporates an XOR gate for S and an AND operations are based on a hierarchy of operations that are gate for C. The Boolean equation and Truth table of half built by using algorithms against the hardware. Since, adder is shown bellow in Table 1. ultimately, speed, power and utilization of ALU are the most often used measures of the efficiency of an algorithm. S = A XOR B …… (i) C = A AND B …. (ii) 11
  • 2. International Journal of Computer Applications (0975 – 8887) Volume 29– No.10, September 2011 Table 1. Truth table for half adder of first HA is connected as one input along with Ci to second HA and it give SUM output. The logical OR of first Input Output and second HAs carry outputs a gives CARRY output of FA shown in [3]. A B C S 0 0 0 0 2. COMPLEX ADDERS 0 1 0 1 The reference to eve of adding single bits, let‟s extend it to adding binary words. In general, adding two n-bit words 1 0 0 1 yields an n-bit sum and a carry-out bit Cn. The carry is 1 1 1 0 carried from lower bit adder to higher bit adder. Based on carry transfer from LSB to MSB, the adders are classified. 1.4 Full Adder 2.1 Ripple Carry Adder It is possible to create a logical circuit using multiple full A Full Adder (FA) is a logical circuit that performs an adders to add N-bit numbers. Each full adder inputs a carry addition operation on three binary digits. The full adder Cin which is the Cout of the previous adder. This kind of produces a sum and a carry value, which are both binary adder is a Ripple Carry Adder (RCA) in [9], since each digits. The logical diagram of full adder is shown in figure carry bit "ripples" to the next full adder. Note that the first 2. (and only the first) full adder may be replaced by a half adder. The layout of a ripple carry adder is simple, which allows fast design time. However, the ripple carry adder is relatively slow, since each full adder must wait for the carry bit which is coming from the previous full adder. The RCA is shown in figure. 3. Figure 2. Full adder A FA adds binary numbers and accounts for values carried in as well as out. A one-bit full adder adds three one-bit numbers, often written as A, B, and Ci here A, B are the operands, and Ci is a bit carried in (in theory from a past addition by [6]). The circuit produces a two-bit output sum typically represented by the signals Co (Carry) and S (Sum). The Boolean equation and truth table are shown bellow. S = A XOR B XOR Ci ……(iii) Co = (A AND B) OR (B AND Ci) OR (Ci AND A) Figure 3. Ripple carry adder ……(iv) 2.2 Carry - Look Ahead Adder Table 2. Truth table for full adder Carry- Lookahead Adder (CLA) is designed to overcome the latency introduced by the repelling effect of A B Cin Cout Sum the carry bits in RCA. The CLA improves speed by 0 0 0 0 0 reducing the amount of time required to determine carry bits. Carry lookahead logic uses the concepts of generating 0 0 1 0 1 (G) and propagating (P) carries. Its work is based on two 0 1 0 0 1 signals called P and G for each bit position. The P and G 0 1 1 1 0 are shown bellow. 1 0 0 0 1 Ci+1 = Gi + Pi.Ci Here, Gi = Ai.Bi and Pi = (Ai  B) i Si = Ai  Bi  Ci = Pi Ci. 1 0 1 1 0 The Si and Ci+1 represent the sum and carry from ith full 1 1 0 1 0 adder respectively. The carry-lookahead adder can be 1 1 1 1 1 broken up in two modules: (1) The Partial Full Adder, PFA, which generates Si, Pi and Gi. (2) The Carry Look- Ahead Logic, which generates the carry-out bits. The A FA can be constructed by cascading of two HA. The structure of CLA for 4-bit adder is shown in figure 4. A and B are connected to the input of first HA and the sum 12
  • 3. International Journal of Computer Applications (0975 – 8887) Volume 29– No.10, September 2011 carry-in is automatically send to the next group of adders. The name “carry-skip” is due to the fact that if the condition P(i,i+3). Ci is true and then the carry-in bit skips the block entirely. 3.2 Carry – Select Adder Carry Select Adders (CSA) use multiple narrow adders to create fast wide adders. Consider the addition of two n bit numbers with a = an-1…..a0, and b = bn-1…..b0. At the bit level the adder delay increases from the least significant 0th position upward, with the (n-1)th requiring the most complex logic. A carry select adder breaks the addition problem into smaller groups. A carry-select adder provides two separate adders for the upper words, one for each possibility. A multiplexer (MUX) is then used to select the valid result. The figure 6 shows the block diagram of CSA. As a concrete example, consider an 8-bit adder that is split into two 4-bit groups. The lower order bits a3 a2 Figure 4: Carry Lookahead adder a1 a0 and b3 b2 b1 b0 are fed into the 4-bit adder to produce the sum bits S3 S2 S1S0 and a carry-out bit C4 as shown. 3. IMPLEMENTATION OF HSA The alternate approaches for designing High Speed Adders (HSA) have been designed in the literature Figure 6. Carry Select Adder [1], [2], [3], [4]. All of them have the objective of decreasing the computation time and different tradeoffs. This paper examines few of them bellow. 3.1 Carry – Skip Adder A carry-skip adder is designed to speed up a wide adder by adding the propagation of carry bit around a portion of the entire adder. The idea is illustrated in figure 5 for the case of a 4 bit adder. The carry-in bit is designated as Ci and the adder itself produces a carry-out bit of Ci+4. The carry skip circuitry consists of two logic gates. The AND gate accepts the carry-in bit and compares it to the group propagate signals. The higher order bits a7 a6 a5 a4 and b7 b6 b5 b4 are used as two 4-bit adders. Adder calculates the sum with a carry in P(i,i+3) = Pi+3. Pi+2.Pi+1.Pi of C=0, while the other adder does the same only it has a carry-in value of C=1. Both sets of results are used as Using the individual propagate values, the output from the inputs to an array of 2:1 MUXs. The carry bit C4 from the AND gate is ORed with Ci+4 to produce a stage output of first adder is used as the select signal to MUX. If C4 = 0, Carry = Ci+4 + P(i,i+3). Ci then the result of C=0 adder are sent to the output, while a value of C4=1 selects the result of C=1 adder for S7 S6 S5 S4. The carry-out bit C8 is also selected by the MUX array. The design speeds up the addition of the word by allowing the upper and lower portions of the sum to be calculated simultaneously. The price paid is that it requires an additional word adder, a set of multiplexers and associated interconnect wiring. The design becomes viable if speed is more important than area consumption. 3.3 Carry – Save Adder Carry – save adder are based on the idea that a full adder really has three inputs and produces two outputs as shown. While it is usually associates the third input with a carry in, it could equally well be used as a “regular” value. The full adder is used as 3:2 reduction network, Figure 5. Carry skip adder where it starts with bits from 3 bits words, adds them and then has an output that is 2-bits wide. An n-bit carry save As shown in the figure 5, if P(i, i+3) = 0, then the carry-out of adder can be build by using n separate adders. The name the group is determined by the value of C i+4. However, if „carry-save‟ arises from the fact that we save the carry out P(i,i+3) = 1, then the carry-in bit is Ci= 1, then the group words instead of using it immediately to calculate the final 13
  • 4. International Journal of Computer Applications (0975 – 8887) Volume 29– No.10, September 2011 sum. Carry-save adders are useful in situations where we high speed processor. In this research, the hardware need to add more than two numbers. Since the design implementation of various adders has been done to analyze automatically avoids the delay in the carry-out bits. the speed and area. The RTL code is written in VHDL, Xilinx ISE 9.2i is used to simulate and synthesize the 4. RESULT AND DISCUSSIONS design. The simulation helps to verify the design and the The design of high speed adders is necessary to increase the synthesis report gives the speed and area of the design. computation speed of ALU and it supports to the design of Finally, the VLSI implemented designs are targeted to the FPGA device xc3s500e-5-ft256 and captured the real time speed and area of the designs. The comparison table is shown in bellow. The table 3, 4 and Figure 8 shows synthesis report of 16 –bit adder, synthesis report of 8 – bit adder and speed comparison of various adders respectively. The figure 8 represents the comparison chart by taking speed in MHz on Y axis and various adders on X axis Figure 7. Carry save Adder Figure 7. Carry Save Adder 4.1 COMPARISON OF ADDERS 4.1.1 16-bit adders: Table 3: synthesis report of 16-bit adders S.No. Parameter Ripple carry Carry-look ahead Carry-skip Carry-select 1. XOR (1-bit) 16 32 32 24 2. No. of Slices 18/960 18/960 21/960 22/768 3. Levels of Logic 18 18 15 16 4. Processing Time 3.77 s 3.555 s 4.67 s 3.66 s 5. Memory Usage 140796 Kb 140796 Kb 141820 Kb 134356 Kb Logic Delay 14.067 ns 14.067 ns 11.316 ns 12 ns 6 Route Delay 7.623 ns 7.623 ns 5.326 ns 11.163 ns Total Delay 21.69 ns 21.69 ns 16.642 ns 23.163 ns 4.1.2 8-bit adders: Table 4: Synthesis report of 8-bit adders S.No. Parameter Ripple carry Carry-look ahead Carry-skip Carry-select 1. XOR (1-bit) 8 16 16 12 2. No. of Slices 9/960 9/960 11/960 11/768 3. Levels of Logic 10 10 9 9 4. Processing Time 3.453 s 3.44 s 3.44 s 2.945 s 5. Memory Usage 139772 Kb 139772 Kb 140796 Kb 134356 Kb Logic Delay 9.171 ns 9.171 ns 8.254 ns 8.977 ns 6 4.032 ns 4.032 ns 3.286 ns 6.945 ns Route Delay Total Delay 13.203 ns 13.203 ns 11.54 ns 15.922 ns 14
  • 5. International Journal of Computer Applications (0975 – 8887) Volume 29– No.10, September 2011 100 80 Ripple carry 60 40 Carry-look ahead 20 Carry-skip 0 Carry-select 8 - Bit adder 16 - Bit adder Figure 8. Speed (in MHz) comparison chart of adders [7] Abdellatif Bellaouar and Mohamed I.Elmasry, Low- 5. CONCLUSION power Digital VLSI Design, Kluwer Academic Publishers, Norwell, MA, 1995. The research article describes about the hardware [8] William Stallings, Computer Design and Architecture, implementation of high speed adders. In this paper, the 4th Edition, Prentice Hall, Upper Saddle River, NJ, various adders like full adder, ripple carry adder, carry-look 1996. ahead adder, carry-skip adder and carry –select adder have [9] John P. Uyemura, CMOS Logic Circuit Design, been simulated and synthesized on Xilinx ISE 9.2i platform Kluwer Academic Publishers, Norwell, MA, 1999. and their parameters are captured. Finally, the captured [10] Neil H.E. Weste and Kamran Eshraghian, Principles parameters like speed and area are compared for 8 –bit and of CMOS VLSI Design, 2nd edition, Addision-Wesley, 16-bit adders. From the table 5, this paper concludes that Reading, MA, 1993. the carry-skip adder is the efficient adder in speed and area [11] Wayne Wolf, Modern VLSI Design, 2 nd edition, consumption. The analysis in table 5 for 16 – bit adder is Prentice Hall PTR, Upper Saddle River, NJ, 1998. shown bellow. 7. ACKNOWLEDGEMENT Table 5: Speed & Area analysis for 16 – bit adder The authors would like to express their gratitude to the Dr. P.S. Venkataramu, Principal, GGITM, who have given Adder Speed ( MHz) Area ( XOR gate) support and Ashutosh Agrawal, our classmate and friend Ripple Carry 46.1 16 who never seemed to lose faith that the paper would be Adder eventually Completed. Carry-look ahead 46.1 32 adder 8. AUTHORS BIOGRAPHY Carry-skip adder 60.1 32 Prashant Gurjar working for his B.E degree at Gyan Carry-select 43.2 24 Ganga Institute of Technology and Management, Dept. of adder Electronics and communication Engineering, Bhopal (M. P), India.. His areas of interest are VLSI. Rashmi Solanki working for her B.E degree at Gyan 6. REFERENCES Ganga Institute of Technology and Management, Dept. of Electronics and communication Engineering, Bhopal (M. [1] Bruce Shriver and Bennett Smith, The Anatomy of a P), India.. Her areas of interest are VLSI. High- Performance Microprocessor, IEEE Computer society Press, Los Alamitos, CA, 1998. Pooja Kansliwal working for her B.E degree at Gyan [2] James M. Feldman and Charles T. Retter, Computer Ganga Institute of Technology and Management, Dept. of Architecture, McGraw-Hill, New York, 1994. Electronics and communication Engineering, Bhopal (M. [3] Ken Martin, Digital Integrated Circuit Design, Oxford P), India.. Her areas of interest are VLSI. University Press, New York, 2000. [4] Behrooz Parhami, Computer Arithmetic, Oxford Mahendra Vucha received his B. Tech in Electronics & University Press, New York, 2000. A comprehensive, Communication Engineering from JNTU, Hyderabad in in depth treatment of the subject. 2007 and M. Tech degree in VLSI and Embedded System [5] David A. Patterson and John L. Hennessy, Computer Design from MANIT, Bhopal in 2009. He is currently Organization & Design, 2nd edition, Morgan- working for his Ph. D degree at MANIT and also working Koufmann Publishers, San Fransisco, 1998. as Asst. Prof in Gyan Ganga Institute of Tech & Mgmt, [6] Jan M.Rabaey, Digital Integrated Circuits, Prentice Dept. of Electronics and Communication Engineering, Hall, Upper Saddle River, NJ, 1996. Bhopal (M.P), India. His areas of interest are Hardware Software Co-Design, Analog Circuit design, Digital System Design and Embedded System Design. 15