32-Bit Vedic Multiplier
32-Bit Vedic Multiplier
32-Bit Vedic Multiplier
A project report on
ABSTRACT
Binary multipliers and addresses are used in the design and development of
Arithmetic Logic Unit (ALU), Digital Signal Processing (DSP) Processors,
http://www.vedicmathsofindia.com/tag/vedic-mathematics-sutra-no-1-ekadhikenapurvena/#Division
2014 IEEE International Conference on Advanced Communication Control and Computing Technologies (lCACCCT)
3
l
[email protected], [email protected]
a!. [5] focused on the DSP application in VLSI by designing a MAC unit
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 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
cross wise operations. Since these are digital multipliers, they are implemented on
(s) in FPGA (Nexys 3). A 32-bit Vedic multiplier has been simulated in Xilinx ISE 13.4
FPGAEP3C 16F484C6.
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
I.
INTRODUCTION
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
Dashatahm,
Purvena,
Rest of the paper is organized as; the proposed work has been
discussed in Section II. Algorithm for the Vedic multiplier has been
ParaavartyaYojayet,
AI.
PROPOSED WORK
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.
IMPLEMENTATION
-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
10
6\
11
The flow of the work is given in figure 1. After writing the verilog code for
Product=
(Ixl)
(IxO)
1+0=1,
Final
II
Step 3
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
Product= (Ixl) + (OxO) + (Ixl) + (Ixl) = 1+0+ 1+
Step 4
BI.
ALGORITHM
1111
Step 5
Line diagram
011 II
Product= (Ixl) + (IxO) = 1+0=1,
Step 6
1011
0011 II
Product= (Ixl) = 1,
Final Result= 1+ 1 =10
Step 7
1011
100011 II
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.
B.
section. The pin diagram is for two 4-bit numbers, Bitl= "lOll"
Bit2= "1101"
Step!
101
Simulation results
"10000111111111111111111111111111"
In figure 3, the inputs are taken as,
1101
"11111111111111111111111111111111"
1758
4 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.
Description
I/O UTILIZATION
Used
Number of 1I0s
128
Number
IIOs
128
of bonded
Available
232
Utilization
(%)
55
Description
Used
Number
DSP48AIs
of
32
Available
32
Utilization
(%)
100
B.
TABLE I.
Description
Number
LUTs
Used
of
slice
Number
used
logic gates
Available
Utilization
(%)
3356
9112
36
3356
9112
36
as
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.
Table Head
Used
Available
Utilization
(%)
pairs used
Number
Flip Flop
with
Number
LUT
with
Number
of
LUT-FF pairs
unused
an
3356
3356
100
3356
3356
unused
an
fully
used
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.
Description
110 UTILIZATION
Used
Number of 1I0s
128
Number of bonded
IIOs
128
Available
232
Utilization
(%)
55
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.
Description
Used
Number
DSP48AIs
of
Available
32
Utilization
(%)
12
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.
1)
1)
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
V.
CONCLUSION
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 2007
doi: 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 2008
doi: 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