Вы находитесь на странице: 1из 6

Structural Analysis of Vedic Multiplier using

UrdhvaTiryakbhyam Sutra Algorithm for FPGA


Subhashree Samal dept. Electronics and Sakti Prasanna Swain dept Electronics and Communication
Communication Engineering Engineering
BPUT, ROURKELA, India subhashreesamal12@gmail.com BPUT, ROURKELA, India
saktiprasannaswain870@gmail.com

Abstract this paper proposes the design of high speed Vedic Vedic mathematics is part of four Vedas (books of wisdom). It
Multiplier using the techniques of Vedic Mathematics that is part of Sathapatya- Veda (book on civil engineering
have been modified to improve performance. A high speed and architecture), which is an upa-veda (supplement) of
processor depends greatly on the multiplier as it is one of Atharva Veda. It covers explanation of several modern
the key hardware blocks in most digital signal processing mathematical terms including arithmetic, geometry (plane,
systems as well as in general processors. Vedic Mathematics co- ordinate),trigonometry, quadratic equations, factorization
has a unique technique of calculations based on 16 Sutras. and even calculus. His Holiness Jagadguru
This paper presents study on high speed 8x8 bit Vedic Shankaracharya Bharati Krishna Teerthaji Maharaja (1884-
multiplier architecture which is quite different from the 1960) comprised all this work together and gave its
Conventional method of multiplication like add and shift. mathematical explanation while discussing it for various
Further, the Verilog HDL coding of Urdhava Tiryakbhyam applications. Swamhiji constructed 16 sutras (formulae) and
Sutra for 8x8 bits multiplication, squaring circuit as 16 Upa sutras (sub formulae) after extensive research in
application and their FPGA implementation by Xilinx ISE Atharva Veda. The very word Veda has the derivational
Tool on Spartan3E kit have been done and output has been meaning i.e. The fountainhead and illimitable storehouse of
displayed on LEDs of Spartan 3E FPGA BOARD. all knowledge. Vedic mathematics is the name given to the
Index Terms:- FPGA, Architecture, Multiplication, Vedic ancient system of mathematics or, to be precise a unique
Mathematics, Vedic Multiplier (VM), Urdhava Tiryakbhyam technique of calculations based on simple rules and
Sutra principles with which many mathematical problems can be
Introduction (Heading 1) solved, be it arithmetic, algebra, geometry or trigonometry.
The system is based on 16 Vedic sutras or aphorisms,
Vedic mathematics is the name given to the ancient Indian which are actually word formulae describing natural ways
system of mathematics that was rediscovered in early of solving a whole range of mathematical problems. The
twentieth century. Vedic mathematics is mainly based on beauty of Vedic mathematics lies in the fact that it reduces
sixteen principles or word-formulae which are termed as the otherwise cumbersome-looking calculations in
Sutras. We discuss a possible application of Vedic conventional mathematics to a very simple one. This is so
mathematics to digital signal processing in the light of because the Vedic formulae are claimed to be based on the
application of Vedic multiplication algorithm to digital natural principles on which the human mind works. This
multipliers. A simple digital multiplier (referred henceforth as is a very interesting field and presents some effective
Vedic multiplier) architecture based on the Urdhava algorithms which can be applied to various branches of
Triyakbhyam (Vertically and Cross wise) Sutra is presented. engineering such as computing and digital signal
This Sutra was traditionally used in ancient India for the processing.
multiplication of two decimal numbers in relatively less time.
In this paper, after a gentle introduction of this Sutra, it
is applied to the binary number system to make it useful in the III. Structures of Multipliers
digital hardware. The hardware architecture of the Vedic A. Wallace Tree Multiplier
multiplier is presented and is shown to be very similar to that The Partial sum adders can also be rearranged in a tree like
of the popular array multiplier. It is also equally likely that
many such similar technical applications might come up from fashion, reducing both the critical path and the number of
the storehouse of knowledge, Veda, if investigated properly adder cells needed. The presented structure is called Wallace
[1-3]. The Vedic mathematical methods suggested by
Shankaracharya Sri. Bharti Krishna Tirtha through his book Tree multiplier and its implementation is in figure. The tree
offer efficient alternatives.
multiplier realizes substantial hardware savings for larger
II.VEDICMATHEMATICS (VM) multiplier. The Propagation delay is reduced as well. In fact it
can be shown that the propagation delay through the tree is

978-1-5386-1887-5/17/$31.00 2017 IEEE


equal to O (log3/2(N)) .While substantially faster than the carry discussed in this paper. Advantage of using this type of
multiplier is that as the number of bits increases, delay and
save structure for large multiplier words lengths, The Wallace area increases very slowly as compared to other multiplier
multiplier has the disadvantage of being vary irregular, which
complicates the task of an efficient layout design.

Figure.2 (a) Multiplication method of Urdhva-


Tiryakbhyam..
In the above figure-2 (a), 4-bit binary numbers
A0A1A2A3 and B0B1B2B3 are considered. The result
obtained is stored R0R1R2R3R4R5R6R7.In the first step
[A0, B0] is multiplied and the result obtained is stored in
R0. Similarly in second step [A0, B1] and [A1, B0] are
multiplied using a full adder and the sum is stored in R1
and carry is transferred to next step. Likewise the process
Figure1. Dot Diagram For an 8 by 8 Wallace Tree Multiplier continues till we get the result.
IV. Proposed Design Structure Of Vedic Multipliers
A dot diagram for 8by8 Wallace Multiplier is Fig1 four
deduction stages are required with matrix heights 6,4,3 and (i) 4-Bit Multipliers
2,64 AND Gates, 1OR gate, 38 3:2 compressor,15 2:2 The 44 Vedic multiplier in binary is implemented by using
compressors and 10-bit carry propagating Adder are required VHDL code. In order to reduce the delay of 44 multiplier, it
to form the 16 bit product[10] is designed by using nine full adders and a 4-bit special adder.

Figure.2 (b) 4*4 Multiplication method of Urdhva-


Tiryakbhyam.
(ii) 8-Bit Multiplier
The 88 Vedic multiplier in binary is implemented using
VHDL code. For reducing the delay of 88 multiplier, it is
Figure1 (a). Wallace Tree Multiplier Architecture implemented using four Vedic 4*4 blocks and a ripple carry
adder.
B. Urdhva-Tiryakbhyam : A Novel Vedic Sutra
The word Urdhva-Tiryakbhyam resources vertical and
crosswise multiplication. This multiplication formula is
pertinent to all cases of algorithm for N bit numbers Figure.3 8*8 Multiplication method of Urdhva-
.Conventionally this sutra is used for the multiplication of Tiryakbhyam
two numbers in decimal number system. The same concept
can be applicable to binary number system which is being
relatively slow, because of the long wires needed to propagate
carries from low order bits to high order bits. Probably the
single most important advance in improving the speed of
multipliers, pioneered by Wallace, is the use of carry save
adders (CSAs also known as full adders or 3-2 counters), to
add three or more numbers in a redundant and carry propagate

free manner. The method is illustrated in Figure 4 . By


applying the basic three input adder in a recursive manner, any
V. Wallace Tree Algorithm
number of partial products can be added and reduced to 2
For Wallace multipliers, the partial products are formed by n2
numbers without a carry propagate adder. A single carry
AND gates in the same manner as for Dadda multipliers. Next
propagate addition is only needed in the final step to reduce
the N rows of partial products are grouped together in sets of
the 2 numbers to a single, final product. The general method
three rows each. Any additional rows that are not a
can be applied to trees and linear arrays alike to improve the
member of a group of three are transferred to the next level
performance
without modification. In Wallace tree architecture, all the bits
of all of the partial products in each column are added
together by a set of compressors in parallel without
propagating any carries[11].Within each group of three
rows, 3:2 compressors are applied to the columns
containing two bits. Columns containing only a single bit
are transferred to the next level unchanged. The height of
the matrix in the jth reduction stage, wj is given by the
following recursive equations
W0 =N
Wj+1= 2.[wj/3]+ wj. mod3
As for the Dadda multipliers, when the matrix has been
reduced to a level with a height of two, a final adder is used
to perform the final addition which gives the product of
the multiplication. Wallace and Dadda multipliers each
require the same number of levels to perform the reduction
to a level with a height of two, however, the heights of
Figure 4: Reducing 3 operands to 2 using CSAs.
different levels can vary between the two methodologies.
Although Wallace and Dadda multipliers contain nearly
identical numbers of full adders, more of the Wallace full
adders are applied during the reduction of the matrix. This and
the additional half adders used in a Wallace reduction result in
the shorter final carry propagating adder.
The performance of the above schemes are limited by the time
to do a carry propagate addition. Carry propagate adds are
Figure.5 Design on a 5- bit Squarer
Figure.6 simulation 8*8 Multiplication method of Urdhva-
Tiryakbhyam.

Figure .5.1: Ripple Carry Adder [17]

As shown in Figure 4 the critical path usually begins at the


a(0 )or b(0) input proceeds through the carry-propagation
chain to the leftmost FA and terminates at the sk-1 output.
The critical path might begin at c0 and/or terminate at circuit

Figure 5.2: Critical paths in a k-bit RCA [9]

Figure.7 Device utilization for 8*8 Multiplication method of


V. Result and Discussion
Urdhva-Tiryakbhyam.
The proposed adder and 4X4 Vedic multiplier as well as
8x8 Multiplier and Squaring circuit is using Urdhva
Tiryakbhyam Sutra in binary are implemented using
Verilog HDL language and .The Vedic computing process is
compare with traditional and Wallace tree. The entire code is
completely synthesizable. The synthesis is done using Xilinx
Synthesis Tool (XST) available with Xilinx ISE13.2.The
below Figure shows the simulated result with waveforms.
. Figure.9 timing specification for 8*8 Multiplication
method of Urdhva-Tiryakbhyam Table Styles

Design Unit Multiplier Vedic Square Wallace


multiplier VM Tree
Multiplier
All
delay
are in
ns
2x2 6.895 5.895 5.776 6.67

4x4 14.89 12.671 5.934 13.67


8x8 32.617 29.617 14.934 31.7

Figure.8 8*8 Multiplication method of Urdhva-Tiryakbhyam.

Conclusion
From the result and discussion, it can be concluded that: The [4] [4]. Anju& V.K. Agrawal,FPGA Implementation of Low Power and
High Speed Vedic Multiplier using Vedic Mathematics, IOSR-JVSP ,
vedic multiplier, Multiplication method of Urdhva- e-ISSN: 2319 4200 ,2, Issue 5 (May. Jun. 2013), PP 51-57
Tiryakbhyam sutra is a effective method for faster [5] Booth, A.D., A signed binary multiplication technique, Quarterly
multiplication Process, which can be used in FPU design unit Journal of Mechanics and Applied Mathematics, vol. 4, pt. 2, pp. 236
module. The addition stage can be faster by deploying faster 240, 1951
addition process. As the cross steps are reduce to 50 percent [6] Mrs. M. Ramalatha, Prof. D. Sridharan, VLSI Based High Speed
the squaring circuit delay reduced to almost 50 percent of Karatsuba Multiplier for Cryptographic Applications Using Vedic
Mathematics,IJSCI,2007.
Vedic multiplication stages.
[7] Ciminiera and A. Valenzano, "Low cost serial multipliers for high
speed specialised processors," Computers and Digital Techniques,
IEEE Proc., vol. 135.5, 1988, pp. 259-265.
[1] [1]. AmritaNanda,Design and Implementation of Urdhva-Tiryakbhyam
Based Fast 88 Vedic Binary MultiplierIJERT, ISSN: 2278-0181,Vol. 3
Issue 3, March - 2014 [8]. P. Verma, K.K. Mehta, ''Implementation of an efficient multiplier
[2] [2]. Poornima M, Shivaraj Kumar Patil, Shivukumar, based on Vedic Mathematics using EDA Tool' ', International Journal of
ShridharKP,Sanjay H, Implementation of Multiplier Using Vedic Engineering and Advance Technology (IJEAT) ISSN : 1 (5), 2012, 2249-
Algorithm, JITEE, ISSN:-2278-3075, Volume-2, Issue-6,May-2013. 8958.
[3] I[3].Premananda B.S, Samarth S. Pai, Shashank B, ShashankS.Bhat,
Design and Implementation of 8-bit Vedic Multiplier, IJAREEIE,
Vol.2, Issue 12, ISSN: 2320-3765, Dec-2013.

Вам также может понравиться