Professional Documents
Culture Documents
Digital Arithmatic Operations L 37 - 39
Digital Arithmatic Operations L 37 - 39
Here the leftmost bit is the sign bit. The six bits A0 -A5
or B0 – B5 are the magnitudes of the number 1101102
which is equal to 52 in decimal. In positive numbers,
the rest of the bits always represent the magnitude of
the number in binary form.
In negative numbers, however, there are three possible
ways in representing the magnitude: They are,
True-magnitude form,
1’s-complement form, and
2’s-complement form.
True-magnitude form
When representing numbers in true magnitude form, the
magnitude bits represent the true equivalent of the
decimal values whether it is a positive or a negative
number. We call this the true-magnitude form for
representing sign numbers. However, this true magnitude
form is not as useful as the other two systems (i.e. 1’s-
complement form, and 2’s-complement form) for
representing negative numbers.
1’s-Complement form
1’s-complement of any number is obtained by changing
each 0 in the number to a 1and each 1 in the number to a
0. In other words, change each bit to its complement.
Example: 1’s-complement of 101101 is 010010.
When negative numbers are presented in 1’s-
complement form, the sign bit is made a 1, and
magnitude is converted from true-magnitude form to its
1’s-complement.
This can be illustrated with the decimal number – 57 as
follows.
Lesson 38
Arithmetic Unit
Figure 2 is a block diagram showing the major elements
included in a typical arithmetic unit. The main purpose
of the arithmetic unit is to accept binary data that are
stored in the memory and to execute arithmetic
operations on these data according to the instructions
from the control unit.
The arithmetic unit contains at least two flip-flop
registers; the B register and the accumulator which is
also called A register. It also contains combinational
logic circuit which performs arithmetic operations on the
binary numbers that are stored in the B register and the
accumulator.
A typical sequence of operations may occur as follows.
(a) The control unit receives an instruction (from the
memory unit) specifying that a number stored in a
memory location (address) is to be added to the
number presently stored in the accumulator
register (A register).
(b) The number to be added is transferred from the
memory to the B register.
(c) The number in the B register and the number in
the accumulator register are added together in the
logic circuits. The resulting sum is then sent to the
accumulator to be stored.
(d) The new number in the accumulator can remain
there so that another number can be added to it, or
if the arithmetic process is finished, it can be
transferred to memory for storage.
= ̅̅̅̅ ̅̅̅̅
𝐴𝑁 (𝐵𝑁 ⊕ 𝐶𝑁−1 ) + 𝐴𝑁 (𝐵 ̅̅̅̅̅̅
𝑁 ⊕ 𝐶𝑁−1 )
= 𝐴𝑁 ⊕ (𝐵𝑁 ⊕ 𝐶𝑁−1 )
Lesson 39
Carry propagation
Parallel adders (FAs) are expected to be fast, as all the
required data are received in the parallel manner and, the
additions in all the FAs take place simultaneously.
However, their overall speed is greatly reduced due to an
effect called ‘carry propagation’ delay. It arises due to
the time taken by each FA to generate its carry bit after
receiving the two relevant input bits from A and B
registers. It is about 40 ns per FA. This is a cumulative
delay process and each FA must wait 40 ns until the carry
is generated by the previous FA. The carry signals thus
generated, must propagate (ripple) all the way through
FAs to generate the final FA before producing the correct
sum. For the above 4-bit adder this delay time is about
4×40 = 160 ns. In other words, the Add command
cannot be applied until 160 ns has elapsed. This
situation will get worsen with the number of FAs. For
example, if a 32-bit parallel adder is used, the carry
propagation delay would be about 1.28 µs. Therefore, the
carry propagation delay will adversely affect the speed
of the addition process.
There are ways to minimize this propagation delay. One
mechanism to reduce this delay is to generate carry bits
using faster external circuits and introduce them at
intermediate positions of the adder circuit as shown in
the following figure. Such circuits are called ‘Look
ahead carry’ circuits.
IC parallel adders
A popular 4-bit parallel adder with look ahead carry
circuitry is TTL 7483 or 74283 (an improved version).
The inputs, outputs, and the carry in/out shown in the IC
are self-explanatory. They conform with the adder circuit
together with look ahead carry that we learnt before.
Circuit symbol of TTL7483
Question
Is it possible to extend the above idea to construct a 32-bit parallel
adder?
Subtraction
Subtraction in 2’s- complement system
When the subtraction is done in 2’s- complement system,
the number to be subtracted (the subtrahend) is 2’s-
complemented and then added to the minuend. Let us
assume that minuend is already in the A register.
Binary multiplication
Multiplication of two binary numbers is done manually
on paper by performing successive addition and
shifting.
For example, 1011× 1101 is done as follows.