Digital Logic Circuit
Digital Logic Circuit
Logic Circuits
IT - 104
Discrete Mathematics
Application: Digital Logic Circuits
Logic Indicates the important role of logic in the design of such circuits
Digital Indicates that the circuits process discrete, or separate, signals as
opposed to continuous ones
Application: Digital Logic Circuits
Combinations of signal bits (1’s and 0’s) can be transformed into other
combinations of signal bits (1’s and 0’s) by means of various circuits
For example, the black box pictured has three input signals. Since
each of these signals can take the value 1 or 0, there are eight
possible combinations of input signals.
Black Boxes and Gates
NOT-gate is a circuit with one input signal and one output signal. If the
or inverterinput signal is 1, the output signal is 0.
Conversely, if the input signal is 0, then the output signal is 1.
Black Boxes and Gates
AND-gate is a circuit with two input signals and one output signal.
If both input signals are 1, then the output signal is 1.
Otherwise, the output signal is 0.
OR-gate also has two input signals and one output signal.
If both input signals are 0, then the output signal is 0.
Otherwise, the output signal is 1.
Black Boxes and Gates
Black Boxes and Gates
S
The Boolean Expression Corresponding to a Circuit
Solutio
n:
The final expression obtained, (P ∨ Q)∧ ∼(P ∧ Q), is the expression for
exclusive or: P or Q but not both.
Finding a Boolean Expression for a Circuit
Solutio
n:
Observe that the output of the circuit For this reason, the circuit can be said to
is 1 for exactly one combination of “recognize” one particular combination of
inputs (P = 1, Q = 1, and R = 0) and inputs. The output column of the input/output
is 0 for all other combinations of table has a 1 in exactly one row and 0’s in all
inputs. other rows.
Finding a Boolean Expression for a Circuit
A recognizer is a circuit
that outputs a 1 for
exactly one particular
combination of input
signals and outputs 0’s
for all other combinations
The Circuit Corresponding to a Boolean Expression
a. (∼P ∧ Q) ∨ ∼Q
Solutio
n:
1. Write the input variables in a column on the left side of the diagram.
Then go from the right side of the diagram to the left, working from
the outermost part of the expression to the innermost part.
2. Since the last operation executed when evaluating (∼P ∧ Q)∨ ∼Q is ∨,
put an OR-gate at the extreme right of the diagram.
3. One input to this gate is ∼P ∧ Q, so draw an AND-gate to the left of
the OR-gate and show its output coming into the OR-gate.
The Circuit Corresponding to a Boolean Expression
a. (∼P ∧ Q) ∨ ∼Q
Solutio
n:
4. Since one input to the AND-gate is ∼P, draw a line from P to a NOT-
gate and from there to the AND-gate.
5. Since the other input to the AND-gate is Q, draw a line from Q directly
to the AND-gate.
6. The other input to the OR-gate is ∼Q, so draw a line from Q to a NOT-
gate and from the NOT-gate to the OR-gate.
The Circuit Corresponding to a Boolean Expression
a. (∼P ∧ Q) ∨ ∼Q
Solutio
n:
The Circuit Corresponding to a Boolean Expression
b. ((P ∧ Q) ∧ (R ∧ S)) ∧ T
Solutio
n:
1. To start constructing this circuit, put one AND-gate at the extreme
right for the ∧ between ((P ∧ Q) ∧ (R ∧ S)) and T .
2. To the left of that put the AND-gate corresponding to the ∧ between P
∧ Q and R ∧ S.
3. To the left of that put the AND-gates corresponding to the ∧’s
between P and Q and between R and S.
The Circuit Corresponding to a Boolean Expression
b. ((P ∧ Q) ∧ (R ∧ S)) ∧ T
Solutio
n:
The Circuit Corresponding to a Boolean Expression
b. ((P ∧ Q) ∧ (R ∧ S)) ∧ T
Solutio
n:
It follows from Theorem 2.1.1 that all the ways of adding parentheses to
P ∧ Q ∧ R ∧ S ∧ T are logically equivalent.
Thus, for example,
((P ∧ Q) ∧ (R ∧ S)) ∧ T ≡ (P ∧ (Q ∧ R)) ∧ (S ∧ T )
b. ((P ∧ Q) ∧ (R ∧ S)) ∧ T
Solutio Each of the circuits in the
n: previous figures is, therefore,
an implementation of the
expression P ∧ Q ∧ R ∧ S ∧ T
.
Multiple-input OR-gates
are constructed similarly.
The Circuit Corresponding to a Boolean Expression
b. ((P ∧ Q) ∧ (R ∧ S)) ∧ T
Solutio
n:
Such a circuit is called a multiple-input AND-gate and is represented
by the diagram shown in the circuit below.
(P ∧ Q ∧ R) ∨ (P∧ ∼Q ∧ R) ∨ (P∧
∼Q∧ ∼R)
Simplifying Combinational Circuits
Consider the two combinatorial circuits
Simplifying Combinational Circuits
If you create a table for Circuit A
• Another way to simplify a circuit is to find an equivalent circuit that uses the
least number of different kinds of logic gates.
• Thus the output signal of a NAND-gate is 0 when, and only when, both input
signals are 1, and the output signal for a NOR-gate is 1 when, and only when,
both input signals are 0.
• The logical symbols corresponding to these gates are | (for NAND) and ↓ (for
NOR), where | is called a Sheffer stroke (after H. M. Sheffer, 1882–1964)
and ↓ is called a Peirce arrow (after C. S. Peirce, 1839–1914; see page
101). Thus