32-bit vedic multiplier
DESCRIPTION
multiplierTRANSCRIPT
ST.ANN’S COLLEGE OF ENGINEERING & TECHNOLOGYCHIRALA
( Accredited by NBA(twice) , IE (I) &NAAC with “A” Grade)( Approved by AICTE & Permanently Affiliated to JNTUK)
A project report on
32-BIT VEDIC MULTIPLIER Under the esteemed guidance of
FIROZE BASHA SHAIK M.Tech
SUBMITTED BY
Shaik Meerabi (12F01A04E8)
MVN Sai Kumar (13F05A0422)
Ubba Aditya Kiran (12F01A04G6)
Shaik Muhammad Nawaz Shariff (13F05A0434)
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
ST.ANN’S COLLEGE OF ENGINEERING & TECHNOLOGY ,CHIRALA.
ABSTRACT
Binary multipliers and addresses are used in the design and development of
Arithmetic Logic Unit (ALU), Digital Signal Processing (DSP) Processors,
Multiply and Accumulate (MAC).The objective of this paper is to implement digital
multipliers based on the concept of Vedic mathematics. In order to develop a digital
multiplier, Urdhva-tiryakbyham sutra of Vedic mathematics is used to implement
vertical and cross wise operations. In this project 32-bit vedic multiplier is designed
and simulated in Xilinx ISE 13.4 and has been compared with a 32-bit binary
multiplier.
The multipliers are used in our daily life for various applications. So to make
the multiplier faster, power efficient and to fit in lesser area we are going to use an
oldest technique known as Vedic mathematics. The main objective of the paper is to
develop binary multipliers i.e. multipliers designed to find the product of two n-bit
binary numbers and then implement it. Binary multipliers of 32x32 have been
compared with conventional multipliers based on their summary obtained at the end
after the implementation.
The code for implementing binary multipliers has been written in VHDL
language for both the multipliers. The "Urdhva-tiryakbyham" sutra is based on
"vertical and crosswise.
The simulation of the 32-bit Vedic multiplier is carried out by creating a test
bench file which consists of all the input combinations and mapping process. This
test bench files have been simulated in behavioral and the outputs obtained. The
proposed multiplier of 32-bit is implemented on a Spartan.
http://www.vedicmathsofindia.com/tag/vedic-mathematics-sutra-no-1-ekadhikena-purvena/#Division
2014 IEEE International Conference on Advanced Communication Control and Computing Technologies (lCACCCT)
Comparison ofa 32-Bit Vedic Multiplier With A Conventional
Binary Multiplier
Abhyarthana Bisoyil, Mitu Barat
l, Manoja Kumar Senapati
3
1,2,3Dept. of Electronics and Communication,National Institute of Science and Technology,Berhampur, India
Abstract- Binary multipliers and addresses are used in the design and development
of Arithmetic Logic Unit (ALU), Digital Signal Processing (DSP) Processors, Multiply
and Accumulate (MAC).The objective of this paper is to implement digital multipliers
based on the concept of Vedic mathematics. In order to develop a digital multiplier,
Urdhva-tiryakbyham sutra of Vedic mathematics is used to implement vertical and
cross wise operations. Since these are digital multipliers, they are implemented on
FPGA board and are tested through the 8 LED
(s) in FPGA (Nexys 3). A 32-bit Vedic multiplier has been simulated in Xilinx ISE 13.4
and has been compared with a 32-bit binary multiplier.
Keywords-Vedic mathematics; FPGA; binary nmltipliers, Xilinx ISE
I. INTRODUCTION
In today's era more emphasis is given on the signal processing
applications in VLSI. Since last two decades, papers on MAC have been
written in order to improve the multiplication techniques and when we talk
of multiplication the first thing that strikes is "Mathematics". Researchers
or readers prefer the ancient methodology for any mathematical
application where sutras are used i.e. "Vedic Mathematics". Vedic
Mathematics is based on 16 sutras (aphorisms) namely (Anurupye)
Shunyamanyat, Chalana-Kalanabyham, Ekadhikina Purvena,
Ekanyunena Purvena,Gunakasamuchyah, Gunitasamuchyah, Nikhilam
Navatashcaramam Dashatahm, ParaavartyaYojayet,
Puranapuranabyham, Sankalana vyavakalanabhyam, Shesanyankena
Charamena, Shunyam Saamyasamuccaye, Sopaantyadvayamantyam,
Urdhva tiryakbyham, Vyashtisamanstih and Yaavadunam [2]. Each of
these sutras is used for specific application, for example Nikhilam sutra is
used to find the square of a number. Using the concept of Vedic
Mathematics any mathematical operation can be done.
In 2007, S. Akhter, [1] has developed a technique for NxN
multipliers based on add and shift instead of vertical and crosswise
multiplication. In 2008, H.D. Tiwari, et al. [2] implemented multipliers that
were developed based on Vedic mathematics on a ALTERA Cyclone -II
FPGA which was faster than array multiplier and Boot multiplier. In
2009, P. Mehta, et a!. [3] compared the conventional multipliers with the
Vedic multipliers by implementing on the Xilinx FPGA device, Virtex
XCV 300 -6PQ240. In 2011, P. Saha, et a1. [4] developed a design for
high speed complex multiplier based on the 16 sutras of ancient
mathematics. In 2009, D. laina, et
a!. [5] focused on the DSP application in VLSI by designing a MAC unit
based on Vedic mathematics. In 2011, lM. Rudagi, et al. [6] extended
the applications in DSP by focusing on convolution, FFT, etc and applied
on Computation Intensive Arithmetic Functions. In 2012, A. Haveliya [7]
used overlap add method and overlap save method in order to develop a
Vedic multiplier. In 2013, A. K. Itawadiya, et al. [8] approached to
implement convolution as well as correlation which was different in
application and was innovative idea. In 2013, L. Sriraman, et al. [9]
proposed an 8, 16, 32 bit squarer and implemented on Cyclone III
FPGAEP3C 16F484C6.
The main objective of the paper is to develop binary multipliers i.e.
multipliers designed to find the product of two n-bit binary numbers and
then implement it on a Nexys 3, Spartan 6 FPGA board. Binary
multipliers of 32x32 have been compared with conventional multipliers
based on their summary obtained at the end after the implementation.
Rest of the paper is organized as; the proposed work has been
discussed in Section II. Algorithm for the Vedic multiplier has been
described in Section III. The simulation results along with discussions on
it are presented in Section IV. The paper has been concluded in Section
V.
II. PROPOSED WORK
The code for implementing binary multipliers has been written in
Verilog language for both the multipliers. The whole program has been
written in Xilinx 13.4 ISE environment.
IMPLEMENTATION
Figure I. Work flow diagram
ISBN No. 978-1-4799-3914-5/14/$31.00 ©2014 IEEEEEE International Conference on Advanced Communication Control and Computing Technologies (lCACCCT)
The "Urdhva-tiryakbyham" sutra is based on "vertical and crosswise"
[2] calculations and hence this sutra amongst all other sutras has been
used for designing the binary multipliers.
The flow of the work is given in figure 1. After writing the verilog code for
a binary multiplier, it is very important to simulate the code before
implementing it on the board. Simulation has been done in Xilinx
environment by writing test bench file and then the simulation results has
been verified with actual results. The simulation is followed by synthesis
process which is another important step and if the code is not synthesizable
then it will not work on the FPGA board also. After synthesis, the code is
ready to be implemented in hardware but before that it has to undergo place
and route. Once place and route is over a bit is generated in Xilinx which is
downloaded on the FPGA board and then the code is implementation
process starts.
III. ALGORITHM
The Urdhva-tiryakbyham sutra deals with vertical and crosswise
that can be seen from the line diagram. So an algorithm is
developed based on a line diagram described in section A and the
steps are explained with an example in section B.
A. Line diagram
Step 2
1 0 V1 1 6\
II
Step 3
:�
III
Step 4
1111
Step 5
011 II
Step 6
1 0 1 1
X 0
10011 II
Step 7
1 0 1 1
1 1 0 1
100011 II
Product= (Ixl) + (IxO) = 1+0=1, Final
Result=Product+ Previous carry=1 +0=1 So,
Final Result=l, Carry=O
Product=( 1x 1 )+( 1xO )+( 1xO)= 1+0+0= 1,
Final Result= 1+0=1
Final Result=l, Carry=O
Product= (Ixl) + (OxO) + (Ixl) + (Ixl) = 1+0+ 1+
1=11, Final Result= 11+0= 11 Final Result=l,
Carry=1
Product= (Ixl) + (IxO) + (IxO)
1+0+0=1, Final Result= 1+ 1=10
Final Result=O, Carry=1
Product= (Ixl) + (IxO) = 1+0=1,
Final Result= 1+1=10
Final Result=O, Carry=1
Product= (Ixl) = 1,
Final Result= 1+ 1 =10
Final Result=O, Carry=1
IV. RESULTS AND DISUSSION
B. Example with steps
An example of the above pin diagram is demonstrated in this
section. The pin diagram is for two 4-bit numbers, Bitl= "lOll"
Bit2= "1101"
Step!
1 0 1 1 Product= 1 x 1 = 1,
1 1 0 1 So, Result= 1, Carry=O
The results are obtained from two parts i.e. simulation part and
implementation part. The simulation results are shown in section A
and section B discusses about the implementation results.
A. Simulation results
The simulation of the 32-bit Vedic multiplier is carried out by
creating a test bench file which consists of all the input combinations
and mapping process. This test bench files have been simulated in
behavioral and the outputs obtained are shown in figure 2 and3.
In figure2, the inputs are taken as,
Bit1= "11111111111111111111111111100001" Bit2=
"10000111111111111111111111111111"
In figure 3, the inputs are taken as,
Bitl= "11111111111111111111111111111111" Bit2=
"11111111111111111111111111111111"
17584 IEEE International Conference on Advanced Communication Control and Computing Technologies (lCACCCT)
The slice distribution summary table of a Vedic Multiplier has been shown in
table number II, where the utilization of unused flip flop is 100% and utilization of
other parameters was 0% i.e. they were not used.
TABLE lIl. I/O UTILIZATION
Description Used Available Utilization(%)
Number of 1I0s 128
Figure 2. Simulation result-I of two 32 bit numbersNumber of bonded
128 232 55IIOs
The 110 utilization summary table of a Vedic Multiplier
has been shown in table number III, where the utilization of
bonded 1I0s was 55%.
TABLE IV. SPECIAL FEATURE unLiZA nON
DescriptionUtilizationUsed Available (%)
Number of32 32 100
DSP48AIs
Figure 3. Simulation result-2 of two 32 bit numbers
B. Comparison on basis of synthesis report
The slice logic utilization, slice logic distribution, 110 utilization and special feature utilization table of a 32-bit Vedic multiplier are given in table
number I, II, III and IV respectively.
TABLE I. SLICE LOGIC UTILIZATION
Description Used Available Utilization(%)
Number of slice3356 9112 36LUTs
Number used aslogic gates 3356 9112 36
The slice logic utilization summary table of a Vedic Multiplier has been shown in table number I, where the utilization of slice LUTs and logic gates
are 36%.
TABLE II. SLICE LOGIC DISTRIBUTION
Table Head Used Available Utilization(%)
Number of LUT Flip Flop
pairs used 3356
Number with an unusedFlip Flop 3356 3356 100
Number with an unusedLUT 0 3356 0
Number of fully usedLUT-FF pairs 0 3356 0
Number of unique controlsets 0
The special feature utilization summary table of a Vedic Multiplier has been shown in table number IV, where the utilization of DSP48Als was 100%.
The 110 utilization and special feature utilization table of a 32-bit conventional multiplier are given in table number V and VI respectively. The other
two utilization reports have 0% utilization and hence are not mentioned in tabular format.
TABLE V. 110 UTILIZATION
Description Used Available Utilization(%)
Number of 1I0s 128
Number of bonded128 232 55
IIOs
The 110 utilization summary table of a 32-bit Conventional Multiplier has been shown in table number V, where the utilization of bonded 1I0s was
55% which is same % as Vedic Multiplier.
TABLE VI. SPECIAL FEATURE unLiZA nON
DescriptionUtilizationUsed Available (%)
Number of4 32 12
DSP48AIs
The special feature utilization summary table of a Vedic Multiplier has been shown in table number IV, where the utilization of DSP48Als was
12% which is very less in % as compared to Vedic Multiplier tabulation results.
2014 IEEE Iernational Conference on Advanced Communication Control and Computing Technologies (lCACCCT)
C. Comparison on basis of delay
1) In Vedic multiplier of 32-bit operation, the delay obtained is as follows,
168.430ns (40.043ns logic, 128.387ns route)
(23.8% logic, 76.2% route)
2) In a conventional multiplier of 32-bit operation, the delay obtained is
as follows,
19.286ns (15.993ns logic, 3.293ns route) (82.9% logic,
17.1 % route)
D. Advantages and disadvantages of Vedic multipliers
After comparing the 32x32 Vedic multiplier with a conventional 32-bit
binary multiplier, it has been observed that there are many disadvantages
in Vedic multipliers but still have various applications in DSP. So the
various advantages and disadvantages are listed as follows:
1) Advantages: Vedic multipliers are based on one of the 16 sutras
of Vedic Mathematics which is "Vertical - crosswise". From the algorithm
explained in the previous section, it can be clearly seen that the Vedic
multiplier is based on MAC i.e. Multiply and Accumulate. So, these have
got wide applications in DSP.
2) Disadvantages: The major disadvantage of Vedic multipliers is the
utilization of LUTs, lOBs, etc. The conventional multipliers do not have
much utilization of these components.
V. CONCLUSION
[4] P. Saha, A Banerjee, P. Bhattacharyya, A Dandapat, "High speed ASIC design of complex multiplier using Vedic Mathematics", IEEE Students' Technology Symposium , pp. 237-241, Jan 2011doi: 10.1109fTECHSYM.2011.5783852
[5] D. Jaina, K. Sethi, R. Panda, "Vedic Mathematics Based Multiply Accumulate Unit", International Conference on Computational Intelligence and Communication Networks, pp. 754-757, Oct 2011 doi: 10.1l09fCICN.2011.167
[6] J.M. Rudagi, Vishwanath Ambli, Vishwanath Munavalli, Ravindra Patil, Vinaykumar Sajjan, "Design and implementation of efficient multiplier using Vedic Mathematics", 3rd International Conference on Advances in Recent Technologies in Communication and Computing, pp. 162-166, Nov 2011
doi: 10.1 049fic.20 11.0071[7] A Haveliya, "FPGA implementation of a Vedic convolution algorithm",
International journal of engineering research and applications, Vol. 2, issue I, pp. 678-684, Feb 2012
[8] AK. ltawadiya, R. Mahle, and V. Patel, D. Kumar, "Design a DSP operations using Vedic mathematics", International Conference on Communications and Signal Processing, pp. 897-902, Apr 2013doi: 10.1109ficcsp.2013.6577186
[9] L. Srirarnan, K. Kumar, T.N. Saravana, Prabakar, "Design and FPGA implementation of binary squarer using Vedic mathematics", Fourth International Conference on Computing, Communications and Networking Technologies, pp. 1-5, July 2013
doi: 10.11 09f1CCCNT.20 13.6726607
From the utilization summary obtained after implementation, it has been observed that the nwnber 1I0s needed for 32-bit Vedic multiplier and
conventional binary multiplier are 128 out of 232 because of which the utilization becomes 55% for both of the multipliers. In the specific feature
utilization table, the number of DSP48Als used is 32, and 4, so the utilization is 100% and 12% respectively. On observing these results, the
disadvantages of Vedic Multipliers can be seen over binary multipliers. The delay difference is more but is in the range of nano seconds and hence
does not affect much in the circuit. Further, 64x64 multiplier can be implemented which will reduce the delay by 50%. Various applications such as
convolution, correlation, FFT, etc. can be implemented in order to extend the application of DSP in VLSI. The Texas has their own DSP Processors
where they emphasize on discrete time signal applications and we should also implement it.
REFERENCES
[I] S. Akhter, "VHDL implementation of fast NxN multiplier based on Vedic mathematic", 18th European Conference on Circuit Theory and Design, pp. 472-475, Aug 2007doi: 10. I 109fECCTD.2007.4529635
[2] H.D. Tiwari, G. Gankhuyag, Chan-Mo Kim, Yong Beom Cho, "Multiplier design based on ancient Indian Vedic Mathematics", International SoC Design Conference, Vol. 2, pp. 65-68, Nov 2008doi: 10.1I 09fSOCDC.2008.48I 5685
[3] P. Mehta and D. Gawali, "Conventional versus Vedic Mathematical Method for Hardware Implementation of a Multiplier", International Conference on Advances in Computing, Control & Telecommunication Technologies, pp. 640-642, Dec 2009
doi: 10.1l09fACT.2009.162