Design & Simulation of 32-Bit Floating Point Alu
Design & Simulation of 32-Bit Floating Point Alu
Abstract— VHDL environment for floating point arithmetic and logic unit design is introduced the novelty in the ALU design
which provides a high performance ALU to execute multiple instructions simultaneously. In top-down design approach,
arithmetic modules, addition, subtraction, multiplication, division, comparison & logical functions are combined to form a
floating point ALU unit. Each module is divided into sub- modules with four selection bits are combined to select a particular
operation. Each module is independent to each other. The modules are realized and validated using VHDL simulation in the
Active HDL software.
Proceedings of 3rd IRF International Conference, Pune, 2nd March. 2014, ISBN: 978-93-82702-62-7
77
Design & Simulation Of 32-Bit Floating Point ALU
It includes nearly all of the original IEEE 754-1985 A bias of 127 is added to the actual exponent to make
(which was published in 1985) and the IEEE Standard negative exponents possible without using a sign bit.
for Radix-Independent Floating-Point Arithmetic So for example if the value 100 is stored in the
(IEEE 854-1987). exponent place holder, the exponent is actually -27
The standard specifies: (100 – 127). Not the whole range of E is used to
Basic and extended floating-point number formats represent numbers. As you may have seen from the
Add, subtract, multiply, divide, square root, above formula, the leading fraction bit before the
remainder, and compare operations decimal point is actually implicit (not given) and can
Conversions between integer and floating-point be 1 or 0 depending on the exponent and therefore
formats saving one bit. Table shows single precision
Conversions between different floating-point representation with the corresponding values for a
formats given representation to help better understand what
Conversions between basic format floating-point was explained above each quantity in an equation.
numbers and decimal strings The SI unit for magnetic field strength H is A/m.
Floating-point exceptions and their handling, However, if you wish to use units of T, either refer to
including non numbers magnetic flux density B or magnetic field strength
symbolized as µ0H. Use the center dot to separate
(C) Formats compound units, e.g., “A·m2.”
The standard defines five basic formats, named using
their base and the number of bits used to encode them. (E) Arithmetic Logic Unit
There are three binary floating-point formats (which The arithmetic unit, also called the arithmetic logic
can be encoded using 32, 64, or 128 bits) and two unit (ALU), is a component of the central processing
decimal floating-point formats (which can be encoded unit (CPU). It is often referred to as the “engine” of the
using 64 or 128 bits). The first two binary formats are CPU because it allows the computer to perform
the ‘Single Precision’ and ‘Double Precision’ formats mathematical calculations, such as addition,
of IEEE 754-1985, and the third is often called 'quad'; subtraction, and multiplication. The ALU also
the decimal formats are similarly often called 'double' performs logic operations, like “AND,” “OR,” and
and 'quad'. “NOT.” The arithmetic unit works along with the
register array, which holds data, when processing
Proceedings of 3rd IRF International Conference, Pune, 2nd March. 2014, ISBN: 978-93-82702-62-7
78
Design & Simulation Of 32-Bit Floating Point ALU
then we have to increment the exponent and mantissa Manual Simulation Window
is shifted to the right, then we get normalized result You can perform either a single step simulation,
and we can store result. But if exponent is not equal which is useful for source code debugging, or a
then we have to increment smaller exponent to make continues simulation. Finish simulation by selecting
both exponent equal and mantissa is shifted right and the End Simulation option in the Simulator menu.
further repeats the same process. Save your waveform before exit.
Proceedings of 3rd IRF International Conference, Pune, 2nd March. 2014, ISBN: 978-93-82702-62-7
79