DLD 03 Comb Logic Design Part1
DLD 03 Comb Logic Design Part1
Chapter 3 – Combinational
Logic Design
Part 1 – Introduction and Encoder
Chapter 3 - Part 1 2
Combinational Circuits
A combinational logic circuit has:
• A set of m Boolean inputs,
• A set of n Boolean outputs, and
• n switching functions, each mapping the 2m input
combinations to an output such that the current output
depends only on the current input values
A block diagram:
Combinatorial
Logic
Circuit
(a)
D2 5 A 1 A 0
Note that the 2-4-line
made up of 2 1-to-2- D3 5 A 1 A 0
line decoders and 4 AND
(b)
gates. Chapter 4
Decoder with Enable
In general, attach m-enabling circuits to the outputs
See truth table below for function
• Note use of X’s to denote both 0 and 1
• Combination containing two X’s represent four binary combinations
Alternatively, can be viewed as distributing value of signal
EN to 1 of 4 outputs EN
A
In this case, called a 1
A
demultiplexer 0
D 0
EN A 1 A 0 D0 D1 D2 D3 D1
0 X X 0 0 0 0
1 0 0 1 0 0 0 D2
1 0 1 0 1 0 0
1 1 0 0 0 1 0
D3
1 1 1 0 0 0
(b)
Chapter 4 6
2-to-4 Decoder Diagram
Chapter 3 - Part 1 7
NAND Only
D0 E. A1. A0
D1 E. A1. A0
D2 E. A1. A0
D0 E. A1. A0
Chapter 3 - Part 1 8
Decoder Expansion
General procedure given in book for any decoder with
n inputs and 2n outputs.
This procedure builds a decoder backward from the
outputs.
The output AND gates are driven by two decoders with
their numbers of inputs either equal or differing by 1.
These decoders are then designed using the same
procedure until 2-to-1-line decoders are reached.
The procedure can be modified to apply to decoders
with the number of outputs ≠ 2n
Chapter 4 9
3-to-8-line decoder (without enable)
Consider a 3-to-8-line decoder (without enabler)
A2 A1 A0 D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
Chapter 4 10
3-to-8-line Decoder Implementation
Chapter 3 - Part 1 11
Easier way by Expansion
Decoder expansion
• Combine two or more small decoders with
enable inputs to form a larger decoder
3-to-8-line decoder constructed from two 2-to-
4-line decoders
The MSB is connected to the enable inputs
if A2=0, upper is enabled; if A2=1, lower is
enabled.
Chapter 3 - Part 1 12
Expansion
Chapter 3 - Part 1 13
Combinational Circuit Design with Decoders
Chapter 3 - Part 1 14
Combinational Circuit Design with Decoders
Chapter 3 - Part 1 15
Decoder Implementation of a Full Adder
Chapter 3 - Part 1 16
Decoder Implementation of a Full Adder
Chapter 3 - Part 1 17
Spring 2024 Question 6
Spring 2024 Question 6
Fall 2023 Question 5
Fall 2023 Question 5
Thank You