LAB 03
LAB 03
1.1
Theory:
A decoder is a combinational logic circuit that is used to change the code into a
set of signals. It is the reverse process of an encoder. A decoder circuit takes
multiple inputs and gives multiple outputs. A decoder circuit takes binary data of
‘n’ inputs into ‘2^n’ unique output. In addition to input pins, the decoder has a
enable pin. This enables the pin when negated, to make the circuit inactive.
Figure 1: Pinout of 3-8 bit decoder with 2 2-4 bit decoders
We can easily make a 3-8 line decoder using only 2 input AND gates and NOT gates. The circuit
diagram is shown below.
E I1 I0 O0 O1 O2 O3 O4 O5 O6 O7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
Figure 2: 3-8 line decoders using 2 input AND gates Table 1: 3-8 line decoder
1.2
3-8 line decoder using 2-4 line decoders
We can also make a 3-8 line decoder by joining 2 2-4 bit decoders. The circuit diagram is shown
below.
Experiment 2:
Implement combinational circuits (functions) using decoder
and basic gates
F = M1 . M3 . M6 . M7
We can implement this functions if we consider each Max terms as the negated outputs of the
3-8 bit decoder. Such as M1=Output1’, M3=Output3’, M6=Output6’, M7=Output7’. Then we
can use AND gates and NOT gates to show the final output. The circuit diagram is shown below.