0% found this document useful (0 votes)
48 views

ENcoder Notes EE101

An encoder outputs the binary value of the active input. It has 2N inputs and N outputs, performing the inverse operation of a decoder. Issues can occur if more than one input is active or if no inputs are active. A priority encoder prioritizes higher-order inputs over lower-order ones based on their binary value. It also includes a valid indicator output to show whether the encoded output is valid when an input is selected or invalid when no inputs are selected.

Uploaded by

mohit
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)
48 views

ENcoder Notes EE101

An encoder outputs the binary value of the active input. It has 2N inputs and N outputs, performing the inverse operation of a decoder. Issues can occur if more than one input is active or if no inputs are active. A priority encoder prioritizes higher-order inputs over lower-order ones based on their binary value. It also includes a valid indicator output to show whether the encoded output is valid when an input is selected or invalid when no inputs are selected.

Uploaded by

mohit
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/ 13

Encoders

1
Encoder

An encoder outputs the binary value of the


active input.

An encoder has 2N inputs and N outputs.

ECE 301 - Digital Electronics 2


Encoder
 Inverse operation of the decoder
 Decoder selects one output based on the
input binary number.
 Encoder outputs a binary number based
on the selected input.
 Issues
 What if more than one input is active?
 What if no inputs are active?

ECE 301 - Digital Electronics 3


Encoder: N
2 -to-N

w0
y0
2N N
inputs outputs
yn – 1
w2 n – 1

The active (or selected) input is encoded on the n outputs.

ECE 301 - Digital Electronics 4


Encoder: 4-to-2
w 3 w 2 w 1 w0 y1 y0

0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1

w0

w1
y0

w2

y1
w3

ECE 301 - Digital Electronics 5


Encoder: 8-to-3

ECE 301 - Digital Electronics 7


Priority Encoder
• Higher-order input has priority of lower-order input
– Order of the input determined by its binary value
• I0 has binary value 000 (0)
• I1 has binary value 001 (1)
• I2 has binary value 010 (2)
• I3 has binary value 011 (3)
• etc.

– So,
• I1 selected over I0
• I2 selected over I1 and I0
• I3 selected over I2, I1, and I0
• etc.

ECE 301 - Digital Electronics 8


Priority Encoder
• Valid indicator
– Output signal of the (priority) encoder that indicates the
validity of the encoded output
– Encoded output is invalid when no inputs are selected or
when the encoder is disabled
• V = 0 (indicates invalid encoded output; active high)
– Encoded output when one, or more, input(s) is (are)
selected, and encoder is enabled
• V = 1 (indicates valid encoded output; active high)

ECE 301 - Digital Electronics 9


4-to-2 Priority Encoder

Valid indicator

invalid

valid

ECE 301 - Digital Electronics 10


4-to-2 Priority Encoder

ECE 301 - Digital Electronics 11


4-to-2 Priority Encoder

ECE 301 - Digital Electronics 12


10 line to 4 line Encoder

You might also like