Beruflich Dokumente
Kultur Dokumente
First of all the two exponents are compared and the larger of two exponents is
chosen as the result exponent. The difference in the exponents then decides how
many times we must shift the smaller exponent to the right. Then after shifting of
exponent, both the mantissa get aligned. Finally, the addition of both numbers takes
place followed by normalization of the result in the last segment.
Example:
Let us consider two numbers,
X=0.3214*10^3 and Y=0.4500*10^2
Explanation:
First of all the two exponents are subtracted to give 3-2=1. Thus 3 becomes the
exponent of result and the smaller exponent is shifted 1 time to the right to give
Y=0.0450*10^3
Finally, the two numbers are added to produce
Z=0.3664*10^3
As the result is already normalized the result remains the same
Superscalar pipeline
Superscalar architecture is a method of parallel computing used in many processors.
In a superscalar computer, the central processing unit (CPU) manages multiple
instruction pipelines to execute several instructions concurrently during a clock cycle.
This is achieved by feeding the different pipelines through a number of execution
units within the processor. To successfully implement a superscalar architecture, the
CPU's instruction fetching mechanism must intelligently retrieve and delegate
instructions. Otherwise, pipeline stalls may occur, resulting in execution units that are
often idle.
To visualize how this works, consider a hospital surgical unit that consists of areas
for admittance, surgery, and recovery. Patients can move in only one direction, from
admittance to recovery, and it takes the same amount of time to go through each of
the areas. Assume the admitting area can handle three patients at a time and there
are three surgical teams, each of which can work on a single patient. Also, assume
the recovery area has an indeterminate number of beds but can accommodate only
one person per bed. When the unit is working correctly, the admitting area processes
three patients at a time, sends one to each of the teams, and immediately processes
another three patients. Even though the surgical teams can handle only one patient
at a time, because there are three of them, they will have passed their charges on by
the time the new ones arrive. The paths the three patients take are analogous to
instructions flowing through three pipelines in a CPU clock cycle. The admitting area
is like a fetching mechanism, the surgery teams are like execution units, and the
recovery room is like the registers or cache to which the units write their results.