SlideShare a Scribd company logo
1 of 6
Download to read offline
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2458
Single Precision Floating Point Arithmetic using Vhdl Coding
Som Sharma1, Ankit Trivedi2
1Student, Department of Electrical Engineering, Axis Institute of Technology&Management, Kanpur,
UttarPradesh, India
2Asst. Prof., Department of Electronic Engineering, Axis Institute of Technology&Management, Kanpur,
UttarPradesh, India
---------------------------------------------------------------------------***---------------------------------------------------------------------------
Abstract: FPGA stands for Field Programmable Gate Array
are semiconductor devices that are based on a matrix
structure of configurable logic blocks (CLBs) connected via
programmable interconnects. FPGAcanbereprogrammedto
desired application or functionality requirementsafter
manufacturing. Floating Point Arithmetic (FPA) is
arithmetic using formulaicrepresentationof realnumbers as
an approximation soas to support a trade-off between range
and precision. For this reason, Floating point computation is
often found in systemsthatincludesverysmallandverylarge
real numbers, and can done fast processing,The IEEEsetsan
Standard named as IEEE 754 for floating point in single
precision and double precision in 1985.Xilinx ISE 14.2
software, weareusingforcreatingFPGAprogrammingbythe
help of VHDL(Very High Speed Integrated Circuit Hardware
Description Language).
KEYWORDS: ASIC, FPGA, IEEE754, VHDL, Xilinx ISE.
1. INTRODUCTION:-
Floating point operation is the most frequent operation and
that is almost used for half of the scientific operation,
computer, and technology. It is a most fundamental
component of math coprocessor, DSP processors, and
embedded arithmetic processors, based. Floating-point
operation is a costly operation in terms of hardware and
timing as it needs different types of building blocks with
variable latency. In floating point operation require
implementations, latency is the overall performance
bottleneck. A major of work has been implemented to
improve the overall latency of floating point operation.
Various algorithms and design approaches have been
developed by the Very Large Scale Integrated (VLSI) circuit
community. Field Programmable Gate Array is made up of
silicon chips with unconnected logic blocks and these logic
blocks can be defined and redefined by user at any time.
Field Programmable Gate Array is increasingly being used
for applications which have high numerical stability and
accuracy. With less time to market and low cost, Field
Programmable Gate Array is becoming a more attractive
solution comparedtoApplicationSpecific IntegratedCircuits
(ASIC). In now time Field Programmable Gate Array are
mostly used in low volume applications that cannot afford
silicon fabricationordesigns whichrequirefrequentchanges
or upgrades in system. Devices afford with millions of gates
and frequencies reaching up to 300 MHz are becomingmore
suitable forfloating-point arithmeticreliantapplicationsand
data processing units. These components require high
numerical stability and accuracy and hence are floating-
point
1.1 Related Work:-
One of the first competitive floating-point operation
implementation is done by L. Louca, T. Cook, and W. Johnson
[8] in 1996. Single precision floating-point addition was
implemented for Altera FPGA device. The primary challenge
was to fit the design in the chip area while having reasonable
timing convergence. The main motive of their
implementation was to achieve IEEE standard accuracy with
reasonable performance consideration. This is claimed to be
the first IEEE single precision floating-point adder
implementation onaFPGA,beforethis, implementation with
only 18-bit word length was present [8].The majority of the
algorithms execute in FPGAs used to be fixed point. Floating
point operations are useful for calculation involving large
dynamic range, but they require significantlymoreresources
than integer operation With the present trend in system
supplies and existing FPGAs,floating-point implementations
are becoming more common and designers are increasingly
taking advantage of FPGAs as a platform for floating-point
implementations. The rapid advance in Field Programmable
Gate Array technology makes such devices ever more
attractive for implementing floating-point arithmetic.
Evaluate to Application Specific Integrated Circuits, FPGAs
offer compact developmenttimeandcosts.additionally,their
flexibility enables field upgrade and adjustment.
The IEEE 754 single precision format[4] is as shownbelow.It
divides in three parts are as follows:-
sign: 1 bit broad and used to denote the sign of the number i.e.
0 point to positive number and 1 represent negative number.
Exponent: 8 bit broad and signed exponent in excess 127
representation.This fieldrepresentsbothpositiveandnegative
exponents.
Mantissa: 23 bit wide and fractional component.
S 8 bit Exponent-E 23bit fraction –F
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2459
The single- precisionfloating-pointnumberiscalculatedas(-1)
S × 1.F × 2(E-127
1.2 Proposed Algorithm:-
Description of the Proposed Algorithm:
Fig 1 shows the flowchart of standard floating point adder
algorithm. Let s1; e1; f1 and s2; e2; f2 be the signs,
exponents, and significant of two input floating –point
operands, N1 and N2, respectively. A description of the
standard floating point adder algorithm is as follows.
Fig. 1: Flowchart of standard floating point adder
Algorithm
1. The two operands, N1 and N2 are read in and
compared for demoralization and infinity. If
numbers are demoralized, set the implicit bit to
0 otherwise it is set to 1. At this instant, the
fraction part is extended to 24 bits.
2. The two exponents, e1 and e2 are compared
using 8-bit subtraction. If e1 is less than e2, N1
and N2 are swapped i.e. previous f2 will now be
referred to as f1 and vice versa.
3. The minor fraction, f2 is shifted right by the
absolute difference result ofthe two exponents’
subtraction. Now both the numbers have the
sameexponent.
4. The 2 signs are used to see whether the
operation is a subtraction (-) or anaddition (+).
5. If the process is a subtraction, the bits of the f2
areinverted.
6. At this instant the two fractions areaddedusing
a 2’s complement adder.
7. If the outcomesum is a negative number, it has to
beinverted and a 1 has to beadded totheresult.
8. The outcome is then passed through a leading
one detector orleading zero counter. This is the
first step in the normalization step.
9. Using the outcome from the leading one
detector, the result is then shifted left to be
normalized. In some cases, 1-bit right shift is
needed.
10. The outcome is then rounded towards nearest
even, the default roundingmode.
11. If the take out from the rounding adder is 1, the
result is left shifted byone.
12. Using the outcome from the leading one
detector, the exponent is adjusted. The sign is
calculate and after overflow and underflow
check, the result isregistered.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2460
1.3 Block Diagram Of Single Precision Floating Point
Adder:-
Fig 2: Block Diagram of Single Precision floating-point
Adder
Fig 2 shows the block diagram of single precision floating
point adder.Num_A , Num_B ,CLK ,GND and VCC are inputsof
the block diagram of single precision floating point adder.
Output SUM is calculated by performing addition of Num_A
and Num_B using floating point addition algorithm shown in
Fig 1. It illustrate the main hardware modules necessary for
floating point addition. The different modules are Exponent
Difference Module, Swap Multiplexer, Shifter, Barrel Shifter ,
FractionComponentEffectOperation,2’sComplementAdder
, Inverter , Normalizer , Leading One Detector , Left Shift
Barrel Shifter, Exponent Sum and Mantissa Sum.
Exp_a and Exp_b are the exponents of inputs Num_A and
Num_B resp. Exp_a and Exp_b can be positive or negative
numbers. The output shift_amt is given to the shifter and
barrel shifter block forfurthercalculation.Sign_disgiventwo
the Swap Mux. Swap_Mux assigns greater Mantisa to
Mantisa_grt and Lesser value of Mantisa to Mantisa_less and
greater exponent is calculated and assigned to Exp_grt.
Exp_grt output isgiventothenormalizerblock,Mantisa_grtis
given to the Fraction Component Effect Operation Block and
Mantisa_less is given to the Barrel shifter Block respectively.
The shifter is used to shift the significant of the smaller
operand by the absolute exponent difference. Shifter is used
to shift the data bits. The Output Shift_amt of Exponent
Difference Block is given as input to the Shifter block which
gives output shifted_amtisfurthergiventotheinverterblock.
The inverter is used to invert the data bits of shifted amount.
The normalizer block gives us normalized result. Later than
the addition, the next step is to normalize the result. The
primary step is to identify the leading or first one in the
result. This outcome is used to shift left the adder result by
the number of zeros in front of the leading one. In order to
perform this operation, particular hardware, called Leading
One Detector (LOD) or Leading Zero Counter (LZC), has tobe
implemented. Exponent sum and mantissa sum blocks are
used to calculate the exponent and mantissa of output SUM
and sign bit SOP is initially considered as 1.
1.4 Floating point Multiplication:-
The figure 3 shows the flowchart of multiplicationalgorithm
of multiplication is demonstrated by flowchart. In1 and in2
are two numbers sign1, expo1, S1 and sign2, expo2, S2 are
sign bit, exponent and significant of in1 and in respectively.
Steps for multiplication are as follows.
1:- calculate sign bit. sign_f= sign1 XOR sign2, sign_fissignof
final result.
2:- add the exponents and subtract 127 to make adjustment
in exponent (expo1+127+expo2+127)-127.
3:- Multiply the significant. S=S1*S2.
4:- check for overflow and underflow and special flag. When
the value of biased exponent is less than 1 it shows
occurrence of underflow, if exponent is greater than 254
then it shows overflow of floating point operation.
5:- Take the first 23 bits of ‘S’ and from left side and discard
remaining bits.
6:- Arrange the results in 32 bit format.1sign bitfollowedby
eight bits exponent followed by 23 bits
Mantissa/significand.
Calculation of sign bit:- when both number have same sign
the sign of result is positive else sign will be negativethesign
in calculated by XORing both sign bits of inputs.
The multiplication result is 48 bits. If 47th bit is ‘1’then right
shifts the result and adds ‘1’ in exponent to normalize the
product. 46th to 23th bits are actual significant product.
Exponent addition is done by unsigned 8 bit adder and to
bias properly subtract 127 from the addition result for that
purpose unsigned 8 bit subtractor is used. Inanyofthecases
either addition of exponent in the beginning or while
adjusting result the exponent must in the range 1 to 254.
When overflow occur the result of multiplication goes to
±Infinity (+ or – sign is determined by the sign of two input
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2461
numbers). When underflow occur it makes underflow flag
high and the result goes to ±0 (+ or – signedisdeterminedby
the sign of two input numbers).
FIG 3:-Flowchart of standard floating point multiplication
1.5 Floating point division:-
The figure 4 shows the flowchart of division, algorithm for
division is explained through this flowchart. In1 and in2 are
two numbers sign1, expo1, S1 and sign2, expo2, S2 are sign
bit, exponent and significant of in1 and in2 respectively. It is
assumed that in1 andin2 are in normalized form.
Steps for floating point division are as follows.
1:- calculate sign bit. sign_f= sign1 XOR sign2, sign_fissignof
final result.
2:- divide the significand S1 byS2fordivisionbinarydivision
method is used.
• Expand divisor and dividend to double of their size
- Expanded divisor = divisor (24 bits MSB) zeroes (24 bits
LSB)
- Expanded dividend = zeroes (24 bits MSB) dividend (32
bits, LSB)
• For each step, determine if divisor is smaller than dividend
- Subtract divisor from dividend look at sign
- If result is greater than or equal to‘0’:dividend/divisor>=1,
mark quotient as “1”.
- If result is negative: divisor larger than dividend; make in
quotient as “0”
• Shift quotient left and divisor right to cover next power of
two.
3:- Subtract the expo2 from expo1.
4:- check for overflow and underflow flags.
5: assemble the result in 32 bits format
FIG 4:-Flowchart of standard floating point division
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2462
2. EXPERIMENTAL RESULTS:-
Simulation result of addition of two 32 bit floating point
number. The round mode is 00 and the operation mode
is 000
Simulation result of subtraction of two 32 bit floating
point number. The round mode is 10 and the operation
mode is 001
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2463
Simulation result of multiplication of two 32 bit floating
point number. The round mode is 01 and the operation
mode is 010
Simulation result of division of two 32 bit floating point
number. The round mode is 00 and the operation mode
is 011
3. Conclusion and Future Work:-
This FPU has action as addition, subtraction
multiplication, and division. Addition, subtraction and
division have been implemented by conventional
technique. The design of FPU has done using VHDL on
Xilinx VIVADO 2014.4 and has implemented on Virtex-7
xc7v585tffg1157-3.We have proved that this FPU have
requisite less memory but still we have a huge amount of
work that can be set on this FPU to further make up the
efficiency of the FPU by using other Vedic sutra.
A single precision floating-point adder is implemented in
this paper. The main contribution of our work is to
implement and analyze floating-point addition algorithms
and hardware modules were implemented using VHDL
and is Synthesized using Xilinx ISE14.2 Suite. The results
are obtained using ISim (VHDL/Verilog) Simulator. In
order to expand our paper further some of the works can
be proposed in order to accommodate any exponent and
mantissa length. This will gives more versatility while
choosing the design criteria. The design can also be
pipelined further for different number of pipeline stages
to give even more adaptability and flexibility.
4. References:-
1) Ronald Vincent, Ms.Anju.S.L “Decimal Floating
Point Format Based on Commonly Used Precision
For Embedded System Applications.” International
Conference on Microelectronics, Communication
and Renewable Energy (ICMiCR-2013).
2) Somsubhra Ghosh, Prarthana Bhattacharyya and
Arka Dutta “FPGA Based Implementation of a
Double Precision IEEE Floating-Point Adder”,
Proceedings of7'h International Conference on
Intelligent Systems and Control (ISCO 2013).
3) Maarten Boersma, Michael Kr¨oner, Christophe
Layer, Petra Leber, Silvia M. M¨uller, KerstinSchelm
“The POWER7 Binary Floating- Point Unit”, 2011
20th IEEE Symposium on Computer Arithmetic.
4) Reshma Cherian, Nisha Thomas, Y. Shyju
“Implementation of Binary to Floating Point
Converter using HDL”P-461-P464.
5) Anand Mehta, C. B. Bidhul, Sajeevan Joseph,
Jayakrishnan. P “ Implementation of Single
Precision Floating Point Multiplier using Karatsuba
Algorithm”,2013International ConferenceonGreen
Computing, Communication and Conservation of
Energy (ICGCE).

More Related Content

What's hot

Design and implementation of low power
Design and implementation of low powerDesign and implementation of low power
Design and implementation of low power
Surendra Bommavarapu
 

What's hot (19)

Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
 
Virtual Lab for Electronics
Virtual Lab for ElectronicsVirtual Lab for Electronics
Virtual Lab for Electronics
 
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 
IRJET- Implementation of TPG-LFSR with Reseeding Pattern Value
IRJET-  	  Implementation of TPG-LFSR with Reseeding Pattern ValueIRJET-  	  Implementation of TPG-LFSR with Reseeding Pattern Value
IRJET- Implementation of TPG-LFSR with Reseeding Pattern Value
 
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
 
POWER EFFICIENT ALU DESIGN WITH CLOCK AND CONTROL-SIGNAL GATING TECHNIQUE
POWER EFFICIENT ALU DESIGN WITH CLOCK AND CONTROL-SIGNAL GATING TECHNIQUEPOWER EFFICIENT ALU DESIGN WITH CLOCK AND CONTROL-SIGNAL GATING TECHNIQUE
POWER EFFICIENT ALU DESIGN WITH CLOCK AND CONTROL-SIGNAL GATING TECHNIQUE
 
IRJET- Smart Wiper System for Skyscrapers
IRJET- Smart Wiper System for SkyscrapersIRJET- Smart Wiper System for Skyscrapers
IRJET- Smart Wiper System for Skyscrapers
 
VLSI Final Design Project
VLSI Final Design ProjectVLSI Final Design Project
VLSI Final Design Project
 
ApproxBioWear: Approximating Additions for Efficient Biomedical Wearable Comp...
ApproxBioWear: Approximating Additions for Efficient Biomedical Wearable Comp...ApproxBioWear: Approximating Additions for Efficient Biomedical Wearable Comp...
ApproxBioWear: Approximating Additions for Efficient Biomedical Wearable Comp...
 
IRJET- Performance Estimation of FIR Filter using Null Convention Logic
IRJET-  	  Performance Estimation of FIR Filter using Null Convention LogicIRJET-  	  Performance Estimation of FIR Filter using Null Convention Logic
IRJET- Performance Estimation of FIR Filter using Null Convention Logic
 
Digital Implementation of Fuzzy Logic Controller for Real Time Position Contr...
Digital Implementation of Fuzzy Logic Controller for Real Time Position Contr...Digital Implementation of Fuzzy Logic Controller for Real Time Position Contr...
Digital Implementation of Fuzzy Logic Controller for Real Time Position Contr...
 
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
 
Design and implementation of low power
Design and implementation of low powerDesign and implementation of low power
Design and implementation of low power
 
Design and Implementation of FPGA Based Low Power Pipelined 64 Bit Risc Proce...
Design and Implementation of FPGA Based Low Power Pipelined 64 Bit Risc Proce...Design and Implementation of FPGA Based Low Power Pipelined 64 Bit Risc Proce...
Design and Implementation of FPGA Based Low Power Pipelined 64 Bit Risc Proce...
 
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDLDESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
 
Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
 
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using CloudIRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
 
IRJET- V-I Characteristics Plotter
IRJET- V-I Characteristics PlotterIRJET- V-I Characteristics Plotter
IRJET- V-I Characteristics Plotter
 
IRJET-Power Efficient Implementation of Asynchronous Counter using Intelligen...
IRJET-Power Efficient Implementation of Asynchronous Counter using Intelligen...IRJET-Power Efficient Implementation of Asynchronous Counter using Intelligen...
IRJET-Power Efficient Implementation of Asynchronous Counter using Intelligen...
 

Similar to IRJET- Single Precision Floating Point Arithmetic using VHDL Coding

Design and Analysis of High Performance Floating Point Arithmetic Unit
Design and Analysis of High Performance Floating Point Arithmetic UnitDesign and Analysis of High Performance Floating Point Arithmetic Unit
Design and Analysis of High Performance Floating Point Arithmetic Unit
ijtsrd
 

Similar to IRJET- Single Precision Floating Point Arithmetic using VHDL Coding (20)

IRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing Machine
 
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
 
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...
 
Digital Testing Kit For Three Phase Distribution Transformer
Digital Testing Kit For Three Phase Distribution TransformerDigital Testing Kit For Three Phase Distribution Transformer
Digital Testing Kit For Three Phase Distribution Transformer
 
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
 
IRJET- Development of General Purpose Controller Board
IRJET- Development of General Purpose Controller BoardIRJET- Development of General Purpose Controller Board
IRJET- Development of General Purpose Controller Board
 
IRJET- A Review Paper on Development of General Purpose Controller Board
IRJET- A Review Paper on Development of General Purpose Controller BoardIRJET- A Review Paper on Development of General Purpose Controller Board
IRJET- A Review Paper on Development of General Purpose Controller Board
 
Design and Analysis of High Performance Floating Point Arithmetic Unit
Design and Analysis of High Performance Floating Point Arithmetic UnitDesign and Analysis of High Performance Floating Point Arithmetic Unit
Design and Analysis of High Performance Floating Point Arithmetic Unit
 
IRJET - Low Power M-Sequence Code Generator using LFSR for Body Sensor No...
IRJET -  	  Low Power M-Sequence Code Generator using LFSR for Body Sensor No...IRJET -  	  Low Power M-Sequence Code Generator using LFSR for Body Sensor No...
IRJET - Low Power M-Sequence Code Generator using LFSR for Body Sensor No...
 
IRJET - Design and Implementation of Double Precision FPU for Optimised Speed
IRJET - Design and Implementation of Double Precision FPU for Optimised SpeedIRJET - Design and Implementation of Double Precision FPU for Optimised Speed
IRJET - Design and Implementation of Double Precision FPU for Optimised Speed
 
IRJET - Comparison of Vedic, Wallac Tree and Array Multipliers
IRJET -  	  Comparison of Vedic, Wallac Tree and Array MultipliersIRJET -  	  Comparison of Vedic, Wallac Tree and Array Multipliers
IRJET - Comparison of Vedic, Wallac Tree and Array Multipliers
 
IRJET- A Review on Single Precision Floating Point Arithmetic Unit of 32 Bit ...
IRJET- A Review on Single Precision Floating Point Arithmetic Unit of 32 Bit ...IRJET- A Review on Single Precision Floating Point Arithmetic Unit of 32 Bit ...
IRJET- A Review on Single Precision Floating Point Arithmetic Unit of 32 Bit ...
 
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
Review On 2:4 Decoder By Reversible Logic Gates For Low Power ConsumptionReview On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
 
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
 
High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...
High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...
High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...
 
IRJET- Asic Implementation of Efficient Error Detection for Floating Poin...
IRJET-  	  Asic Implementation of Efficient Error Detection for Floating Poin...IRJET-  	  Asic Implementation of Efficient Error Detection for Floating Poin...
IRJET- Asic Implementation of Efficient Error Detection for Floating Poin...
 
Automated Driving Test and Issuing Of Driving Licenses
Automated Driving Test and Issuing Of Driving LicensesAutomated Driving Test and Issuing Of Driving Licenses
Automated Driving Test and Issuing Of Driving Licenses
 
IRJET - Design and Implementation of RF based Wireless Home Automation System
IRJET - Design and Implementation of RF based Wireless Home Automation SystemIRJET - Design and Implementation of RF based Wireless Home Automation System
IRJET - Design and Implementation of RF based Wireless Home Automation System
 
IRJET - High Speed Inexact Speculative Adder using Carry Look Ahead Adder...
IRJET -  	  High Speed Inexact Speculative Adder using Carry Look Ahead Adder...IRJET -  	  High Speed Inexact Speculative Adder using Carry Look Ahead Adder...
IRJET - High Speed Inexact Speculative Adder using Carry Look Ahead Adder...
 
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
 

More from IRJET Journal

More from IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
 
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 

Recently uploaded (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 

IRJET- Single Precision Floating Point Arithmetic using VHDL Coding

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2458 Single Precision Floating Point Arithmetic using Vhdl Coding Som Sharma1, Ankit Trivedi2 1Student, Department of Electrical Engineering, Axis Institute of Technology&Management, Kanpur, UttarPradesh, India 2Asst. Prof., Department of Electronic Engineering, Axis Institute of Technology&Management, Kanpur, UttarPradesh, India ---------------------------------------------------------------------------***--------------------------------------------------------------------------- Abstract: FPGA stands for Field Programmable Gate Array are semiconductor devices that are based on a matrix structure of configurable logic blocks (CLBs) connected via programmable interconnects. FPGAcanbereprogrammedto desired application or functionality requirementsafter manufacturing. Floating Point Arithmetic (FPA) is arithmetic using formulaicrepresentationof realnumbers as an approximation soas to support a trade-off between range and precision. For this reason, Floating point computation is often found in systemsthatincludesverysmallandverylarge real numbers, and can done fast processing,The IEEEsetsan Standard named as IEEE 754 for floating point in single precision and double precision in 1985.Xilinx ISE 14.2 software, weareusingforcreatingFPGAprogrammingbythe help of VHDL(Very High Speed Integrated Circuit Hardware Description Language). KEYWORDS: ASIC, FPGA, IEEE754, VHDL, Xilinx ISE. 1. INTRODUCTION:- Floating point operation is the most frequent operation and that is almost used for half of the scientific operation, computer, and technology. It is a most fundamental component of math coprocessor, DSP processors, and embedded arithmetic processors, based. Floating-point operation is a costly operation in terms of hardware and timing as it needs different types of building blocks with variable latency. In floating point operation require implementations, latency is the overall performance bottleneck. A major of work has been implemented to improve the overall latency of floating point operation. Various algorithms and design approaches have been developed by the Very Large Scale Integrated (VLSI) circuit community. Field Programmable Gate Array is made up of silicon chips with unconnected logic blocks and these logic blocks can be defined and redefined by user at any time. Field Programmable Gate Array is increasingly being used for applications which have high numerical stability and accuracy. With less time to market and low cost, Field Programmable Gate Array is becoming a more attractive solution comparedtoApplicationSpecific IntegratedCircuits (ASIC). In now time Field Programmable Gate Array are mostly used in low volume applications that cannot afford silicon fabricationordesigns whichrequirefrequentchanges or upgrades in system. Devices afford with millions of gates and frequencies reaching up to 300 MHz are becomingmore suitable forfloating-point arithmeticreliantapplicationsand data processing units. These components require high numerical stability and accuracy and hence are floating- point 1.1 Related Work:- One of the first competitive floating-point operation implementation is done by L. Louca, T. Cook, and W. Johnson [8] in 1996. Single precision floating-point addition was implemented for Altera FPGA device. The primary challenge was to fit the design in the chip area while having reasonable timing convergence. The main motive of their implementation was to achieve IEEE standard accuracy with reasonable performance consideration. This is claimed to be the first IEEE single precision floating-point adder implementation onaFPGA,beforethis, implementation with only 18-bit word length was present [8].The majority of the algorithms execute in FPGAs used to be fixed point. Floating point operations are useful for calculation involving large dynamic range, but they require significantlymoreresources than integer operation With the present trend in system supplies and existing FPGAs,floating-point implementations are becoming more common and designers are increasingly taking advantage of FPGAs as a platform for floating-point implementations. The rapid advance in Field Programmable Gate Array technology makes such devices ever more attractive for implementing floating-point arithmetic. Evaluate to Application Specific Integrated Circuits, FPGAs offer compact developmenttimeandcosts.additionally,their flexibility enables field upgrade and adjustment. The IEEE 754 single precision format[4] is as shownbelow.It divides in three parts are as follows:- sign: 1 bit broad and used to denote the sign of the number i.e. 0 point to positive number and 1 represent negative number. Exponent: 8 bit broad and signed exponent in excess 127 representation.This fieldrepresentsbothpositiveandnegative exponents. Mantissa: 23 bit wide and fractional component. S 8 bit Exponent-E 23bit fraction –F
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2459 The single- precisionfloating-pointnumberiscalculatedas(-1) S × 1.F × 2(E-127 1.2 Proposed Algorithm:- Description of the Proposed Algorithm: Fig 1 shows the flowchart of standard floating point adder algorithm. Let s1; e1; f1 and s2; e2; f2 be the signs, exponents, and significant of two input floating –point operands, N1 and N2, respectively. A description of the standard floating point adder algorithm is as follows. Fig. 1: Flowchart of standard floating point adder Algorithm 1. The two operands, N1 and N2 are read in and compared for demoralization and infinity. If numbers are demoralized, set the implicit bit to 0 otherwise it is set to 1. At this instant, the fraction part is extended to 24 bits. 2. The two exponents, e1 and e2 are compared using 8-bit subtraction. If e1 is less than e2, N1 and N2 are swapped i.e. previous f2 will now be referred to as f1 and vice versa. 3. The minor fraction, f2 is shifted right by the absolute difference result ofthe two exponents’ subtraction. Now both the numbers have the sameexponent. 4. The 2 signs are used to see whether the operation is a subtraction (-) or anaddition (+). 5. If the process is a subtraction, the bits of the f2 areinverted. 6. At this instant the two fractions areaddedusing a 2’s complement adder. 7. If the outcomesum is a negative number, it has to beinverted and a 1 has to beadded totheresult. 8. The outcome is then passed through a leading one detector orleading zero counter. This is the first step in the normalization step. 9. Using the outcome from the leading one detector, the result is then shifted left to be normalized. In some cases, 1-bit right shift is needed. 10. The outcome is then rounded towards nearest even, the default roundingmode. 11. If the take out from the rounding adder is 1, the result is left shifted byone. 12. Using the outcome from the leading one detector, the exponent is adjusted. The sign is calculate and after overflow and underflow check, the result isregistered.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2460 1.3 Block Diagram Of Single Precision Floating Point Adder:- Fig 2: Block Diagram of Single Precision floating-point Adder Fig 2 shows the block diagram of single precision floating point adder.Num_A , Num_B ,CLK ,GND and VCC are inputsof the block diagram of single precision floating point adder. Output SUM is calculated by performing addition of Num_A and Num_B using floating point addition algorithm shown in Fig 1. It illustrate the main hardware modules necessary for floating point addition. The different modules are Exponent Difference Module, Swap Multiplexer, Shifter, Barrel Shifter , FractionComponentEffectOperation,2’sComplementAdder , Inverter , Normalizer , Leading One Detector , Left Shift Barrel Shifter, Exponent Sum and Mantissa Sum. Exp_a and Exp_b are the exponents of inputs Num_A and Num_B resp. Exp_a and Exp_b can be positive or negative numbers. The output shift_amt is given to the shifter and barrel shifter block forfurthercalculation.Sign_disgiventwo the Swap Mux. Swap_Mux assigns greater Mantisa to Mantisa_grt and Lesser value of Mantisa to Mantisa_less and greater exponent is calculated and assigned to Exp_grt. Exp_grt output isgiventothenormalizerblock,Mantisa_grtis given to the Fraction Component Effect Operation Block and Mantisa_less is given to the Barrel shifter Block respectively. The shifter is used to shift the significant of the smaller operand by the absolute exponent difference. Shifter is used to shift the data bits. The Output Shift_amt of Exponent Difference Block is given as input to the Shifter block which gives output shifted_amtisfurthergiventotheinverterblock. The inverter is used to invert the data bits of shifted amount. The normalizer block gives us normalized result. Later than the addition, the next step is to normalize the result. The primary step is to identify the leading or first one in the result. This outcome is used to shift left the adder result by the number of zeros in front of the leading one. In order to perform this operation, particular hardware, called Leading One Detector (LOD) or Leading Zero Counter (LZC), has tobe implemented. Exponent sum and mantissa sum blocks are used to calculate the exponent and mantissa of output SUM and sign bit SOP is initially considered as 1. 1.4 Floating point Multiplication:- The figure 3 shows the flowchart of multiplicationalgorithm of multiplication is demonstrated by flowchart. In1 and in2 are two numbers sign1, expo1, S1 and sign2, expo2, S2 are sign bit, exponent and significant of in1 and in respectively. Steps for multiplication are as follows. 1:- calculate sign bit. sign_f= sign1 XOR sign2, sign_fissignof final result. 2:- add the exponents and subtract 127 to make adjustment in exponent (expo1+127+expo2+127)-127. 3:- Multiply the significant. S=S1*S2. 4:- check for overflow and underflow and special flag. When the value of biased exponent is less than 1 it shows occurrence of underflow, if exponent is greater than 254 then it shows overflow of floating point operation. 5:- Take the first 23 bits of ‘S’ and from left side and discard remaining bits. 6:- Arrange the results in 32 bit format.1sign bitfollowedby eight bits exponent followed by 23 bits Mantissa/significand. Calculation of sign bit:- when both number have same sign the sign of result is positive else sign will be negativethesign in calculated by XORing both sign bits of inputs. The multiplication result is 48 bits. If 47th bit is ‘1’then right shifts the result and adds ‘1’ in exponent to normalize the product. 46th to 23th bits are actual significant product. Exponent addition is done by unsigned 8 bit adder and to bias properly subtract 127 from the addition result for that purpose unsigned 8 bit subtractor is used. Inanyofthecases either addition of exponent in the beginning or while adjusting result the exponent must in the range 1 to 254. When overflow occur the result of multiplication goes to ±Infinity (+ or – sign is determined by the sign of two input
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2461 numbers). When underflow occur it makes underflow flag high and the result goes to ±0 (+ or – signedisdeterminedby the sign of two input numbers). FIG 3:-Flowchart of standard floating point multiplication 1.5 Floating point division:- The figure 4 shows the flowchart of division, algorithm for division is explained through this flowchart. In1 and in2 are two numbers sign1, expo1, S1 and sign2, expo2, S2 are sign bit, exponent and significant of in1 and in2 respectively. It is assumed that in1 andin2 are in normalized form. Steps for floating point division are as follows. 1:- calculate sign bit. sign_f= sign1 XOR sign2, sign_fissignof final result. 2:- divide the significand S1 byS2fordivisionbinarydivision method is used. • Expand divisor and dividend to double of their size - Expanded divisor = divisor (24 bits MSB) zeroes (24 bits LSB) - Expanded dividend = zeroes (24 bits MSB) dividend (32 bits, LSB) • For each step, determine if divisor is smaller than dividend - Subtract divisor from dividend look at sign - If result is greater than or equal to‘0’:dividend/divisor>=1, mark quotient as “1”. - If result is negative: divisor larger than dividend; make in quotient as “0” • Shift quotient left and divisor right to cover next power of two. 3:- Subtract the expo2 from expo1. 4:- check for overflow and underflow flags. 5: assemble the result in 32 bits format FIG 4:-Flowchart of standard floating point division
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2462 2. EXPERIMENTAL RESULTS:- Simulation result of addition of two 32 bit floating point number. The round mode is 00 and the operation mode is 000 Simulation result of subtraction of two 32 bit floating point number. The round mode is 10 and the operation mode is 001
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 04 | Apr 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 2463 Simulation result of multiplication of two 32 bit floating point number. The round mode is 01 and the operation mode is 010 Simulation result of division of two 32 bit floating point number. The round mode is 00 and the operation mode is 011 3. Conclusion and Future Work:- This FPU has action as addition, subtraction multiplication, and division. Addition, subtraction and division have been implemented by conventional technique. The design of FPU has done using VHDL on Xilinx VIVADO 2014.4 and has implemented on Virtex-7 xc7v585tffg1157-3.We have proved that this FPU have requisite less memory but still we have a huge amount of work that can be set on this FPU to further make up the efficiency of the FPU by using other Vedic sutra. A single precision floating-point adder is implemented in this paper. The main contribution of our work is to implement and analyze floating-point addition algorithms and hardware modules were implemented using VHDL and is Synthesized using Xilinx ISE14.2 Suite. The results are obtained using ISim (VHDL/Verilog) Simulator. In order to expand our paper further some of the works can be proposed in order to accommodate any exponent and mantissa length. This will gives more versatility while choosing the design criteria. The design can also be pipelined further for different number of pipeline stages to give even more adaptability and flexibility. 4. References:- 1) Ronald Vincent, Ms.Anju.S.L “Decimal Floating Point Format Based on Commonly Used Precision For Embedded System Applications.” International Conference on Microelectronics, Communication and Renewable Energy (ICMiCR-2013). 2) Somsubhra Ghosh, Prarthana Bhattacharyya and Arka Dutta “FPGA Based Implementation of a Double Precision IEEE Floating-Point Adder”, Proceedings of7'h International Conference on Intelligent Systems and Control (ISCO 2013). 3) Maarten Boersma, Michael Kr¨oner, Christophe Layer, Petra Leber, Silvia M. M¨uller, KerstinSchelm “The POWER7 Binary Floating- Point Unit”, 2011 20th IEEE Symposium on Computer Arithmetic. 4) Reshma Cherian, Nisha Thomas, Y. Shyju “Implementation of Binary to Floating Point Converter using HDL”P-461-P464. 5) Anand Mehta, C. B. Bidhul, Sajeevan Joseph, Jayakrishnan. P “ Implementation of Single Precision Floating Point Multiplier using Karatsuba Algorithm”,2013International ConferenceonGreen Computing, Communication and Conservation of Energy (ICGCE).