Beruflich Dokumente
Kultur Dokumente
Half-Adder: One that performs the addition of three bits (Two significant bits
and a previous carry).
Input variable: augends, addend bits and previous carry.
The output: The sum and carry
The C output is represent output carry.
The S output represent the least significant bit of
the sum.
Boolean Function:
S=X⊕Y⊕Z
C =XY + (X ⊕ Y)Z =XY+ (X’Y + XY’)Z
Circuit
Truth Table
+ 6 00000110 - 6 11111010
+13 00001101 +13 00001101
+ 6 00000110 - 6 11111010
- 13 11110011 - 13 11110011
- 7 11111001 - 19 11101101
Arithmetic Micro-operation:
We designate the magnitude of two number A and B. When the signed number ared
added or subtracted, we find total eight different condition, depending on the sign
of the number and operation performed.
Addition Algorithm:
When the sign of two magnitude are identical:
Add the two magnitude and attach the sign of A to the result.
When the sign of two magnitude are different:
Compare the magnitude and subtract the smaller number to larger.
Choose the sign of the result
To be same as A if A>B
Complement of the A if A<B
Magnitude are equal
Subtract B from A and make the sign of result positive.
HARDWARE IMPLEMENTATION
HARDWARE ALGORITHMS
Algorithms: ->
MULTIPLICATION
MULTIPLICATION
MULTIPLICATION
1 B SC 4 B SC
1 0 1 1 1 5 1 0 1 1 1 2
0 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 0 1 1 0
E A Q E A Q
2 B SC 5 B SC
1 0 1 1 1 4 1 0 1 1 1 1
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1
E A Q E A Q
3 B SC 6 B SC
1 0 1 1 1 3 1 0 1 1 1 0
0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 0 1 1 0 1 0 1
E A Q E A Q
BMA: Provide a procedure for multiplying two binary integer in signed 2’s
complement representation
Principle: if 0 (in Multiplier) require: No addition operation & one Shift Operation
if 1 (in Multiplier) from bit weight 2k to 2m can be treated as 2k+1 - 2m
Ex: Number 001110 (+14) have string of 1’s from 23 to 21
So, k=3 & m=1, The Number can be represented as
2k+1-2m=24-21=16-2 = 14
So for Multiplication with number M can be written as
M*2k+1 - M*2m
Thus the product can be obtained by shifting the binary multiplicand M four time
to the left and subtract M shifted left once.
ARRAY MULTIPLIER
Concept: Checking the bit of multiplier one at a time and forming partial product
is a sequential operation that requires a sequence of add and shift micro-operation.
The multiplication of two binary number can be done with one micro-operation by
means of one combinational circuit that form the product bits all at once.
This is a fast way of multiplying two number since all it takes is the time
for signal to propagate through the gates that form the multiplication array.
However it requires a large number of gates, and for this reason it was not
economical until the development of integrated circuit.
For j Multiplier bits and k
multiplicand bit we need
j*k AND Gate and
Total (j-1) k-bit adders to
produced a product of j+k
bits.
DIVISION OPERATION
DIVISION OPERATION
DIVISION OPERATION