SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1760
Design and Implementation of LNS based Approximate Multiplier using
Mitchell’s Algorithm and Operand Decomposition
G. Mohanapriya1, M. Nagiga Nasirin2, Mrs. J. Mary Suji Mol3
1,2Department of Electronics and Communication Engineering, Jeppiaar SRR Engineering College,
Tamil Nadu, India
3Assistant professor, Dept. of Electronics and Communication Engineering, Jeppiaar SRR Engineering College,
Tamil Nadu, India
-----------------------------------------------------------------------***--------------------------------------------------------------------
Abstract - In this project we study the approximate
logarithmic multiplier which is implemented via low power. It
is mainly used to improve the consumption of convolutional
neural networks for image classification. Themainadvantage
of logarithmic multiplier is intrinsic tolerance to error. It
converts multiplications into additions. Hence this paper
shows improvement in accuracy and efficient logarithmic
approach.
Key Words: Convolutional Neural Networks, Logarithm,
Antilogarithm
1. INTRODUCTION
Mitchell algorithm (MA) is used along with Operand
Decomposition (OD) in order to increase the accuracy and
decrease the error percentage. First the inputs are divided
into four using some basic logic operations. This is the main
reason for the increase in accuracy of the existing system
compared to Operand Decomposition. This methoddoes not
give the accurate output but gives the nearest result value
compared to Mitchell Algorithm alone. Hence itisverymuch
useful for applications like Convolutional Neural Networks
(CNN), embedded systems, Digital Image Processing (DIP),
Digital Signal Processing (DSP) and datacenters.
These applications needs low time delays and they
don’t need accurate exact values. So, Mitchell Algorithm is
used here but near accurate values are needed in some
applications of digital image processing. Hence Operand
Decomposition adds some accuracy tothesameapplications
by combining with Mitchell Algorithm. Mitchell Algorithm
and Mitchell Algorithm with Operand Decomposition
involves the same process but few steps may vary due to the
increase in accuracy. The comparison ofMAandMAwith OD
is clearly revealed in this project.
1.1 LOGARTHMIC NUMBER SYSTEM
Many applications like Digital Image Processing (DIP),
Digital Signal Processing requires multiplication for
calculations.Fixedpointnumbersystemsgivesmultiplication
but with circuit complexity. Logarithmic Number System
(LNS) will overcome this circuit complexity by introducing
some errors. These errors will makes the results less
accurate.
OperandDecompositionwillincreasetheaccuracylevelof
results by performing logical operations of the input before
performing the algorithm.
1.2 MITCHELL ALGORITHM
Mitchell algorithm is done by taking logarithmforthetwo
binary inputs, adding them and finally taking antilogarithm
for the added result. Thus, the multiplication is converted to
addition.
2. DESIGN AND IMPLEMENTATION
Fig -1: OD block
DESCRIPTION-Two inputs with n numbers of bits are taken
and directed towards OD block for and the two inputs are
divided into four for further process.
LOGARITHM-Here multiplication is the main process.
Logarithm is used for convertingmultiplicationintoaddition
so the hardware complexity is being reduced.
ADDER-Adder is used to add the input values. Two types of
adder is used here, namely half adder and full adder.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1761
ZERO DETECTOR-Zero detector is used to detect whether
the inputs are zero.
ANTILOGARITHM-After applying MA the result is
concatenated with 1 and number of zeros isappended based
on MSB position.
PROCESS
Two binary inputs X and Y are given in binaryform. Xand
Y are divided into A, B, C, and D. Taking MA separately for A,
B and C, D. LOD detects the leading bit position.Iftheleading
‘1’ is in 7th position the inputs are directly entered to the
barrel shifter else ENC and NOT gate will decide the shifting
count. L-Barr shift will then do the left shifting operation.
Adder will do the further adding operation of the inputs. Is
Zero block is used to check the two input values. So, if any
one of the input is zero it will directly give the result as zero
instead of doing all the operation. Here multiplication is
converted as addition. The results are added and
concatenated with 1 and number of zeros isappended based
on MSB position.
PROCEDURE
Step1: X, Y: n-bit binary multiplicands, OP=0:2n-bits
approximate product.
Step 2: Calculate A, B, C, D value using X and Y.
Step 3: Calculate A using the equation A=X|Y.
Step 4: Calculate B using the equation B=X&Y.
Step 5: Calculate C using the equation C= (~X) &Y.
Step 6: Calculate D using the equation D=X& (~Y).
Step 7: To take MA for A and B.
 A, B: n-bit binary multiplicands, OP1= 0:
2n-bits approximate product.
 Determine K1, leading ‘1’ position of 1st
number, A
 Determine K2, leading ‘1’ position of 1st
number, B
 Evaluate X1 by shifting A by N-K1 bits
towards left
 Evaluate X2 by shifting B by N-K2 bits
towards left
 Calculate K12=K1+K2
 Calculate X12=X1+X2
 Decode K12 and insert ‘1’ in that position
of OP1
 Append X12 immediately after this one in
OP1
 A.B= OP1
Step 8: To take MA for C and D.
 C, D: n-bit binary multiplicands, OP2= 0:
2n-bits approximate product.
 Determine K1, leading ‘1’ position of 1st
number, C
 Determine K2, leading ‘1’ position of 1st
number, D
 Evaluate X1 by shifting C by N-K1 bits
towards left
 Evaluate X2 by shifting D by N-K2 bits
towards left
 Calculate K12=K1+K2
 Calculate X12=X1+X2
 Decode K12 and insert ‘1’ in that position
of OP2
 Append X12 immediately after this one in
OP2
 C.D= OP2
Step 9: Adding OP1 and OP2 we get OP
 OP=OP1+OP2.
Fig -2: Flowchart
ERROR PERCENTAGE-It can be obtained by the following
formula
Error %= ((Original value-Obtained value)/Original
value)*100
EXAMPLE
Step 1: Inputs
X=10001100(140), Y=00100101(37).
Step 2: Calculate A, B, C, D value using X and Y.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1762
Step 3: A=X|Y
A= (10001100) | (00100101)
A=10101101
Step 4: B=X&Y
B= (10001100) & (00100101)
B=00000100
Step 5: C= (~X) &Y
C= (01110011) & (00100101)
C=00100001
Step 6: D=X& (~Y)
D= (10001100) & (11011010)
D=10001000
Step 7: Take MA for A and B
 Inputs
A=10101101,
B=00000100.
 MSB position of ‘1’ for K1 in binary form
MSB of A is ‘7’
K1=111
 MSB position of ‘1’ for K2 in binary form
MSB of B is ‘2’
K2=010
 After left shifting A
MSB of A is 7. So left shift by 0 (~ (K1))
X1=0101101
 After left shifting B
MSB of B is 2. So left shift by 5 (~ (K2))
X2=0000000.
 Adding K1 and K2
K12=K1+K2
K12=111+010=1001.
 Adding X1 and X2
X12=X1+X2
X12=0101101+0000000
X12=0101101.
 Concatenate 1 an X12
OP1= (1, X12)
OP1=1010110100
Step 8: Take MA for C and D
 Inputs
C=00100001,
D=10001000.
 MSB position of ‘1’ for K1in binary form
MSB of C is ‘5’
K1=101
 MSB position of ‘1’ for K2in binary form
MSB of D is ‘7’
K2=111
 After left shifting C
MSB of C is 5. So left shift by 2 (~ (K1))
X1=00001
 After left shifting D
MSB of D is 7. So left shift by 0 (~ (K2))
X2=00010
 Adding K1 and K2
K12=K1+K2
K12=101+111=1001.
 Adding X1 and X2
X12=X1+X2
X12=00001+00010
X12=00011
 Concatenate 1 an X12
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1763
OP2= (1, X12)
OP2=1000110000000
Step 9: Adding OP1 and OP2
OP=OP1+OP2
OP=0000001010110100+001000110000000
OP=0010110000110100(5172)
Error %= ((5180-5172)/5180)*100
Error %= 0.15
Table-1: Comparison between Mitchell Algorithm and
Operand Decomposition
X Y MA ERROR% OD ERROR%
140 37 1.15 0.15
117 157 5.92 1.57
203 183 10.41 0.76
The above table shows the comparison of errors between
Mitchell Algorithm and Operand Decomposition. From this
we came to know the efficiency of Operand Decomposition.
SOFTWARE REQUIREMENTS
Synthesis tool- Xinlinx ISE 14.5.
Verification tool-ModelSim 6.4c.
SNAPSHOTS
Picture tells everything. The below snapshots are very
much helpful for us in understanding about this paper. The
snapshots of output waveform, Look Up Tables (LUT) and
blocks are listed below.
Fig -3: Output waveform
Fig -4: Block diagram
This output and the block diagram clearly shows the two
inputs and the output.
The above diagram shows the several blocks insidethemain
block which are responsible several operations.
Fig-5 LUT
APPLICATIONS
 Digital Image Processing.
 Digital Signal Processing.
 Embedded systems and data centres.
3. CONCLUSION
From this we canclearlyunderstandaboutmultipliers. By
reading this report it is also easy to analyze and choose the
correct method for applications. If we need speedwithsome
accuracy Mitchell Algorithm along with Operand
Decomposition is the right technique to choose.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1764
REFERENCES
[1] Z. Babic’, A. Avramovic’, P. Bulic’ (2010) An iterative
logarithmic multiplier.
[2] DurgeshNandan, JitendraKanungo, Anurag Mahajan
(2017) An efficient VLSI architecture for Iterative
Logarithmic Multiplier.
[3] John n. Mitchell, jr. t associate, ire (1962) Computer
Multiplication and Division Using Binary Logarithms.
[4] UrosLoric, PatricioBulic (2012) Applicability of
approximate multipliers in hardware neural networks.
[5] ZdenkaBabic,AleksejAvramovic,PatricioBulic (2008)An
iterative Mitchell’s Algorithm Based Multiplier.

More Related Content

What's hot (20)

PPT
Digital design chap 1
Mohammad Bappy
 
PPTX
Basic operators in matlab
rishiteta
 
PDF
Design of 32-bit Floating Point Unit for Advanced Processors
IJERA Editor
 
PPTX
Computer arithmetic
Balakrishna Chowdary
 
DOC
Dpsd lecture-notes
AVC College of Engineering
 
PPTX
Computer Arithmetic
Kamal Acharya
 
PPTX
Floating point arithmetic operations (1)
cs19club
 
PDF
8. operators
Way2itech
 
PDF
Digit Factorial Chains .(Euler Problem -74) (Matlab Programming Solution)
Omkar Rane
 
PPT
Ch1 2
rohity7
 
PPTX
Csci101 lect09 vectorized_code
Elsayed Hemayed
 
PPSX
2-bit comparator
إسلام عادل
 
PPTX
Matlab operators
Aswin Pv
 
PDF
Digital 4-bit Comprator
Soudip Sinha Roy
 
PPTX
Microoperations
Rakesh Pillai
 
PPTX
Python PCEP Logic Bit Operations
IHTMINSTITUTE
 
PPT
Digital logic circuit
Ahmedabad Institute of technology
 
PDF
MITCOE 2011-12 conm-submission
Ashutosh Katti
 
PPTX
Logical micro-operations
VATSAL TRIVEDI
 
PPTX
Arithmetic micro operations
Nitesh Bichwani
 
Digital design chap 1
Mohammad Bappy
 
Basic operators in matlab
rishiteta
 
Design of 32-bit Floating Point Unit for Advanced Processors
IJERA Editor
 
Computer arithmetic
Balakrishna Chowdary
 
Dpsd lecture-notes
AVC College of Engineering
 
Computer Arithmetic
Kamal Acharya
 
Floating point arithmetic operations (1)
cs19club
 
8. operators
Way2itech
 
Digit Factorial Chains .(Euler Problem -74) (Matlab Programming Solution)
Omkar Rane
 
Ch1 2
rohity7
 
Csci101 lect09 vectorized_code
Elsayed Hemayed
 
2-bit comparator
إسلام عادل
 
Matlab operators
Aswin Pv
 
Digital 4-bit Comprator
Soudip Sinha Roy
 
Microoperations
Rakesh Pillai
 
Python PCEP Logic Bit Operations
IHTMINSTITUTE
 
Digital logic circuit
Ahmedabad Institute of technology
 
MITCOE 2011-12 conm-submission
Ashutosh Katti
 
Logical micro-operations
VATSAL TRIVEDI
 
Arithmetic micro operations
Nitesh Bichwani
 

Similar to IRJET-Design and Implementation of LNS based Approximate Multiplier using Mitchell’s Algorithm and Operand Decomposition (20)

PPT
chapter4-Arithmetic_new.ppt having sums og
GauravDaware2
 
PPTX
Multiplier architectures_computer architecture.pptx
AdityaSalunkhe14
 
PDF
mrecadvancedvlsi subject sub-unit-4-ppt.pdf
BEVARAVASUDEVAAP1813
 
PPT
Chapter 4 combinational_logic
Ch Farhan
 
PDF
COMPUTER ORGANIZATION NOTES Unit 6
Dr.MAYA NAYAK
 
PDF
F044033742
IJERA Editor
 
PPTX
1.COMPUTER ARITHMETIC which is related to coa.pptx
n200886
 
PDF
Week-6-Lecture-6-Arithmetic-processing-unit-implementation.pdf
QuangHiu19
 
PDF
Fpga based efficient multiplier for image processing applications using recur...
VLSICS Design
 
PDF
This is abouts are you doing the same time who is the best person to be safe and
codekeliyehai
 
PPTX
UNIT- II COA Design and Analysis of Algorithms.pptx
AvsecCse
 
PDF
Logic microoperations
Nitesh Singh
 
PDF
IRJET- FPGA Implementation of Low Power Configurable Adder for Approximate Co...
IRJET Journal
 
PPTX
Lec20
Zain Ul Abedeen
 
PDF
476 479
Editor IJARCET
 
PDF
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
SSE_AndyLi
 
PPTX
Binu Siva Singh Final.pptx
divisatish
 
PPT
COA-unit-2-Arithmetic.ppt
Ruhul Amin
 
PDF
Arithmetic Unit Addition Subtraction Multiplication and Division
RNShukla7
 
PPT
Addition and subtraction with signed magnitude data (mano
cs19club
 
chapter4-Arithmetic_new.ppt having sums og
GauravDaware2
 
Multiplier architectures_computer architecture.pptx
AdityaSalunkhe14
 
mrecadvancedvlsi subject sub-unit-4-ppt.pdf
BEVARAVASUDEVAAP1813
 
Chapter 4 combinational_logic
Ch Farhan
 
COMPUTER ORGANIZATION NOTES Unit 6
Dr.MAYA NAYAK
 
F044033742
IJERA Editor
 
1.COMPUTER ARITHMETIC which is related to coa.pptx
n200886
 
Week-6-Lecture-6-Arithmetic-processing-unit-implementation.pdf
QuangHiu19
 
Fpga based efficient multiplier for image processing applications using recur...
VLSICS Design
 
This is abouts are you doing the same time who is the best person to be safe and
codekeliyehai
 
UNIT- II COA Design and Analysis of Algorithms.pptx
AvsecCse
 
Logic microoperations
Nitesh Singh
 
IRJET- FPGA Implementation of Low Power Configurable Adder for Approximate Co...
IRJET Journal
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
SSE_AndyLi
 
Binu Siva Singh Final.pptx
divisatish
 
COA-unit-2-Arithmetic.ppt
Ruhul Amin
 
Arithmetic Unit Addition Subtraction Multiplication and Division
RNShukla7
 
Addition and subtraction with signed magnitude data (mano
cs19club
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PPTX
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
PDF
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
Digital water marking system project report
Kamal Acharya
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Digital water marking system project report
Kamal Acharya
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 

IRJET-Design and Implementation of LNS based Approximate Multiplier using Mitchell’s Algorithm and Operand Decomposition

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1760 Design and Implementation of LNS based Approximate Multiplier using Mitchell’s Algorithm and Operand Decomposition G. Mohanapriya1, M. Nagiga Nasirin2, Mrs. J. Mary Suji Mol3 1,2Department of Electronics and Communication Engineering, Jeppiaar SRR Engineering College, Tamil Nadu, India 3Assistant professor, Dept. of Electronics and Communication Engineering, Jeppiaar SRR Engineering College, Tamil Nadu, India -----------------------------------------------------------------------***-------------------------------------------------------------------- Abstract - In this project we study the approximate logarithmic multiplier which is implemented via low power. It is mainly used to improve the consumption of convolutional neural networks for image classification. Themainadvantage of logarithmic multiplier is intrinsic tolerance to error. It converts multiplications into additions. Hence this paper shows improvement in accuracy and efficient logarithmic approach. Key Words: Convolutional Neural Networks, Logarithm, Antilogarithm 1. INTRODUCTION Mitchell algorithm (MA) is used along with Operand Decomposition (OD) in order to increase the accuracy and decrease the error percentage. First the inputs are divided into four using some basic logic operations. This is the main reason for the increase in accuracy of the existing system compared to Operand Decomposition. This methoddoes not give the accurate output but gives the nearest result value compared to Mitchell Algorithm alone. Hence itisverymuch useful for applications like Convolutional Neural Networks (CNN), embedded systems, Digital Image Processing (DIP), Digital Signal Processing (DSP) and datacenters. These applications needs low time delays and they don’t need accurate exact values. So, Mitchell Algorithm is used here but near accurate values are needed in some applications of digital image processing. Hence Operand Decomposition adds some accuracy tothesameapplications by combining with Mitchell Algorithm. Mitchell Algorithm and Mitchell Algorithm with Operand Decomposition involves the same process but few steps may vary due to the increase in accuracy. The comparison ofMAandMAwith OD is clearly revealed in this project. 1.1 LOGARTHMIC NUMBER SYSTEM Many applications like Digital Image Processing (DIP), Digital Signal Processing requires multiplication for calculations.Fixedpointnumbersystemsgivesmultiplication but with circuit complexity. Logarithmic Number System (LNS) will overcome this circuit complexity by introducing some errors. These errors will makes the results less accurate. OperandDecompositionwillincreasetheaccuracylevelof results by performing logical operations of the input before performing the algorithm. 1.2 MITCHELL ALGORITHM Mitchell algorithm is done by taking logarithmforthetwo binary inputs, adding them and finally taking antilogarithm for the added result. Thus, the multiplication is converted to addition. 2. DESIGN AND IMPLEMENTATION Fig -1: OD block DESCRIPTION-Two inputs with n numbers of bits are taken and directed towards OD block for and the two inputs are divided into four for further process. LOGARITHM-Here multiplication is the main process. Logarithm is used for convertingmultiplicationintoaddition so the hardware complexity is being reduced. ADDER-Adder is used to add the input values. Two types of adder is used here, namely half adder and full adder.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1761 ZERO DETECTOR-Zero detector is used to detect whether the inputs are zero. ANTILOGARITHM-After applying MA the result is concatenated with 1 and number of zeros isappended based on MSB position. PROCESS Two binary inputs X and Y are given in binaryform. Xand Y are divided into A, B, C, and D. Taking MA separately for A, B and C, D. LOD detects the leading bit position.Iftheleading ‘1’ is in 7th position the inputs are directly entered to the barrel shifter else ENC and NOT gate will decide the shifting count. L-Barr shift will then do the left shifting operation. Adder will do the further adding operation of the inputs. Is Zero block is used to check the two input values. So, if any one of the input is zero it will directly give the result as zero instead of doing all the operation. Here multiplication is converted as addition. The results are added and concatenated with 1 and number of zeros isappended based on MSB position. PROCEDURE Step1: X, Y: n-bit binary multiplicands, OP=0:2n-bits approximate product. Step 2: Calculate A, B, C, D value using X and Y. Step 3: Calculate A using the equation A=X|Y. Step 4: Calculate B using the equation B=X&Y. Step 5: Calculate C using the equation C= (~X) &Y. Step 6: Calculate D using the equation D=X& (~Y). Step 7: To take MA for A and B.  A, B: n-bit binary multiplicands, OP1= 0: 2n-bits approximate product.  Determine K1, leading ‘1’ position of 1st number, A  Determine K2, leading ‘1’ position of 1st number, B  Evaluate X1 by shifting A by N-K1 bits towards left  Evaluate X2 by shifting B by N-K2 bits towards left  Calculate K12=K1+K2  Calculate X12=X1+X2  Decode K12 and insert ‘1’ in that position of OP1  Append X12 immediately after this one in OP1  A.B= OP1 Step 8: To take MA for C and D.  C, D: n-bit binary multiplicands, OP2= 0: 2n-bits approximate product.  Determine K1, leading ‘1’ position of 1st number, C  Determine K2, leading ‘1’ position of 1st number, D  Evaluate X1 by shifting C by N-K1 bits towards left  Evaluate X2 by shifting D by N-K2 bits towards left  Calculate K12=K1+K2  Calculate X12=X1+X2  Decode K12 and insert ‘1’ in that position of OP2  Append X12 immediately after this one in OP2  C.D= OP2 Step 9: Adding OP1 and OP2 we get OP  OP=OP1+OP2. Fig -2: Flowchart ERROR PERCENTAGE-It can be obtained by the following formula Error %= ((Original value-Obtained value)/Original value)*100 EXAMPLE Step 1: Inputs X=10001100(140), Y=00100101(37). Step 2: Calculate A, B, C, D value using X and Y.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1762 Step 3: A=X|Y A= (10001100) | (00100101) A=10101101 Step 4: B=X&Y B= (10001100) & (00100101) B=00000100 Step 5: C= (~X) &Y C= (01110011) & (00100101) C=00100001 Step 6: D=X& (~Y) D= (10001100) & (11011010) D=10001000 Step 7: Take MA for A and B  Inputs A=10101101, B=00000100.  MSB position of ‘1’ for K1 in binary form MSB of A is ‘7’ K1=111  MSB position of ‘1’ for K2 in binary form MSB of B is ‘2’ K2=010  After left shifting A MSB of A is 7. So left shift by 0 (~ (K1)) X1=0101101  After left shifting B MSB of B is 2. So left shift by 5 (~ (K2)) X2=0000000.  Adding K1 and K2 K12=K1+K2 K12=111+010=1001.  Adding X1 and X2 X12=X1+X2 X12=0101101+0000000 X12=0101101.  Concatenate 1 an X12 OP1= (1, X12) OP1=1010110100 Step 8: Take MA for C and D  Inputs C=00100001, D=10001000.  MSB position of ‘1’ for K1in binary form MSB of C is ‘5’ K1=101  MSB position of ‘1’ for K2in binary form MSB of D is ‘7’ K2=111  After left shifting C MSB of C is 5. So left shift by 2 (~ (K1)) X1=00001  After left shifting D MSB of D is 7. So left shift by 0 (~ (K2)) X2=00010  Adding K1 and K2 K12=K1+K2 K12=101+111=1001.  Adding X1 and X2 X12=X1+X2 X12=00001+00010 X12=00011  Concatenate 1 an X12
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1763 OP2= (1, X12) OP2=1000110000000 Step 9: Adding OP1 and OP2 OP=OP1+OP2 OP=0000001010110100+001000110000000 OP=0010110000110100(5172) Error %= ((5180-5172)/5180)*100 Error %= 0.15 Table-1: Comparison between Mitchell Algorithm and Operand Decomposition X Y MA ERROR% OD ERROR% 140 37 1.15 0.15 117 157 5.92 1.57 203 183 10.41 0.76 The above table shows the comparison of errors between Mitchell Algorithm and Operand Decomposition. From this we came to know the efficiency of Operand Decomposition. SOFTWARE REQUIREMENTS Synthesis tool- Xinlinx ISE 14.5. Verification tool-ModelSim 6.4c. SNAPSHOTS Picture tells everything. The below snapshots are very much helpful for us in understanding about this paper. The snapshots of output waveform, Look Up Tables (LUT) and blocks are listed below. Fig -3: Output waveform Fig -4: Block diagram This output and the block diagram clearly shows the two inputs and the output. The above diagram shows the several blocks insidethemain block which are responsible several operations. Fig-5 LUT APPLICATIONS  Digital Image Processing.  Digital Signal Processing.  Embedded systems and data centres. 3. CONCLUSION From this we canclearlyunderstandaboutmultipliers. By reading this report it is also easy to analyze and choose the correct method for applications. If we need speedwithsome accuracy Mitchell Algorithm along with Operand Decomposition is the right technique to choose.
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 03 | Mar 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1764 REFERENCES [1] Z. Babic’, A. Avramovic’, P. Bulic’ (2010) An iterative logarithmic multiplier. [2] DurgeshNandan, JitendraKanungo, Anurag Mahajan (2017) An efficient VLSI architecture for Iterative Logarithmic Multiplier. [3] John n. Mitchell, jr. t associate, ire (1962) Computer Multiplication and Division Using Binary Logarithms. [4] UrosLoric, PatricioBulic (2012) Applicability of approximate multipliers in hardware neural networks. [5] ZdenkaBabic,AleksejAvramovic,PatricioBulic (2008)An iterative Mitchell’s Algorithm Based Multiplier.