Experiment-6
Design and implementation of 2-to-1 Encoder Circuit
What are Encoders?
The combinational circuits that change the binary information into N output lines
are known as Encoders. The binary information is passed in the form of 2N input
lines. The output lines define the N-bit code for the binary information. In simple
words, the Encoder performs the reverse operation of the Decoder. At a time,
only one input line is activated for simplicity. The produced N-bit output code is
equivalent to the binary information.
Definition of 2-to-1 Encoder: -
A 2-to-1 Encoder is a combinational logic circuit that encodes one of two active
inputs into a single binary output. It reduces the number of data lines by
converting the active input into a corresponding binary code. In a 2-to-1
Encoder, only one input should be active (high) at a time; otherwise, the output
may become undefined.
Block Diagram:
D
2-to-1
Output x
Encoder
0
Truth Table for 2-to-1 Encoder: -
Input D0 Input D1 Output X
0 0 Undefined
0 1 0
1 0 1
1 1 Undefined
Explanation:
When I1 = 0 and I0 = 1, the output Y=0.
When I1 = 1 and I0 = 0, the output Y=1.
If no input or more than one input is active, the output is undefined.
Circuit Diagram of 2-to-1 Encoder: -
Code for the implementation of 2:1 Encoder: -
Circuit Graph of 2:1 Encoder code: -
Graph for 2:1 Encoder Code:
Conclusion for 2-to-1 Encoder: -
The implementation of the 2-to-1 Encoder demonstrated its ability to
encode one of two active inputs into a binary format, providing a
compact representation. This project illustrated the encoder's utility in
applications requiring data prioritization and efficient communication
of signals in digital circuits.
Through practical testing, the encoder proved to be a reliable and
indispensable tool in streamlining data transmission processes. The
project offered valuable insights into the role of encoders in reducing
complexity in digital communication systems.