Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

CSC201: Digital Logic Design

Level 2 – 1st Semester

Digital Logic Design


Section (5)

Eng. Norhan Ahmed


CSC201: Digital Logic Design
Level 2 – 1st Semester

Application to the lecture:


1. Simplification Example.

Agenda
Practical part:
1. Create Decoder & Encoder circuit.
CSC201: Digital Logic Design
Level 2 – 1st Semester

Practical Part
CSC201: Digital Logic Design
Level 2 – 1st Semester
• In Image:
Encoder & Decoder:
• Decoders and Encoders are very important parts for
Decoding
the course in computer architecture.

• Decoder: is a logic circuit that is used to decode


encoded information.

• Encoder: is a logic circuit that is used to encode Encoding

decoded information.

Eng. Norhan Ahmed


CSC201: Digital Logic Design
Level 2 – 1st Semester

Encoder & Decoder:


• In Text:

Eng. Norhan Ahmed


CSC201: Digital Logic Design n 2n
Level 2 – 1st Semester
Decoder
2-to-4
E
Decoder:
• Decoder: is logic circuits that convert n data input to 2n output.
• So To determine the number of output = 2n.
E A1 A0 D3 D2 D1 D0
D0 = E . A1 . A0 0 X X 0 0 0 0
1 0 0 0 0 0 1
D1 = E . A1 . A0 1 0 1 0 0 1 0
1 1 0 0 1 0 0
D2 = E . A1 . A0
1 1 1 1 0 0 0

D3 = E . A1 . A0

Eng. Norhan Ahmed


CSC201: Digital Logic Design
Level 2 – 1st Semester

Encoder:
• Decoder: are logic circuits that convert 2n Data input to n output.
• Where every code word results of a unique output code.

E 0 = A 3 + A 2. A1 A3 A2 A1 A0 E1 E0 V
0 0 0 0 X X 0
0 0 0 1 0 0 1
E1 = A 2 + A 3
0 0 1 0X 0 1 1
0 1 0X X0 1 0 1
V = A0 + A1 + A2 + A 3 1 X0 0X X0 1 1 1

Eng. Norhan Ahmed


CSC201: Digital Logic Design
Level 2 – 1st Semester

Any Questions
Eng. Norhan Ahmed
CSC201: Digital Logic Design
Level 2 – 1st Semester

Thank You
Eng. Norhan Ahmed

You might also like