0% found this document useful (0 votes)
16 views14 pages

5 Combinational Circuits (Encoder N Decoder)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views14 pages

5 Combinational Circuits (Encoder N Decoder)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Combinational Circuits

(Decoder and Encoder)


Decoder
• The name Decoder means to translate or decode
coded information from one format into another.
• A decoder is a combinational circuit that converts
binary information from n input lines to a
maximum of 2n unique output lines.
• n inputs
• 2n outputs
• If a binary decoder receives n inputs it activates one
and only one of its 2n outputs based on that input
with all other outputs deactivated.
• A decoder has n inputs and m outputs is referred to
as an n × m decoder
Decoder
Decoder
Decoder with Enable input
• Decoders include one or more enable inputs to
control the operation of the circuit.
• The decoder is enabled when E is equal to 1 and
disabled when E is equal to 0.

B I0
Out0 W
high-level Out1 X
enable A I1
Out2 Y
Out3 Z
Enable En

En A B W X Y Z
1 0 0 1 0 0 0
1 0 1 0 1 0 0
enabled
1 1 0 0 0 1 0
1 1 1 0 0 0 1
disabled 0 x x 0 0 0 0
Decoder with Enable input

B I0
Out0 W
low-level Out1 X
enable A I1
Out2 Y
Out3 Z
Enable En

En A B W X Y Z
0 0 0 1 0 0 0
0 0 1 0 1 0 0
enabled
0 1 0 0 0 1 0
0 1 1 0 0 0 1
disabled 1 x x 0 0 0 0
3-to-8 line Decoder
Encoder
• Encoder is a combinational circuit that perform the
inverse operation of the decoder.
• An encoder has 2n input lines and n output lines.
• Encoders assume that only one input line is active
at a time.
4 × 2 Encoder
8 × 3 Encoder
Encoder Design Issues
There are two ambiguities associated with the design
of a simple encoder:
• Only one input can be active at any given time. If
two inputs are active simultaneously, the output
produces an undefined combination (for example, if
D3 and D6 are 1 simultaneously, the output of the
encoder will be 111.
• An output with all 0's can be generated when all the
inputs are 0's,or when D0 is equal to 1.
Priority Encoder
• Multiple asserted inputs are allowed; one has
priority over all others.
• Separate indication of no asserted inputs.

• A priority encoder is a special type of encoder that


includes the priority function.
• If two or more inputs are equal to 1 at the same
time, the input having the highest priority will take
precedence.
Priority Encoder
Valid-output indicator
A valid-output indicator, designed by V, is set to 1 only
when one or more of the inputs are equal to 1. If all
inputs are 0, V is equal to 0 and the other outputs of
the circuit are not used.

You might also like