Course Code: CSE 2203 Course Title: Digital Techniques: Department of Computer Science & Engineering
Course Code: CSE 2203 Course Title: Digital Techniques: Department of Computer Science & Engineering
Course Code: CSE 2203 Course Title: Digital Techniques: Department of Computer Science & Engineering
Presented by,
Md. Zahirul Islam
Combinational Logic Circuit
from Logic Function
• Consider function F = A’ + B•C’ + A’•B’
• A combinational logic circuit can be constructed to implement F, by
appropriately connecting input signals and logic gates:
– Circuit input signals from function variables (A, B, C)
– Circuit output signal function output (F)
– Logic gates from logic operations
A F
B
Combinational Logic Circuit
from Logic Function (cont.)
• In order to design a cost-effective and
A B C F G
efficient circuit, we must minimize the
0 0 0 1 1
circuit’s size (area) and propagation
delay (time required for an input signal 0 0 1 1 1
change to be observed at the output 0 1 0 1 1
line) 0 1 1 1 1
• Observe the truth table of F=A’ + B•C’ 1 0 0 0 0
+ A’•B’ and G=A’ + B•C’ 1 0 1 0 0
• Truth tables for F and G are identical 1 1 0 1 1
same function
1 1 1 0 0
• Use G to implement the logic circuit
(less components)
Combinational Logic Circuit
from Logic Function (cont.)
C
A F
C
B
A G
Boolean expressions-NOT unique
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
group of 4 terms
Simplification
• Enter minterms of the Boolean function into
the map, then group terms
• Example: f(a,b,c) = a’c + abc + bc’
• Result: f(a,b,c) = a’c+ b
abc
1 1 1
1 1
1 1 1
1 1
More Examples
yz
X 00 01 11 10
• f1(x, y, z) = ∑ m(2,3,5,7) 0 1 1
1 1 1
f1(x, y, z) = x’y + xz
• f2(x, y, z) = ∑ m (0,1,2,3,6)
1 1 1 1
f2(x, y, z) = x’+yz’
1
Four-Variable Maps
YZ
00 01 11 10
WX
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
1 1 1 1 1 1
1 1 1 1
1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
Don't Care Conditions
• There may be a combination of input values which
– will never occur
– if they do occur, the output is of no concern.
• The function value for such combinations is called a
don't care.
• They are denoted with x or –. Each x may be
arbitrarily assigned the value 0 or 1 in an
implementation.
• Don’t cares can be used to further simplify a function
cd
ab 00 01 11 10
Example 00 0 1 0 1
01 1 1 0 1
• Simplify the function f(a,b,c,d) 11 0 0 x x
10 1 1 x x
is shown at right. x 1 0 0
• g = a’c’+ ab 1 x 0 x
1 x x 1
or 0 x x 0
• g = a’c’+b’d
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
AND-OR (SOP) Emulation
Using NANDs
Two-level implementations
a) Original SOP
b) Implementation with NANDs
AND-OR (SOP) Emulation
Using NANDs (cont.)
Verify:
(a) G = WXY + YZ
The first step is to determine the expression for the output: z = ABC + AB • (A C)
Since B + B = 1, then…
z = A(C + B)
Designing Combinational Logic Circuits
• To solve any logic design problem:
– Interpret the problem and set up its truth table.
– Write the AND (product) term for each case where output = 1.
– Combine the terms in SOP form.
– Simplify the output expression if possible.
– Implement the circuit for the final, simplified expression.
Circuit that
produces a 1
output only for
the A = 0, B = 1
condition.
Designing Combinational Logic Circuits
An AND gate with appropriate inputs can be used to
produce a HIGH output for a specific set of input levels.
Designing Combinational Logic Circuits
Each set of input conditions that is to produce a
1 output is implemented by a separate AND gate.
The AND outputs are ORed
OR to produce the final output.
Designing Combinational Logic Circuits
Implementing the
circuit after factoring: