Coa Unit 2
Coa Unit 2
Coa Unit 2
of carry from to .
Full adder
sum (S): The XOR of the three inputs (A, B, and Cin).
C4 is computed simultaneously with lower-order carries .
Carry (Cout): No waiting for carry propagation; they are determined in
parallel.
Boolean expressions for carries use a sum of products approach.
Implemented with one level of AND gates for product terms
and an OR gate.
Boolean functions are designed for minimal delay.
Carry-out is ready for the next bit without waiting for sequential
propagation.
Booths algo
Booth's Algorithm is a multiplication algorithm that efficiently
performs binary multiplication using a series of steps.
Example : Multiply ( 7 x 3 )
Initialized value :
A=0000
Q=0011
Q-1=0
M=0111
-M = 1001
Example : divide ( 11 / 3 ) using restoring
Example : divide ( 11 / 3 ) using non-restoring
Initialized value :
A=0000 Initialized value :
Q=1011 A=0000
M=00011 , -M = 11101 Q=1011
M=00011 , -M = 11101
N A Q ACTION
N A Q ACTION
4 00000 1011 initialize
4 00000 1011 initialize
00001 011_ ShL AQ
00001 011_ ShL AQ
11110 011_ A=A-M 11110 011_ A=A-M
3 00001 0110 Restore Q[0]=0 3 11110 0110 Q[0]=0
11100 110_ ShL AQ
00010 110_ ShL AQ
11111 110_ A=A+M
11111 110_ A=A-M
2 11111 1100 Q[0] = 0
Restore,
2 00010 1100 11111 100_ ShL AQ
Q[0] = 0
00101 100_ ShL AQ 00010 100_ A = A +M
00010 100_ A=A-M 1 00010 1001 Q[0] = 1
1 00010 1001 Q[0] =1 00101 001_ ShL AQ
00101 001_ ShL AQ 00010 001_ A=A-M
00010 001_ A=A-M 0 00010 0011 Q[0] = 1
0 00010 0011 Q[0] = 1
IEEE standard for floating point arithmetic
IEEE standard for floating point arithmetic is a technical
Non restoring method standard for floating point computation .
Non-restoring division is more complex than restoring division
algorithmically.
However, its hardware implementation simplifies the process.
Single Precision (32 bit):
Non-restoring division involves only one decision and
addition/subtraction per quotient bit. The format consists of three components: the sign bit, the
After subtraction, there are no additional restoring steps, exponent, and the fraction (also known as the significand or
leading to a simpler hardware design. mantissa).
1. 1 sign bit 2. 8 bit exponent 3. 23 bit mantissa
The formula for the value of a single-precision floating-point
number is: (-1)sx1.f x 2(e-127)
OVERFLOW :
Overflow occurs when the result of an arithmetic operation is
too large (in absolute value) to be represented within the
available number of bits.
There are two primary types of overflow: signed overflow and
unsigned overflow.
Signed Overflow: Occurs when the result of an operation
exceeds the maximum representable positive value or falls
below the minimum representable negative value for the
given number of bits.
Unsigned Overflow: Occurs when the result of an operation
exceeds the maximum representable value for the given
number of bits, considering all values as non-negative.