Avionics Lab - Ajay
Avionics Lab - Ajay
Components Required:
Procedure:
1. Connect the circuit as per the circuit diagram.
2. Give logical inputs as per the respective truth table.
3. Observe the logical output and verify with their truth table
Theory:
4 to 2 Encoder:
An Encoder is a digital circuit that performs the inverse operation of a decoder. Hence the opposite of
the decoding process is called encoding. An encoder is a combinational logic circuit that converts an
active input signal into a coded output signal. It has n input lines only one of which is active at any
time and m output lines. It encodes one of the active inputs to a coded binary output with m bits. In an
encoder the number of outputs is less than no. of inputs. Consider 4 to 2 encoder, which has 4 inputs
for each 4 digit and 2 outputs generating the corresponding binary number.
2 to 4 Decoder:
A Decoder is similar to Demultiplexer but without any data input. Most digital system requires the
decoding of the data. Decoding is necessary in applications such as datamultiplexing, digital display,
digital to analog converters and memory addressing. A decoder is a logic circuit that converts an n bit
binary input code into 2noutput lines, Such that each output line will be activated for only one of the
possible combinations of inputs.
A 2 to 4 decoder has two inputs (A and B) and 4 outputs (D 0-D3). Based on the two inputs, one of the
4 outputs is selected. From the truth table it is clear that only one of the 4 outputs is selected based on
the two select inputs. The logical expression for the outputs can be written as follows:
Result:
Thus the 4 to 2 encoder 2 to 4 Decoder were designed and verified with their truth table.
4 to 2 ENCODERS
D0 D1 D2 D3
Y 1= D 2+ D 3
Y 0= D 1+ D 2
Truth Table
Inputs Outputs
D0 D1 D2 D3 Y1 Y0
I 0 0 0 0 0
0 I 0 0 0 1
0 0 I 0 1 0
0 0 0 I 1 1
2 to 4 DECODERS
D0= A’B’
D1=A’B
D2=AB’
D3=AB
Truth Table
A B D0 D1 D2 D3
0 0 I 0 0 0
0 1 0 I 0 0
1 0 0 0 I 0
1 1 0 0 0 I