Title:Implementation of 4-Line-To - 2-Line Encoder & 8-Line-To-3-Line Encoder Lab Worksheet #10

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Digital Logic Design Lab Spring 2021

Title:Implementation Of 4-Line-To -2-line Encoder & 8-Line-To-3-Line


Encoder

Lab Worksheet #10


Name: SYED MUNEEB Semester: 2ND

Sapid#: 25420 Section: CYBER SECURITY


INTRODUCTION & BASIC CONCEPTS:
An encoder performs a function that is the opposite of decoder. It receives one or more
Signals in an encoded format and output a code that can be processed by another logic circuit.
One of the advantages of encoding data, or more often data addresses in computers, is that it
Reduces the number of required bits to represent data or addresses.
Objectives
The objectives of this experiment:

1. To design a 4 × 2 decoder using basic gates


2. To understand the operation of 4 × 2
decoder.
Equipment Required Cutter
IC 74LS08 Single Core Wire
IC 74LS32 Tweezers
IC 74LS04 Pair of Pliers
Multi-meter

Diagram

2 inputs 4  2 Encoder
4 Outputs

Figure 1. The block diagram of 4  2 Encoder

1
Faculty of computing, Riphah International University, I-14, Islamabad
Logical Diagram of 4 X 2 Encoder:

Function table
Complete the table given below carefully by using circuit developed by you.

Inputs Outputs

D0 D1 D2 D3 Y1 Y2
0 0
0 0 0 1
0 1
0 0 1 0
1 0
0 1 0 0
1 1
1 0 0 0
Procedure

1) Firstly, we will open logic gate simulator.


2) Then we will add 8 inputs which will take inputs
3) And select OR and gate
4) Implement the circuit using and gate which IC is 7432
5) Connect the inputs to the input switches.
6) Connect the outputs to the switches.
7) Apply various combinations of inputs according to the truth table and
observe the condition of LEDs.
8) Note down the corresponding output readings for various combinations of
inputs.

Write a Boolean function for output of 4 x 2 Encoder for Each Case


F (y1, y2) =
Y1: D0’D1D2’D3’+D0D1’D2’D3’= D3+D1

Y2: D0’D1’D2D3’+D0D1’D2’D3’=D3+D1
8 x 3 Line Encoder:

8  3 Encoder 3 Outputs
8 inputs

Develop: 8 – To- 3 Line Encoder (using Basic Gates)


Function table
Complete the table given below carefully by using circuit developed by you.

Inputs Outputs

D0 D1 D2 D3 D4 D5 D6 D7 O2 O1 O0
0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 1 0 0 0 0 1 1
0 0 0 1 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0 1 0 1
0 1 0 0 0 0 0 0 1 1 0
1 0 0 0 0 0 0 0 1 1 1

Write a Boolean function for output of 8x3 Line Encoder:

O0:D1+D2+D5+D7
O1:D2+D3+D6+D7
O2:D4+D5+D6+D7

Teaching Fellow
Mr. Umar Sultan
Faculty of Computing,
Riphah International University
Sector I-14, Islamabad.
Email: [email protected]

The End

You might also like