Author: M Abo Bakar Aslam

2x1 Encoder and 1x2 Decoder

A 2-to-1 line Encoder and 1-to-2 lines Decoder are the simplest forms of encoding and decoding circuits used in digital systems.

1. Truth Table - 2x1 Encoder

Suppose inputs are A-0 and A-1 and output is Y.
Total Number of Rows = 2^(number of inputs) = 2² = 4
A-1A-0Output (Y)
010
101

2. Boolean Expression - 2x1 Encoder

Y = A-1

3. Truth Table - 1x2 Decoder

Suppose input is Y and outputs are A-0 and A-1.
Total Number of Rows = 2^(number of inputs) = 2¹ = 2
Input (Y)A-1A-0
001
110

4. Boolean Expression - 1x2 Decoder

A-0 = Y'

A-1 = Y

5. Circuit Diagram - Encoder and Decoder

Combine circuit diagram for both 2-to-1 line encoder and 1-to-2 lines decoder
Figure 1: Combine Circuit Diagram for both 2-to-1 Line Encoder and 1-to-2 Lines Decoder

Important Note

Encoder and Decoder are inverse operations. Encoder converts multiple inputs into fewer outputs, while Decoder expands a single input into multiple outputs.