Professional Documents
Culture Documents
Ex No: 4 Date: 01.09.20 Design, Implementation and Verification of Encoder and Decoder
Ex No: 4 Date: 01.09.20 Design, Implementation and Verification of Encoder and Decoder
OBJECTIVE
To design, implement and verify the truth table of a decoder and encoder circuit.
SOFTWARE
Simulator.io
DESCRIPTION
DECODER
A decoder is a combinational circuit that converts binary information from n input
lines to a maximum of 2n unique output lines. If the n bit decoder information has unused or
don’t care combinations, the decoder output will have fewer than 2n outputs.
TRUTH TABLE
X Y D0 D1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
The output expressions are given as
CIRCUIT DIAGRAM:
ENCODER
An encoder is a digital circuit that performs the inverse operation of a decoder. An encoder
has 2 n input lines and n output lines. The output lines generated the corresponding binary
code to the input value.
TRUTH TABLE
D0 D1 D2 D3 X Y
1 0 0 0 0 0
0 1 0 0 0 1
0 0 1 0 1 0
0 0 0 1 1 1
CIRCUIT DIAGRAM
PROCEDURE:
1. Use select tool to select suitable logic gates, switches and LEDs from Elements
library and place it on the design window
2. Use add/wire tool to connect the logic elements as per the circuit diagram to build the
logic circuit.
3. Click the run button.
4. Apply inputs based on the truth table and verify the corresponding outputs.
SIMULATION SNAPSHOTS
RESULT
The decoder and encoder circuits are designed and the truth table is verified.