0% found this document useful (0 votes)
17 views2 pages

Decoder Encoder Lab

Uploaded by

priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Decoder Encoder Lab

Uploaded by

priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Design and Implementation of Decoder and Encoder

Using Logic Gates

AIM:

To design and implement the Encoder and Decoder circuits using logic gates and verify
their truth tables.

THEORY:

Decoder:
A decoder is a combinational logic circuit that converts n input lines into a maximum of 2■
unique output lines. It performs the reverse operation of an encoder. For example, a 2-to-4
decoder takes 2 inputs and activates one of the 4 outputs depending on the binary input
combination.

Equation (for 2:4 decoder):


Y■ = A'B'
Y■ = A'B
Y■ = AB'
Y■ = AB

Encoder:
An encoder is a combinational circuit that performs the reverse of a decoder. It has 2■
input lines and n output lines. It converts an active input into the corresponding binary
code. For example, a 4-to-2 encoder has 4 inputs and produces 2 outputs.

Equation (for 4:2 encoder):


Y■ = D■ + D■
Y■ = D■ + D■

TRUTH TABLES:

2-to-4 Decoder

A B Y■ Y■ Y■ Y■
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1

4-to-2 Encoder

D■ D■ D■ D■ Y■ Y■
0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1

COMPONENTS REQUIRED:

Component Quantity
IC 7404 (NOT) 1
IC 7408 (AND) 1
IC 7432 (OR) 1
Logic Inputs 4
LED Indicators 4

OBSERVATION AND SIMULATION:

- Connect the input switches as per the circuit diagram.


- For decoder, use AND & NOT gates to implement 2:4 logic.
- For encoder, use OR gates to generate outputs.
- Verify output for all input combinations using truth tables.

REPORT:

Thus, the Encoder and Decoder circuits were designed and implemented successfully
using logic gates. Their truth tables were verified and found to be correct.

You might also like