Chapter IIb Arithmetic Circuits
Chapter IIb Arithmetic Circuits
In this chapter, we will discuss those combinational logic building blocks that can be
used to perform addition and subtraction operations on binary numbers. Addition and
subtraction are the two most commonly used arithmetic operations, as the other two,
namely multiplication and division, are respectively the processes of repeated addition and
repeated subtraction, the basic building blocks that form the basis of all hardware used to
perform the aforesaid arithmetic operations on binary numbers. These include half-adder,
full adder, half-subtractor, full subtractor and controlled inverter.
Half-Adder
A half-adder is an arithmetic circuit block that can be used to add two bits. Such a circuit
thus has two inputs that represent the two bits to be added and two outputs, with one
producing the SUM output and the other producing the CARRY. Figure 2.1 shows the truth
table of a half-adder, showing all possible input combinations and the corresponding
outputs.
The Boolean expressions for the SUM and CARRY outputs are given by the equations
A full adder circuit is an arithmetic circuit block that can be used to add three bits to produce
a SUM and a CARRY output. Such a building block becomes a necessity when it comes to
adding binary numbers with a large number of bits. The full adder circuit overcomes the
limitation of the half-adder, which can be used to add two bits only. A full adder is therefore
essential for the hardware implementation of an adder circuit capable of adding larger binary
numbers. A half-adder can be used for addition of LSBs only. Figure 2.3 shows the truth table of a full
adder circuit showing all possible input combinations and corresponding outputs.
LSBs only.
Figure 2.3 Truth table of a full adder.
The Boolean expressions for the two output variables, that is, the SUM and CARRY outputs,
in terms of input variables.
These expressions are then simplified by using the help of the Karnaugh mapping technique.
Where it is obtained the S cannot be simplified any futher more while
Figure 2.4 shows the logic circuit diagram of the full adder
The full adder of the type described above forms the basic building block of binary adders.
However, a single full adder circuit can be used to add one-bit binary numbers only. A
cascade arrangement of these adders can be used to construct adders capable of adding
binary numbers with a larger number of bits. For example, a four-bit binary adder would
require four full adders of the type shown in Fig. 2.5b to be connected in cascade. Figure 2.6
shows such an arrangement. (A3A2A1A0) and (B3B2B1B0) are the two binary numbers to be
added, with A0 and B0 representing LSBs and A3 and B3 representing MSBs of the two
numbers.
Half-Subtractor
A half-subtractor is a combinational circuit that can be used to subtract one binary digit from
another to produce a DIFFERENCE output and a BORROW output. The BORROW output here
specifies whether a ‘1’ has been borrowed to perform the subtraction. The truth table of a
half subtractor, as shown in Fig. 2.7, explains this further. The Boolean expressions for the
two outputs are given by the equations
Full Subtractor
A full subtractor performs subtraction operation on two bits, a minuend and a subtrahend,
and also takes into consideration whether a ‘1’ has already been borrowed by the previous
adjacent lower minuend bit or not. As a result, there are three bits to be handled at the
input of a full subtractor, namely the two bits to be subtracted and a borrow bit designated
as Bin. There are two outputs, namely the DIFFERENCE output D and the BORROW output
Bo. The BORROW output bit tells whether the minuend bit needs to borrow a ‘1’ from the
next possible higher minuend bit. Figure 2.7 shows the truth table of a full subtractor.
The Boolean expressions for the two output variables are given by the equations
From the two Karnaugh maps, it can be observed that no simplification is possible for the
difference output D. The simplified expression for Bo is given by the equation:
Again, more than one full subtractor can be connected in cascade to perform subtraction on
two larger binary numbers as shown in Fig. 2.9. for a four-bit subtractor.
Controlled Inverter
a)
b)
Figure 2.10 (a) One-bit controlled inverter and (b) eight-bit controlled inverter.
Adder–Subtractor
Subtraction of two binary numbers can be accomplished by adding 2’s complement of the
subtrahend to the minuend and disregarding the final carry, if any. If the MSB bit in the
result of addition is a ‘0’, then the result of addition is the correct answer. If the MSB bit is a
‘1’, this implies that the answer has a negative sign. The true magnitude in this case is given
by 2’s complement of the result of addition.
Full adders can be used to perform subtraction provided we have the necessary additional
hardware to generate 2’s complement of the subtrahend and disregard the final carry or
overflow. Figure 2.11 shows one such hardware arrangement.
BCD Adder
A BCD adder is used to perform the addition of BCD numbers. A BCD digit can have any of
the ten possible four-bit binary representations, that is, 0000, 0001, …. , 1001, the equivalent
of decimal numbers 0, 1, … , 9. When we set out to add two BCD digits and we assume that
there is an input carry too, the highest binary number that we can get is the equivalent of
decimal number 19 (9 + 9 + 1). This binary number is going to be (10011)2.
Exercice 1
For the half-adder circuit of Fig. 1(a), the inputs applied at A and B are as shown in Fig. 2(b).
Plot the corresponding SUM and CARRY outputs on the same scale.
Exercice 2 Given the relevant Boolean expressions for half-adder and half-subtractor
circuits, design a halfadder–subtractor circuit that can be used to perform either addition or
subtraction on two one-bit numbers. The desired arithmetic operation should be selectable
from a control input
Exercice 3 Refer to Fig. 2. Write the simplified Boolean expressions for DIFFERENCE and
BORROW outputs.
Exercice 4 Design an eight-bit adder–subtractor circuit using four-bit binary adders, type
number 7483, and quad two-input EX-OR gates, type number 7486. Assume that pin
connection diagrams of these ICs are available to you.
Exercice 5 The logic diagram of Fig. 3 performs the function of a very common arithmetic
building block. Identify the logic function.
Exercice 6 Design a BCD adder circuit capable of adding BCD equivalents of two-digit
decimal numbers. Indicate the IC type numbers used if the design has to be TTL logic family
compatible.