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

Encoders in DD PDF

Digital Design BCA DCRUST

Uploaded by

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

Encoders in DD PDF

Digital Design BCA DCRUST

Uploaded by

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

Encoders

Encoders are combinational circuits that convert binary information from multiple input lines into
a smaller number of output lines. They take 2n input lines and produce an n-bit output code.
Essentially, encoders perform the opposite function of decoders. For simplicity, only one input
line is active at any given time, and the output is an n-bit code that corresponds to the active
input line.

(2n input lines and n output lines, if input lines are 4, output lines will be 2 and if input lines are 8,
output lines will be 3 and so on..)

There are various types of encoders which are as follows:

4 to 2 line Encoder:

In 4 to 2 line encoder, there are total of four inputs, i.e., Y0, Y1, Y2, and Y3, and two outputs,
i.e., A0 and A1. In 4-input lines, one input-line is set to true at a time to get the respective binary
code in the output side. Below are the block diagram and the truth table of the 4 to 2 line
encoder.
Truth Table:

Y3 Y2 Y1 Y0 A1 A0

0 0 0 1 0 0

0 0 1 0 0 1

0 1 0 0 1 0

1 0 0 0 1 1

(To remember the table, fill the output column with the combinations 00,01,10,11) and for
outputs fill 1’s at the diagonals from the right side.) Green represents output and other color
represents input.

Explanation of truth table:

1. When y0 is high, then output is 00


2. When y1 is high, the output is 01
3. When y2 is high, the output is 10
4. When y3 is high, the output is 11

The Logical Expression for A1 and Ao will be:

A1=Y3+Y2 (the value of a1 is 1 when either y3 or y2 is 1)


A0=Y3+Y1 (the value of a0 is 1 when either y3 or y1 is 1)

The logical circuit of the above expressions is given below: (OR gate will be used as the
expressions have the ‘+’ sign)
8 to 3 line Encoder:

The 8 to 3-line Encoder is also known as Octal to Binary Encoder. In 8 to 3 line encoder, there is
a total of eight inputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7 and three outputs, i.e., A0, A1,
and A2. In 8-input lines, one input-line is set to true at a time to get the respective binary code in
the output side. Below are the block diagram and the truth table of the 8 to 3 line encoder.

Block Diagram:

Truth Table:

Y7,y6,y5,y4,y3,y2,y1,y0 are inputs and a2,a1,a0 are inputs. Diagonals are filled with 1’s starting
from y0.
The logical expression of the term A0, A1, and A2 are as follows:

A2=Y4+Y5+Y6+Y7 (A2 is 1 when any of y4,y5,y6,y7 is 1 as seen from truth table)


A1=Y2+Y3+Y6+Y7 (A1 is 1 when any of y3,y2,y6,y7 is 1 as seen from truth table)
A0=Y7+Y5+Y3+Y1 (A0 is 1 when any of y7,y5,y3,y1 is 1 as seen from truth table)

The Logic Diagram will be:


Decimal to BCD Encoder (10 inputs, 4 outputs)

The Octal to Binary Encoder is also known as 10 to 4 line Encoder. In 10 to 4 line encoder, there
are total of ten inputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, and Y9 and four outputs, i.e., A0,
A1, A2, and A3. In 10-input lines, one input-line is set to true at a time to get the respective BCD
code in the output side. The block diagram and the truth table of the decimal to BCD encoder
are given below.

Block Diagram:

Truth Table:
The logical expression of the term A0, A1, A2, and A3 is as follows:

A3 = Y9 + Y8
A2 = Y7 + Y6 + Y5 +Y4
A1 = Y7 + Y6 + Y3 +Y2
A0 = Y9 + Y7 +Y5 +Y3 + Y1

The Logic Diagram is:

Priority Encoders:

A priority encoder is a type of encoder circuit that includes a prioritization function. When
multiple inputs are active simultaneously, the priority encoder outputs the binary code
corresponding to the highest-priority active input. The priority is typically assigned based on the
input lines, with the highest-numbered input having the highest priority.

4 to 2 line Priority Encoder:

In this priority encoder, there are total of 4 inputs, i.e., Y0, Y1, Y2, and Y3, and two outputs, i.e.,
A0 and A1. The Y3 has high and Y0 has low priority inputs. When more than one input is '1' at
the same time, the output will be the (binary) code corresponding to the higher priority input.
Truth Table:

You might also like