0% found this document useful (0 votes)
20 views7 pages

5.5 Encoders

An encoder is a logic circuit that converts coded inputs into coded outputs where the input and output codes are different. The most common encoder is a binary encoder which has 2n input bits and n output bits. A priority encoder assigns priority to the input lines so that when multiple inputs are asserted, it produces the number of the highest priority input. The 74x148 is an 8-input priority encoder with enable and grant outputs.

Uploaded by

ramanaidu1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

5.5 Encoders

An encoder is a logic circuit that converts coded inputs into coded outputs where the input and output codes are different. The most common encoder is a binary encoder which has 2n input bits and n output bits. A priority encoder assigns priority to the input lines so that when multiple inputs are asserted, it produces the number of the highest priority input. The 74x148 is an 8-input priority encoder with enable and grant outputs.

Uploaded by

ramanaidu1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

5.

5 Encoders
A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes are different. The output code generally has fewer bits than the input code, and there is one-to-one mapping from input code words into output code words.

input code word enable inputs Encoder

output code word

Return

Next

5.5 Encoders
Binary encoder n The most common decoder circuit is an 2 -to-n encoder or binary encoder. Such a encoder has an 2n-bit binary input code and n-bit output binary code.

Binary encoder I0 Y0 I1 Y1 I2 : : : : Yn-1 I2n-1

Write the truth table for 8-to-3 binary encoder and the output logic function expressions.
Return Back Next

5.5 Encoders
Y 0 I1 I 3 I 5 I 7 Y 2 I 4 I5 I6 I7

Y1 I 2 I 3 I 6 I 7

Simulation
Suppose the inputs I2 and I4 are both 1, what is the output ? If multiple requests can be made simultaneously, the encoder gives undesirable results.
Return Back Next

5.5 Encoders
Priority Encoders The solution is to assign priority to the input lines, so that when multiple inputs are asserted, the encoding device produces the number of the highest-priority input. Such a device is called a priority encoder.

The 74x148 Priority Encoders

74X148
5
4 3 2 1 13 12 11 10

EI I7 I6 I5 I4 I3 I2 I1 I0
Return

A2 A1 A0 GS EO

6 7 9 14 15

Back

Next

5.5 Encoders

Input data I0-I7

Enable input EI
Output GS is asserted when the device is enabled and one or more of the request are asserted. Output EO is asserted if EI is assert but no request input is asserted, it designed to be connected to the EI input of another 148 that handles lower-priority requests.
Return Back Next

5.5 Encoders

Truth table for a 74x148 8-input priority encoder Inputs Outputs


EI I0 I1 I2 I3 I4 I5 I6 I7 A2 A1 A0 GS EO

1 0 0 0 0 0 0 0 0 0

x x x x x x x x 0 1

x x x x x x x 0 1 1

x x x x x x 0 1 1 1

x x x x x x x x x x x 0 x x 0 1 x 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

x 0 1 1 1 1 1 1 1 1

1 0 0 0 0 1 1 1 1 1

1 0 0 1 1 0 0 1 1 1

1 0 1 0 1 0 1 0 1 1
Return

1 0 0 0 0 0 0 0 0 1

1 1 1 1 1 1 1 1 1 0
Back Next

5.5 Encoders

Logic diagram for the 74x148 priority encode (p379 Figure 5-50) Cascading Binary Encoders (p380 Figure 5-51)

Return

Back

You might also like