Professional Documents
Culture Documents
Combination Al Logic
Combination Al Logic
Combinational Circuits
The
Decoders
A decoder is a
combinational logic
circuit that converts
binary information
3- to -8
from n input lines to a n Inputs
Decoder
2n Outputs
maximum of 2n
unique outputs
Also called the n-to-m
line decoders for
n minterms of n
Purpose:
to
generate
the
2
example:
input lines
Inner Structure of
Decoder
One or more input control line may be used to control the operation of decoder
Decoders with enable lines can work as de-multiplexer where data is provided
through the enable lines and the input variables are used to select specific
output channel
5
Decoder Expansion
Combinational Circuit
Implementation Using Decoder
E.g. Implement full adder circuit whose outputs are given as:
S (x,y,z)= (1, 2, 4, 7)
C (x,y,z)= (3, 5, 6, 7)
Combinational Circuit
Implementation Using Decoder
Combinational Circuit
Implementation Using Decoder
the number of minterms > 2n /2 then express
function as F and use NOR gate in the external
gate to obtain the function F.
If NAND gates are used to construct the
decoder, then the external gate must be NAND
gate (instead of OR gate)
If
Encoders
2n
Inputs
Encoder
Combinatio
nal Logic
Circuit
n
Outputs
z= D1+D3+D5+D7
y= D2+D3+D6+D7
x= D4+D5+D6+D7
Limitation:
1- only one of the input is allowed to be 1
2- when all inputs are zeros, the output is zero
but this situation is the same as input D0=1!!
10
Priority Encoder
x = D3 + D2
y = D3 + D1 D 2
V = D3 + D2 + D1 + D0
V: is the valid bit indicator that is set to 1 when one or more inputs are
equal to 1. If all inputs are zero, there is no valid input and V=0
11
Multiplexers
A multiplexer or
Data Selector is a
combinational circuit that
selects binary information from
one of many input lines and
directs the information to a
single output line
2n
Inputs
MULTIPLEXER
Combinational
Logic Circuit
1
Output
n Selection Lines
12
4-to-1-Line Multiplexer
13
14
15
16
17
Demultiplexers
Performs
19