Chapter 2
Chapter 2
The digital circuitry in digital computers and other digital systems is designed, and its behavior is
analyzed, with the use of a mathematical discipline known as Boolean algebra. The name is in honor of
an English mathematician George Boole, who proposed the basic principles of this algebra in 1854 in
his treatise, An Investigation of the Laws of Thought on Which to Found the Mathematical Theories of
Logic and Probabilities. In 1938, Claude Shannon, a research assistant in the Electrical Engineering
Department at M.I.T., suggested that Boolean algebra could be used to solve problems in relay- switching
circuit design. Shannon‟s techniques were subsequently used in the analysis and design of electronic
digital circuits.
Boolean algebra turns out to be a convenient tool in two areas:
Analysis: It is an economical way of describing the function of digital circuitry.
Design: Given a desired function, Boolean algebra can be applied to develop a simplified
implementation of that function.
Boolean algebra makes use of logical variables and logical operators. The possible values for a logical
variable are either TRUE or FALSE. For ease of use, these values are, conventionally, represented by 1
and 0 respectively. A system in which the only possible values are 0 and 1 is the binary number system.
Likewise, it is similar to the binary states of digital electronics and that is why Boolean algebra is used
to analyze digital circuits. The logical operators of Boolean algebra are AND, OR, and NOT, which are
symbolically represented by dot (∙), plus sign (+), and over bar (¯). Often the dot is omitted in Boolean
expression. Hence, A∙B is written as AB without the dot.
The operation AND yields true (binary value 1) if and only if both of its operands are true. The
operation OR yields true if either or both of its operands are true. The unary operation NOT inverts the
value of its operand. Other useful derived operators are NAND, NOR, and XOR. NAND (stands for
NOT - AND) is a combination of AND and NOT. It is the opposite of AND. NOR (NOT - OR) is
formed by combining OR and NOT. NOR is the opposite of OR. Similarly XOR is equivalent to the
equationX∙Y + X∙Y. Operator NOT is a unary operator and others are binary operators. XOR yields 1
when only if exactly one of the operands has the value 1. Except NOT, all operators and can be used
with more than two variables.
Table 1 shows the truth tables for these Boolean operators. A truth table shows the results of
an operation for every possible combination of values for its variables.
Table 2 shows important identities of Boolean algebra. These identities are useful in simplifying
Boolean functions in order to find simple circuit designs
Figure 2: (a) The use of NAND gate (b) The use of NOR gate
There are three combinations of input values that cause F to be 1, and if any one of these
combinations occurs, the result is 1. This form of expression, for self-evident reasons, is known
as the sum of products (SOP) form. Figure 3 shows a straightforward implementation with AND,
OR, and NOT gates.
Table 3: Truth table for the function in Equation (1.1)
Figure 3: Sum of products implementation of Table 3
Another form can also be derived from the truth table. The SOP form expresses that the output is
1 if any of the input combinations that produce 1 is true. We can also say that the output is 1 if
none of the input combinations that produce 0 is true. Thus,
This is in the product of sums (POS) form, which is illustrated in Figure 4. For clarity, NOT
gates are not shown. Rather, it is assumed that each input signal and its complement are
available. This simplifies the logic diagram and makes the inputs to the gates more readily
apparent. Thus, a Boolean function can be realized in either SOP or POS form. At this point, it
would seem that the choice would depend on whether the truth table contains more 1s or 0s for
the output function: The SOP has one term for each 1, and the POS has one term for each 0.
However, there are other considerations:
It is often possible to derive a simpler Boolean expression from the truth table
than either SOP or POS.
It may be preferable to implement the function with a single gate type (NAND or
NOR).
The significance of the first point is that, with a simpler Boolean expression, fewer gates will be
needed to implement the function. Three methods that can be used to achieve simplification are:
Algebraic simplification
Karnaugh maps
Quine–McKluskey tables
Algebraic Simplification
Algebraic simplification involves the application of the identities of Table 2 to reduce the
Boolean expression to one with fewer elements. For example, Equation (1.1) can be simplified
to:
Figure 4: Product of sums implementation of Table 3
This expression can be implemented as shown in Figure 5. The simplification of Equation (1.1)
was done essentially by observation. For more complex expressions, some more systematic
approach is needed.
Common Combinational Circuits
1. Adders
Binary addition differs from Boolean algebra in that the result includes a carry term. Thus,
However, addition can still be dealt with in Boolean terms. In Table 4 a, we show the logic for
adding two input bits to produce a 1-bit sum and a carry bit. This truth table could easily be
implemented in digital logic. A digital arithmetic circuit that carries out the addition of a pair of
bits is called a half adder.
However, we are not interested in performing addition on just a single pair of bits. Rather, we
wish to add two n-bit numbers along with a carry from a previous bitwise addition. Such digital
circuit is called a full adder. A combination of two half adders creates a full adder. This can be
done by putting together a set of adders so that the carry from
2.5.1 Flip-Flops
The simplest form of sequential circuit is the flip-flops. There are a variety of flip-flops, all of
which share two properties: The flip-flop is a bistable device, i.e. has two stable states. It exists
in one of two states and, in the absence of input- function as a 1-bit memory. The flip-flop has
two outputs, Q and the complement of Q.
E.g S-R, J-K & D flip-flops
A. S-R Flip-Flops
The circuit has two inputs, S (Set) and R (Reset), and two outputs, Q & complement of Q.
Mostly, events in the digital computer are synchronized to a clock pulse, so that changes occur
only when a clock pulse occurs. The S and R inputs are passed to the NOR gates only during the
clock pulse. Only when the clock signal changes [0-1] can output affected according to the
values of input S and R.