Complete Note Chapter 4
Complete Note Chapter 4
Design
Unit-3
1
List of Topics:
Single output and multiple output combinational logic circuit design
AND-OR, OR-AND, and NAND/NOR realizations
Exclusive-OR and Equivalence functions
Binary adders/subtractors
Encoder, Decoder
Multiplexer, Demultiplexer
MUX realization of switching functions
Parity bit generator
Code-converters
Contact Networks
Hazards and hazard free realizations.
2
Combinational Logic Design
A process with 5 steps
Specification
Formulation
Optimization
Technology mapping
Verification
3
Functional Blocks
Fundamental circuits that are the base building
blocks of most larger digital circuits
They are reusable and are common to many
systems.
Examples of functional logic circuits
Decoders
Encoders
Code converters
Multiplexers
4
Where they are used
Multiplexers
Selectors for routing data to the processor, memory,
I/O
Multiplexers route the data to the correct bus or
port.
Decoders
are used for selecting things like a bank of memory
and then the address within the bank. This is also
the function needed to ‘decode’ the instruction to
determine the operation to perform.
Encoders
are used in various components such as keyboards.
5
Specifications step
Write a specification for the circuits
Specification includes
What are the inputs: how many, how many bits in a
given output, how are they grouped, are they
control, are they active high?
What are the outputs: how many and how many bits
in each, active high, active low, tristate output?
The functional operation that takes place in the chip,
i.e., for given inputs what will appear on the outputs.
6
Formulation step
Convert the specifications into a variety forms
for optimal implementation.
Possible forms
Truth Tables
Expressions
K-maps
Binary Decision Diagrams
7
Digital Circuits:
Combinational circuit consists of logic gates whose outputs
at any time are determined directly from the present
combination of inputs without regard to previous inputs.
Sequential Circuit employ memory elements in addition to
logic gates. Their outputs are a function of the inputs and
the state of the memory elements.
8
Combinational Circuit:
A Combinational circuit consists of input variables, logic
gates and output variables. The gates accept signals from
the inputs and generate signals to the outputs.
Combinational
n input Logic Circuit m output
variables variables
A Sum
inputs
Half Adder Outputs
B Carry
K map simplification for HA
A 0 A 0
1 1
B B
0 0 0 0 0 1
1 0 1 1 1 0
A Sum
Full Adder
B
Cout
Truth table for full adder
A B Cin Sum Carry
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
K map simplification for full adder
B Cin B Cin
00 01 11 10 00 01 11 10
A A
0 0 0 1 0 0 0 1 0 1
1 0 1 1 1 1 1 0 1 0
A Difference
Outputs
inputs
Half Subtractor
B Borrow
K map simplification for half subtractor
A 0 A 0
1 1
B B
0 0 0 0 0 1
1 1 0 1 1 0
A Difference
Full Subtractor
B
Borrowout
Truth table for full subtractor
A B C Difference Borrow
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
K map simplification for full subtractor
BC BC
00 01 11 10 00 01 11 10
A A
0 0 1 1 1 0 0 1 0 1
1 0 0 1 0 1 1 0 1 0
Bn An B2 A2 B1 A1 B0 A0
Cout
Cout
FA FA FA FA
Cin
Cin
Sn S2 S1 S0
Binary subtractor / Parallel subtractor
Bn An B2 A2 B1 A1 B0 A0
Cout Cout
FA FA FA FA
Cin
Cin=1
Sn S2 S1 S0
Encoder
2n inputs
n data
2n:n ouputs
Encoder
Enable
inputs
• The input code generally has fewer bits than the output code,
n data
inputs
n:2 n Possible 2n
outputs
Decoder
Enable
inputs
En A B Y3 Y2 Y1 Y0
0 X X 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
2 to 4 Decoder
Truth table for 3 to 8 decoder
EN A B C Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
0 X X X 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0 0 0 1 0
1 0 1 0 0 0 0 0 0 1 0 0
1 0 1 1 0 0 0 0 1 0 0 0
1 1 0 0 0 0 0 1 0 0 0 0
1 1 0 1 0 0 1 0 0 0 0 0
1 1 1 0 0 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0
Logic diagram for 3 to 8 decoder
BCD to decimal decoder
• The four bit BCD input is decoded to activate one of the ten
outputs.
Expansion of multiplexer
Implementation of combinational logic using Mux
• A multiplexer consists of a set of AND gates whose outputs are connected to
single OR gate. Because of this construction any boolean function in a SOP
form can be easily realized using multiplexer.
• If a minterm exists in a function, we have to connect the AND gate data input to
logic 1; otherwise we have to connect it to logic 0.
Demultiplexers
Y0
Din Y1
1: 4 demux
Y2
Y3
S1 So
Cascading Demultiplexers
71
End