SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and
                   Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                        Vol. 3, Issue 2, March -April 2013, pp.295-299
               FPGA Implementation of Modified Booth Multiplier
                              S.Nagaraj1, R.Mallikarjuna Reddy2
           1
            Associate professor, Department of ECE, SVCET, Chittoor, nagarajsubramanyam@gmail.com
       2
           Associate professor, Department of ECE, SVCET, Chittoor. mallikarjunareddy.r416@gmail.com


Abstract
         To design a high speed multiplier with           reserved adder cells, have been proposed. The error
reduced error compensation technique. The                 compensation value can be produced by the constant
fixed-width multiplier is attractive to many              Scheme. The constant scheme through adaptively
multimedia and digital signal processing systems          adjusting the compensation value according to the
which are desirable to maintain a fixed format            input data at the expense of a little higher hardware
and allow a little accuracy loss to output data.          complexity. However, most of the adaptive error
This paper presents the Design of error                   compensation approaches are developed only for
compensated truncation circuit and its                    fixed-width array multipliers and cannot be applied
implementation in fixed width multiplier. To              to significantly reduce the truncation error of fixed-
reduce the truncation error, we first slightly            width modified Booth multipliers directly. To
modify the partial product matrix of Booth                overcome this problem, several error compensation
multiplication and then derive an effective error         approaches [1]–[3] have been proposed to
compensation function that makes the error                effectively reduce the truncation error of fixed-width
distribution be more symmetric to and                     modified Booth multipliers. In [1], the compensation
centralized in the error equal to zero, leading the       value was generated by using statistical analysis and
fixed-width modified Booth multiplier to very             linear regression analysis. This approach can
small mean and mean-square errors. However, a             significantly decrease the mean error of fixed-width
huge truncation error will be introduced to this          modified Booth multipliers, but the maximum
kind of fixed-width modified Booth multipliers.           absolute error and the mean-square error are still
To overcome this problem, several error                   large. Cho et al. [2] divided the truncated part of the
compensated truncation circuit approaches have            bit product matrix of Booth multiplication into a
been proposed to effectively reduce the                   major group and a minor group depending on their
truncation error of fixed-width modified Booth            effects on the truncation error. To obtain better error
multipliers.                                              performance with a simple error compensation
                                                          circuit, Booth encoded outputs are utilized to
I.INTRODUCTION                                            generate the error compensation value. In [3], a
          HIGH processing performance and low             systematic design methodology for the low-error
power dissipation are the most important objectives       fixed-width modified Booth multiplier via exploring
in many multimedia and digital signal processing          the influence of various indices in a binary threshold
(DSP) systems, where multipliers are always the           was developed to decrease the product error. The
fundamental arithmetic unit and significantly             fixed-width modified Booth multipliers in [2] and
influence the system‟s performance and power              [3] achieve better error performance in terms of the
dissipation. To achieve high performance, the             maximum absolute error and the mean-square error
modified Booth encoding which reduces the number          when compared with the previous published
of partial products by a factor of two through            multiplier in [1]. However, their mean errors are
performing the multiplier recoding has been widely        much larger than that of [1]. The smaller mean error
adopted in parallel multipliers. Moreover, nxn fixed-     and mean-square error represent that the error
width multipliers that generate only the most             distribution is more symmetric to and centralized in
significant product bits are frequently utilized to       the error equal to zero (denoted as zero error). For
maintain a fixed word size in these loss systems          many multimedia and DSP applications, the final
which allow a little accuracy loss to output data.        output data are produced from accumulating a series
Significant hardware complexity reduction and             of products rather than from a single multiplication
power saving can be achieved by directly removing         operation directly.
the adder cells of standard multiplier for the                      This paper is organized as follows. In
computation of the least significant bits of 2n-bit       section II, the modified booth multiplier is briefly
output product. However, a huge truncation error          reviewed. The implementation results and outputs
will be introduced to this kind of direct-truncated       are showed. Section III describes the detailed
fixed-width multiplier (DTFM). To effectively             comparison of booth multiplier and modified booth
reduce the truncation error, various error                multiplier. Finally ,section IV concludes this paper.
compensation methods, which add estimated
compensation value to the carry inputs of the


                                                                                                 295 | P a g e
S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and
                   Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                        Vol. 3, Issue 2, March -April 2013, pp.295-299
II. PROPOSED LOGIC
        Here booth multiplier is going to modified         Bits   Bits   Bits   opera   X     X
as Multiplier, partial product, partial product shifter,                                           Add    Sub
                                                           A      B      C      tion    1     2
adder blocks are shown in below figure 1
                                                           0      0      0      +0      0     0    0      1
                                                           0      0      1      +a      0     1    0      1
                                                           0      1      0      +a      0     1    0      1
                                                           0      1      1      +2a     1     0    0      1
Fig 2.1 Block diagram of modified booth multiplier         1      0      0      -2a     1     0    1      0
                                                           1      0      1      -a      0     1    1      0
                                                           1      1      0      -a      0     1    1      0
                                                           1      1      1      -0      0     0    1      0
         Fig 2.1.1.Block diagram of multiplier
                                                           Table 1: Modified booth encoder
       For example:
       Multiplicand: 0110010110101001
       Multiplier : 0000111101010101
       Product                                         :
0000011000010110101010000001101




                                                           Fig 2.1.3.Block diagram of booth encoder

                                                                     The encoder block generates the selector
                                                           signals for each 3 bits of multiplicand. This is the
Fig2.1.2.Output waveform of multiplier                     logic for the encoder block:

2.1 MODIFIED BOOTH ENCODER (MBE)                           X1= (a xor b)(a xor c)(not(b xor c))
         Modified Booth encoding is most often
used to avoid variable size partial product arrays.        X2= b xor c
Before designing a MBE, the multiplier B has to be
converted into a Prior to convert the multiplier, a        Add=not a
zero is appended into the Least Significant Bit (LSB)
of the multiplier. The figure above shows that the         Sub= a
multiplier has been divided into four partitions and
hence that mean four partial products will be
generated using booth multiplier approach Instead of
eight partial products being generated using
conventional multiplier.
         Zn = -2* Bn+1 + Bn + Bn-1
         Let‟s take an example of converting an 8-
bit number into a Radix-4 number. Let the number
be -36 = 11011100. Now we have to append a „0‟ to
the LSB. Hence the new number becomes a 9-digit
number that is 110111000. This is now further
encoded into Radix-4 numbers according to the
following given table.                                     Fig 2.1.4.k-map of booth encoder




                                                                                                  296 | P a g e
S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and
                   Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                        Vol. 3, Issue 2, March -April 2013, pp.295-299
                                                         number. Multiply by “-2” is to shift left one bit the
                                                         two‟s complement of the multiplicand value and
                                                         multiply by “2” means just shift left the multiplicand
                                                         by one place.




Fig 2.1.5.Booth encoder output Wave form




                                                         Fig 2.2.1.Block diagram of partial product




Fig 2.1.6.Block diagram of booth decoder

        The decoder block generates the partial
product from the selector signals that they are
generated in encoder block.
        Example:
        Multiplicand = 0110010110101001
        Bits           = 0110
        Out           = 1111001101001010



                                                         Fig 2.2.2.Example of showing partial product (6-bit)

                                                         method showing how partial products should be
                                                         Added

                                                         To prove the output result is correct:
                                                         11111101001101100 =
                                                                   20(0) + 21(0) + 22(1) +
                                                                       23(1) + 24(0) + 25(1) +
                                                                              26(1) + 27(0) + 29(1) +
Fig 2.1.7.Booth decoder output waveform                                                210(0) + 211(-1) =
                                                                              4+8+32+64+512-2048= -1428
2.2 PARTIAL PRODUCT
          Partial product generator is the combination
circuit of the product generator and the 5 to 1 MUX
circuit. Product generator is designed to produce the
product by multiplying the multiplicand A by 0, 1, -
1, 2 or -2. A 5 to 1 MUX is designed to determine
which product is chosen depending on the M, 2M,
3M control signal which is generated from the MBE.
For product generator, multiply by zero means the
multiplicand is multiplied by “0”.Multiply by “1”
means the product still remains the same as the
multiplicand value. Multiply by “-1” means that the
product is the two‟s complement form of the



                                                                                               297 | P a g e
S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and
                    Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                         Vol. 3, Issue 2, March -April 2013, pp.295-299
                                                          Two’s complement

                                                              Here two‟s complement is implemented in new
                                                          using xor & or gates.




Fig 2.2.3.Partial product output waveform

2.3 PARTIAL PRODUCT SHIFTER                               .
         Partial product shifter is used to know when     Fig 2.3.3.Block diagram of two‟s complement
numbers of bits are shifted after every operation of
multiplier.                                               For example:

                                                          X: 0000111101010101
                                                          Y: 1111000010101010
                                                                                1
                                                          Z: 1111000010101011


                                                          Or vector is used to put zeros or ones:
                                                           1. If MSB of the two‟s complement result is one
                                                               then or vector is one.
                                                           2. If MSB of the two‟s complement result is zero
                                                               then or vector is zero.




Fig 2.3.1.Block diagram of partial product shifter

For example:
Multiplier   -      0000111101010101
Multiplicand -       0110010110101001
pp0                                                   -
00000000000000000110010110101001
 pp1                                                  -
000000000000000011001011010100100                         Fig 2.3.4.Two‟s complement output waveform
pp2                                                   -
000000000011001011010100100010000                         2.4 ADDER

         Like this bits are shifted for every operation
of multiplier.




                                                               Fig 2.4.1.Block diagram of adder

                                                                   Adder takes the inputs performs addition
                                                          operation and generates sum, carry outputs
                                                          For example:
                                                          X: 00001111000011110101010101010101
                                                          Y : 00001111000011110101010101010100
Fig 2.3.2.Partial product shifter output waveform         Z:00001110000111101010101010101001



                                                                                              298 | P a g e
S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and
                    Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                         Vol. 3, Issue 2, March -April 2013, pp.295-299



                                                           P    4
                                                           o   3.5
                                                          w     3
                                                          er
                                                           c   2.5
                                                           o    2
                                                           n   1.5
                                                           s
                                                           u    1
                                                          m    0.5
                                                          pt    0
                                                          io
                                                           n         modified     multiplier   complexity
                                                                     multiplier


Fig 2.4.2.Adder Output waveform

III. PARAMETER COMPARISONS
                                                  Fig 2 Graph representation of modified multiplier
After           Booth        Modified     booth   and multiplier
synthesis       multiplier   multiplier
                                                           In this graph vertical axis is power
                                                  consumption, horizontal axis is complexity. We
Adders-16       16           -                    know from this graph complexity and power
Subtract-16     15           -                    consumption is less in modified booth multiplier,
4x1 mux         240          -                    when compared to multiplier. So, modified
No. of slices   500          366                  multiplier is used to save power, complexity is
4 i/p LUT       977          644                  reduced, speed increment can be performed.
IOBS            64           64
Combinationa                                      IV. CONCLUSION
l delay path    86.70ns      65.96ns                      In this paper, FPGA implementation of
                                                  modified Booth multiplier has been proposed. In the
After map                                         proposed multiplier, the Partial product matrix of
                                                  Booth multiplication was slightly modified as booth
No.        of   496          375                  encoder, decoder, and mux. In booth encoder,
occupied                                          encoding table is derived from the booth multiplier,
slices          992          642                  according to this table we perform shifting, two‟s
4-i/p LUT                                         complement in new way. So, modified multiplier is
Equivalent      9,456        3939                 used to save power, complexity is reduced, speed
gates                                             increment can be achieved. When booth multiplier
No. of          6            24                   and modified booth multiplier we can save the
fan-out                                           power up to 40% respectively.

Place &route    64           32                   REFERENCES
external IOB    496          357                    [1]   S. J. Jou, M.-H. Tsai and Y.-L. Tsao, “Low-
No. of slices                                             error                         reduced-width
Power           25Mw         7mW                          BoothMultipliers for DSP applications,”
consumed                                                  IEEE Trans. Circuits Syst. I, Fudam.Theory
                                                          Appl., vol. 50, no. 11, pp. 1470–1474, Nov.
Table 2: Parameters comparison                            2003.
                                                    [2]   K.-J. Cho, K.-C. Lee, J.-G. Chung, and K.
                                                          K. Parhi, “Design of low errorFixed-width
                                                          modified Booth multiplier,” IEEE Trans.
                                                          Very Large Scale Integr. (VLSI) Syst., vol.
                                                          12, no. 5, pp. 522–531, May 2004.
                                                    [3]   M.-A. Song, L.-D. Van and S.-Y. Kuo,
                                                          “Adaptive low-error fixed widthBooth
                                                          multipliers,” IEICE Trans. Fundamentals,
                                                          vol. E90-A, no.6, pp. 1180–1187, Jun.
                                                          2007.




                                                                                                       299 | P a g e

Weitere ähnliche Inhalte

Andere mochten auch

Andere mochten auch (20)

Aj32242252
Aj32242252Aj32242252
Aj32242252
 
Eh32845848
Eh32845848Eh32845848
Eh32845848
 
A32001005
A32001005A32001005
A32001005
 
Bh33345348
Bh33345348Bh33345348
Bh33345348
 
Gm3112421245
Gm3112421245Gm3112421245
Gm3112421245
 
Gl3112351241
Gl3112351241Gl3112351241
Gl3112351241
 
Ovas 1
Ovas 1Ovas 1
Ovas 1
 
Anna e Giovnna
Anna e GiovnnaAnna e Giovnna
Anna e Giovnna
 
Obra no bairro Luxemburgo
Obra no bairro LuxemburgoObra no bairro Luxemburgo
Obra no bairro Luxemburgo
 
Lucia martinez
Lucia martinezLucia martinez
Lucia martinez
 
Metodologia do trabalho_escrito
Metodologia do trabalho_escritoMetodologia do trabalho_escrito
Metodologia do trabalho_escrito
 
Roles evento profetico 2013
Roles evento profetico 2013Roles evento profetico 2013
Roles evento profetico 2013
 
Biodiversidade e conhecimentos tradicionais
Biodiversidade e conhecimentos tradicionaisBiodiversidade e conhecimentos tradicionais
Biodiversidade e conhecimentos tradicionais
 
Orientacion vocacional
Orientacion vocacionalOrientacion vocacional
Orientacion vocacional
 
Artigo - Busca em ônibus rodoviário
Artigo - Busca em ônibus rodoviárioArtigo - Busca em ônibus rodoviário
Artigo - Busca em ônibus rodoviário
 
Carcinogenesis cervical y hpv curso aconcagua 2011
Carcinogenesis cervical y hpv curso aconcagua 2011Carcinogenesis cervical y hpv curso aconcagua 2011
Carcinogenesis cervical y hpv curso aconcagua 2011
 
36524089 ingenieria-de-trafico
36524089 ingenieria-de-trafico36524089 ingenieria-de-trafico
36524089 ingenieria-de-trafico
 
Los derechos del niño
Los derechos del niñoLos derechos del niño
Los derechos del niño
 
Carimbo suspeito
Carimbo suspeitoCarimbo suspeito
Carimbo suspeito
 
Distpopulaao 1218630199259034-9
Distpopulaao 1218630199259034-9Distpopulaao 1218630199259034-9
Distpopulaao 1218630199259034-9
 

Ähnlich wie Ar32295299

Comparative Design of Regular Structured Modified Booth Multiplier
Comparative Design of Regular Structured Modified Booth MultiplierComparative Design of Regular Structured Modified Booth Multiplier
Comparative Design of Regular Structured Modified Booth MultiplierVLSICS Design
 
Error Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitError Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitIOSR Journals
 
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...IRJET Journal
 
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointSurvey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointIRJET Journal
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)inventionjournals
 
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...ijsrd.com
 
JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPERRaj kumar
 
Fast Multiplier for FIR Filters
Fast Multiplier for FIR FiltersFast Multiplier for FIR Filters
Fast Multiplier for FIR FiltersIJSTA
 
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...IJERA Editor
 
Ijarcet vol-2-issue-3-1036-1040
Ijarcet vol-2-issue-3-1036-1040Ijarcet vol-2-issue-3-1036-1040
Ijarcet vol-2-issue-3-1036-1040Editor IJARCET
 
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...IRJET Journal
 
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. TechniqueDesign and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. TechniqueIJMER
 
IRJET - Approximate Unsigned Multiplier with Varied Error Rate
IRJET - Approximate Unsigned Multiplier with Varied Error RateIRJET - Approximate Unsigned Multiplier with Varied Error Rate
IRJET - Approximate Unsigned Multiplier with Varied Error RateIRJET Journal
 
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...IRJET Journal
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 
Area and power performance analysis of floating point ALU using pipelining
Area and power performance analysis of floating point  ALU using pipeliningArea and power performance analysis of floating point  ALU using pipelining
Area and power performance analysis of floating point ALU using pipeliningIRJET Journal
 

Ähnlich wie Ar32295299 (20)

Comparative Design of Regular Structured Modified Booth Multiplier
Comparative Design of Regular Structured Modified Booth MultiplierComparative Design of Regular Structured Modified Booth Multiplier
Comparative Design of Regular Structured Modified Booth Multiplier
 
Error Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitError Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac Unit
 
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
 
D0161926
D0161926D0161926
D0161926
 
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointSurvey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...
Design and Simulation of Radix-8 Booth Encoder Multiplier for Signed and Unsi...
 
Ijetr011743
Ijetr011743Ijetr011743
Ijetr011743
 
JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPER
 
Fast Multiplier for FIR Filters
Fast Multiplier for FIR FiltersFast Multiplier for FIR Filters
Fast Multiplier for FIR Filters
 
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...
A Novel Efficient VLSI Architecture for IEEE 754 Floating point multiplier us...
 
Ijarcet vol-2-issue-3-1036-1040
Ijarcet vol-2-issue-3-1036-1040Ijarcet vol-2-issue-3-1036-1040
Ijarcet vol-2-issue-3-1036-1040
 
Modified booth
Modified boothModified booth
Modified booth
 
Gt3612201224
Gt3612201224Gt3612201224
Gt3612201224
 
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
 
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. TechniqueDesign and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
 
IRJET - Approximate Unsigned Multiplier with Varied Error Rate
IRJET - Approximate Unsigned Multiplier with Varied Error RateIRJET - Approximate Unsigned Multiplier with Varied Error Rate
IRJET - Approximate Unsigned Multiplier with Varied Error Rate
 
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...
IRJET- An Efficient Multiply Accumulate Unit Design using Vedic Mathematics A...
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 
Area and power performance analysis of floating point ALU using pipelining
Area and power performance analysis of floating point  ALU using pipeliningArea and power performance analysis of floating point  ALU using pipelining
Area and power performance analysis of floating point ALU using pipelining
 

Ar32295299

  • 1. S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 2, March -April 2013, pp.295-299 FPGA Implementation of Modified Booth Multiplier S.Nagaraj1, R.Mallikarjuna Reddy2 1 Associate professor, Department of ECE, SVCET, Chittoor, nagarajsubramanyam@gmail.com 2 Associate professor, Department of ECE, SVCET, Chittoor. mallikarjunareddy.r416@gmail.com Abstract To design a high speed multiplier with reserved adder cells, have been proposed. The error reduced error compensation technique. The compensation value can be produced by the constant fixed-width multiplier is attractive to many Scheme. The constant scheme through adaptively multimedia and digital signal processing systems adjusting the compensation value according to the which are desirable to maintain a fixed format input data at the expense of a little higher hardware and allow a little accuracy loss to output data. complexity. However, most of the adaptive error This paper presents the Design of error compensation approaches are developed only for compensated truncation circuit and its fixed-width array multipliers and cannot be applied implementation in fixed width multiplier. To to significantly reduce the truncation error of fixed- reduce the truncation error, we first slightly width modified Booth multipliers directly. To modify the partial product matrix of Booth overcome this problem, several error compensation multiplication and then derive an effective error approaches [1]–[3] have been proposed to compensation function that makes the error effectively reduce the truncation error of fixed-width distribution be more symmetric to and modified Booth multipliers. In [1], the compensation centralized in the error equal to zero, leading the value was generated by using statistical analysis and fixed-width modified Booth multiplier to very linear regression analysis. This approach can small mean and mean-square errors. However, a significantly decrease the mean error of fixed-width huge truncation error will be introduced to this modified Booth multipliers, but the maximum kind of fixed-width modified Booth multipliers. absolute error and the mean-square error are still To overcome this problem, several error large. Cho et al. [2] divided the truncated part of the compensated truncation circuit approaches have bit product matrix of Booth multiplication into a been proposed to effectively reduce the major group and a minor group depending on their truncation error of fixed-width modified Booth effects on the truncation error. To obtain better error multipliers. performance with a simple error compensation circuit, Booth encoded outputs are utilized to I.INTRODUCTION generate the error compensation value. In [3], a HIGH processing performance and low systematic design methodology for the low-error power dissipation are the most important objectives fixed-width modified Booth multiplier via exploring in many multimedia and digital signal processing the influence of various indices in a binary threshold (DSP) systems, where multipliers are always the was developed to decrease the product error. The fundamental arithmetic unit and significantly fixed-width modified Booth multipliers in [2] and influence the system‟s performance and power [3] achieve better error performance in terms of the dissipation. To achieve high performance, the maximum absolute error and the mean-square error modified Booth encoding which reduces the number when compared with the previous published of partial products by a factor of two through multiplier in [1]. However, their mean errors are performing the multiplier recoding has been widely much larger than that of [1]. The smaller mean error adopted in parallel multipliers. Moreover, nxn fixed- and mean-square error represent that the error width multipliers that generate only the most distribution is more symmetric to and centralized in significant product bits are frequently utilized to the error equal to zero (denoted as zero error). For maintain a fixed word size in these loss systems many multimedia and DSP applications, the final which allow a little accuracy loss to output data. output data are produced from accumulating a series Significant hardware complexity reduction and of products rather than from a single multiplication power saving can be achieved by directly removing operation directly. the adder cells of standard multiplier for the This paper is organized as follows. In computation of the least significant bits of 2n-bit section II, the modified booth multiplier is briefly output product. However, a huge truncation error reviewed. The implementation results and outputs will be introduced to this kind of direct-truncated are showed. Section III describes the detailed fixed-width multiplier (DTFM). To effectively comparison of booth multiplier and modified booth reduce the truncation error, various error multiplier. Finally ,section IV concludes this paper. compensation methods, which add estimated compensation value to the carry inputs of the 295 | P a g e
  • 2. S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 2, March -April 2013, pp.295-299 II. PROPOSED LOGIC Here booth multiplier is going to modified Bits Bits Bits opera X X as Multiplier, partial product, partial product shifter, Add Sub A B C tion 1 2 adder blocks are shown in below figure 1 0 0 0 +0 0 0 0 1 0 0 1 +a 0 1 0 1 0 1 0 +a 0 1 0 1 0 1 1 +2a 1 0 0 1 Fig 2.1 Block diagram of modified booth multiplier 1 0 0 -2a 1 0 1 0 1 0 1 -a 0 1 1 0 1 1 0 -a 0 1 1 0 1 1 1 -0 0 0 1 0 Fig 2.1.1.Block diagram of multiplier Table 1: Modified booth encoder For example: Multiplicand: 0110010110101001 Multiplier : 0000111101010101 Product : 0000011000010110101010000001101 Fig 2.1.3.Block diagram of booth encoder The encoder block generates the selector signals for each 3 bits of multiplicand. This is the Fig2.1.2.Output waveform of multiplier logic for the encoder block: 2.1 MODIFIED BOOTH ENCODER (MBE) X1= (a xor b)(a xor c)(not(b xor c)) Modified Booth encoding is most often used to avoid variable size partial product arrays. X2= b xor c Before designing a MBE, the multiplier B has to be converted into a Prior to convert the multiplier, a Add=not a zero is appended into the Least Significant Bit (LSB) of the multiplier. The figure above shows that the Sub= a multiplier has been divided into four partitions and hence that mean four partial products will be generated using booth multiplier approach Instead of eight partial products being generated using conventional multiplier. Zn = -2* Bn+1 + Bn + Bn-1 Let‟s take an example of converting an 8- bit number into a Radix-4 number. Let the number be -36 = 11011100. Now we have to append a „0‟ to the LSB. Hence the new number becomes a 9-digit number that is 110111000. This is now further encoded into Radix-4 numbers according to the following given table. Fig 2.1.4.k-map of booth encoder 296 | P a g e
  • 3. S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 2, March -April 2013, pp.295-299 number. Multiply by “-2” is to shift left one bit the two‟s complement of the multiplicand value and multiply by “2” means just shift left the multiplicand by one place. Fig 2.1.5.Booth encoder output Wave form Fig 2.2.1.Block diagram of partial product Fig 2.1.6.Block diagram of booth decoder The decoder block generates the partial product from the selector signals that they are generated in encoder block. Example: Multiplicand = 0110010110101001 Bits = 0110 Out = 1111001101001010 Fig 2.2.2.Example of showing partial product (6-bit) method showing how partial products should be Added To prove the output result is correct: 11111101001101100 = 20(0) + 21(0) + 22(1) + 23(1) + 24(0) + 25(1) + 26(1) + 27(0) + 29(1) + Fig 2.1.7.Booth decoder output waveform 210(0) + 211(-1) = 4+8+32+64+512-2048= -1428 2.2 PARTIAL PRODUCT Partial product generator is the combination circuit of the product generator and the 5 to 1 MUX circuit. Product generator is designed to produce the product by multiplying the multiplicand A by 0, 1, - 1, 2 or -2. A 5 to 1 MUX is designed to determine which product is chosen depending on the M, 2M, 3M control signal which is generated from the MBE. For product generator, multiply by zero means the multiplicand is multiplied by “0”.Multiply by “1” means the product still remains the same as the multiplicand value. Multiply by “-1” means that the product is the two‟s complement form of the 297 | P a g e
  • 4. S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 2, March -April 2013, pp.295-299 Two’s complement Here two‟s complement is implemented in new using xor & or gates. Fig 2.2.3.Partial product output waveform 2.3 PARTIAL PRODUCT SHIFTER . Partial product shifter is used to know when Fig 2.3.3.Block diagram of two‟s complement numbers of bits are shifted after every operation of multiplier. For example: X: 0000111101010101 Y: 1111000010101010 1 Z: 1111000010101011 Or vector is used to put zeros or ones: 1. If MSB of the two‟s complement result is one then or vector is one. 2. If MSB of the two‟s complement result is zero then or vector is zero. Fig 2.3.1.Block diagram of partial product shifter For example: Multiplier - 0000111101010101 Multiplicand - 0110010110101001 pp0 - 00000000000000000110010110101001 pp1 - 000000000000000011001011010100100 Fig 2.3.4.Two‟s complement output waveform pp2 - 000000000011001011010100100010000 2.4 ADDER Like this bits are shifted for every operation of multiplier. Fig 2.4.1.Block diagram of adder Adder takes the inputs performs addition operation and generates sum, carry outputs For example: X: 00001111000011110101010101010101 Y : 00001111000011110101010101010100 Fig 2.3.2.Partial product shifter output waveform Z:00001110000111101010101010101001 298 | P a g e
  • 5. S.Nagaraj, R.Mallikarjuna Reddy / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 2, March -April 2013, pp.295-299 P 4 o 3.5 w 3 er c 2.5 o 2 n 1.5 s u 1 m 0.5 pt 0 io n modified multiplier complexity multiplier Fig 2.4.2.Adder Output waveform III. PARAMETER COMPARISONS Fig 2 Graph representation of modified multiplier After Booth Modified booth and multiplier synthesis multiplier multiplier In this graph vertical axis is power consumption, horizontal axis is complexity. We Adders-16 16 - know from this graph complexity and power Subtract-16 15 - consumption is less in modified booth multiplier, 4x1 mux 240 - when compared to multiplier. So, modified No. of slices 500 366 multiplier is used to save power, complexity is 4 i/p LUT 977 644 reduced, speed increment can be performed. IOBS 64 64 Combinationa IV. CONCLUSION l delay path 86.70ns 65.96ns In this paper, FPGA implementation of modified Booth multiplier has been proposed. In the After map proposed multiplier, the Partial product matrix of Booth multiplication was slightly modified as booth No. of 496 375 encoder, decoder, and mux. In booth encoder, occupied encoding table is derived from the booth multiplier, slices 992 642 according to this table we perform shifting, two‟s 4-i/p LUT complement in new way. So, modified multiplier is Equivalent 9,456 3939 used to save power, complexity is reduced, speed gates increment can be achieved. When booth multiplier No. of 6 24 and modified booth multiplier we can save the fan-out power up to 40% respectively. Place &route 64 32 REFERENCES external IOB 496 357 [1] S. J. Jou, M.-H. Tsai and Y.-L. Tsao, “Low- No. of slices error reduced-width Power 25Mw 7mW BoothMultipliers for DSP applications,” consumed IEEE Trans. Circuits Syst. I, Fudam.Theory Appl., vol. 50, no. 11, pp. 1470–1474, Nov. Table 2: Parameters comparison 2003. [2] K.-J. Cho, K.-C. Lee, J.-G. Chung, and K. K. Parhi, “Design of low errorFixed-width modified Booth multiplier,” IEEE Trans. Very Large Scale Integr. (VLSI) Syst., vol. 12, no. 5, pp. 522–531, May 2004. [3] M.-A. Song, L.-D. Van and S.-Y. Kuo, “Adaptive low-error fixed widthBooth multipliers,” IEICE Trans. Fundamentals, vol. E90-A, no.6, pp. 1180–1187, Jun. 2007. 299 | P a g e