31 CombinationalCircuits
31 CombinationalCircuits
31 CombinationalCircuits
Combinational Circuits
Part 1
KFUPM
Objectives
Types of Logic Circuits
Combinational
Sequential
KFUPM
Combinational Circuits
Two classes of logic circuits:
Combinational Circuits
Sequential Circuits
Combinational Circuits
n inputs
Combinational
Circuits
m outputs
KFUPM
Designing Combinational
Circuits
How to design a combinational circuit?
Use all the information and tools you learned
Binary system, Boolean Algebra, K-Maps, etc.
KFUPM
Design Procedure
1. Specification
2. Formulation
3. Optimization
Technology Mapping
5.
Verification
Practical Considerations:
Cost of gates (Number)
Maximum allowed delay
Fanin/Fanout
KFUPM
Example 1
Question: Design a circuit that has a 3-bit input and a
single output (F) specified as follows:
F = 0, when the input is less than (5) 10
F = 1, otherwise
Solution:
Step 1 (Specification):
Label the inputs (3 bits) as X, Y, Z
X is the most significant bit, Z is the least significant bit
Example 1 (cont.)
Question: Design a circuit that has a 3-bit input and a
single output (F) specified as follows:
F = 0, when the input is less than (5) 10
F = 1, otherwise
Solution:
Step 1 (Specification):
Label the inputs (3 bits) as X, Y, Z
X is the most significant bit, Z is the least significant bit
Example 1 (cont.)
Step 3 (Optimization)
Step 2 (Formulation)
Obtain Truth table
X
YZ
00
0
0
01
0
11
0
1
10
0 F = XZ + XY
1
Circuit Diagram
KFUPM
Example 2
Question (BCD to Excess-3 Code Converter)
Code converters convert from one code to another
(BCD to Excess-3 in this example)
The inputs are defined by the code that is to be
converted (BCD in this example)
The outputs are defined by the converted code
(Excess-3 in this example)
Recall Excess-3 code is a decimal digit plus three
converted into binary, i.e. 0 is 0011, 1 is 0100, etc.
KFUPM
Example 2 (cont.)
BCD Input
Step 1 (Specification)
Excess 3 Output
Decimal
Step 2 (Formulation)
10-15
KFUPM
Example 2 (cont.)
BCD Input
Step 1 (Specification)
Excess 3 Output
Decimal
Step 2 (Formulation)
10-15
KFUPM
Example 2 (cont.)
Step 3 (Optimization)
KFUPM
Example 3
Question (BCD-to-Seven-Segment Decoder)
src: Manos book
Example 3 (cont.)
Step 1 (Specification):
4 inputs (A, B, C, D)
7 outputs (a, b, c, d, e, f, g)
a b c d e f g
BCD-to-SevenSegment
Decoder
A B C D
KFUPM
Example 3 (cont.)
Step 2 (Formulation)
BCD Input
7 Segment Decoder
Decimal
10-15
Invalid
BCD
codes
=
No Light
Example 3 (cont.)
Step 3 (Optimization)
KFUPM
Example 3 (cont.)
Step 3 (Optimization) (cont.)
Conclusion
There are two types of logic circuits
Combinational
Sequential
Design Procedure
Specification *
Formulation *
Optimization *
Technology Mapping
Verification
Examples
KFUPM