/    /  Digital Logic-Decoder

Decoder

 

The decoder is a combinational logic circuit that changes the binary information to 2^N output lines. Binary information is passed in the form of N input lines, and the output lines define the 2^N bit code for the binary information.

There are various types of decoders, some are mentioned below:

 

2 to 4 line decoder

In this, there are a total of three inputs and four outputs. 

 

Truth Table: 

 

EnableInput Output
EA1A0Y3Y2Y1Y0
0XX0000
1000001
1010010
1100100
1111000

 

Logical Expression:

Y3=E.A1.A0

Y2=E.A1.A0

Y1=E.A1‘.A0

Y0=E.A1‘.A0

 

3 to 8 line decoder

It is also known as a binary to an octal decoder. In a 3 to 8 line decoder, there are a total of three inputs and eight outputs. 

 

Truth Table:

 

EnableInputOutput
EA2A1A0Y7Y6Y5Y4Y3Y2Y1Y0
0XXX00000000
100000000001
100100000010
101000000100
101100001000
110000010000
110100100000
111001000000
111110000000

 

Logical expression:

Y0=A0′.A1′.A2′

Y1=A0.A1′.A2′

Y2=A0′.A1.A2′

Y3=A0.A1.A2′

Y4=A0′.A1′.A2

Y5=A0.A1′.A2

Y6=A0′.A1.A2

Y7=A0.A1.A2

 

Reference

Decoder