Lab 1

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

INTERNATIONAL UNIVERSITY

SCHOOL OF ELECTRICAL ENGINEERING

Digital Logic Design Laboratory

Lab 1

Introduction Simulation
Software and Logic Gates

Full name: …………………………………………….


Student number: ………………………………….
Class: ……………………………………………….......
Date: …………………………………………………....

Digital Logic Design Laboratory 1-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

I. Objectives

In this laboratory, students will study:


- Familiar with simulation software
- Understand the operation of logic gates.
- Build a combination circuit that implements a Boolean expression.
- Use IC designing circuit which is satisfied the below truth table.

II. Procedure

1. Investigate Logic Gates


Investigate the basic logic gates by using simulation software

a. NOT gate
- One input of NOT gate wire up to switch.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of NOT gate.

A Y= A
Low 1
High 0

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 2-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

b. AND gate
- Two inputs of AND gate wire up to switches.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of AND gate.

A B Y= AB
Low Low 0
Low High 0
High Low 0
High High 1

Implement the circuit via simulation software and paste the result in here

c. OR gate

Digital Logic Design Laboratory 3-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

- Two inputs of OR gate wire up to switches.


- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of OR gate.

A B Y= A+B
Low Low 0
Low High 1
High Low 1
High High 1

Implement the circuit via simulation software and paste the result in here

d. XOR gate
- Two inputs of XOR gate wire up to switches.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of XOR gate.

Digital Logic Design Laboratory 4-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

A B Y= A⊕B
Low Low 0
Low High 1
High Low 1
High High 0

Implement the circuit via simulation software and paste the result in here

e. NAND gate
- Two inputs of NAND gate wire up to switches.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of NAND gate.

A B Y= AB
Low Low 1
Low High 1
High Low 1
High High 0

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 5-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

f. NOR gate
- Two inputs of NOR gate wire up to switches.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of NOR gate.

A B Y= A+ B
Low Low 1
Low High 0
High Low 0
High High 0

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 6-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

2. Changing gate method


Using universal gate (NAND & NOR gate) to derive other logic gates
a. Using NAND to make other logic gates
- Construct the circuit for each figure 1
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of figure 1a.
- Do the same steps for figure 1b, 1c, 1d.

Digital Logic Design Laboratory 7-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Figure 1a

Figure 1b

Figure 1c

Figure 1d

- Which do these circuits in figure 1a, 1b, 1c, 1d correspond with logic gates?
1a

Digital Logic Design Laboratory 8-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

A Y
0 1
1 0

Truth table and correspond with logic gates of Figure 1b


A B Y (Output)
0 0 0
0 1 1
1 0 1
1 1 1

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 9-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Truth table and correspond with logic gates of Figure 1c


A B Y (Output)
0 0 0
1 0 1
0 1 1
1 1 1

Implement the circuit via simulation software and paste the result in here

Truth table and correspond with logic gates of Figure 1d


A B Y (Output)
0 0 1
1 0 0
0 1 0
1 1 0
Digital Logic Design Laboratory 10-23
INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Implement the circuit via simulation software and paste the result in here

b. Using NOR to make other logic gates


- Construct the circuit for each figure 2
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the truth table of figure2a.
- Do the same steps for figure 2b, 2c, 2d.

Digital Logic Design Laboratory 11-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Figure 2a

Figure 2b

Figure 2c

Figure 2d

- Which do these circuits in figure 2a, 2b, 2c, 2d correspond with logic gates?
1A

Digital Logic Design Laboratory 12-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

A Y
0 1
1 0

Truth table and correspond with logic gates of Figure 2b


A B Y (Output)
0 0 0
1 0 1
0 1 1
1 1 1

Implement the circuit via simulation software and paste the result in here

Truth table and correspond with logic gates of Figure 2c


A B Y (Output)
0 0 0
1 0 0
0 1 0
1 1 1
Digital Logic Design Laboratory 13-23
INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Implement the circuit via simulation software and paste the result in here

Truth table and correspond with logic gates of Figure 2d


A B Y (Output)
0 0 1
1 0 1
0 1 1
1 1 0

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 14-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

3. Design and simply the combinational logic circuit using logic gates

a. Given the circuit below, find the function F 1 ( A , B , C )

Write down the function F 1 ( A , B , C )=¿ A BC+ A BC + A BC+A BC+ABC


Fill in the truth Table:
A B C F1
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1

Digital Logic Design Laboratory 15-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Implement the circuit via simulation software and paste the result in here

Using K-map to simplify function above

The simplified F 1 ( A , B , C )= A B+C

Implement the new expression via simulation software and paste the result in here

Digital Logic Design Laboratory 16-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

b. Given the circuit below, find the function F 2 ( A , B , C )

Write down the function F 2 ( A , B , C )= A BC + A BC + A BC+ABC


Fill in the truth Table:
A B C F2
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0

Digital Logic Design Laboratory 17-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Implement the circuit via simulation software and paste the result in here

Using K-map to simplify function above

The simplified F 2 ( A , B , C )=¿

Implement the new expression via simulation software and paste the result in here

Digital Logic Design Laboratory 18-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

c. Given the circuit below, find the function F 3 ( A , B ,C , D )

Write down the function F 3 ( A , B ,C , D ) =¿


Fill in the truth Table:
A B C D F3

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 19-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Using K-map to simplify function above

The simplified F 3 ( A , B ,C , D ) =¿

Implement the new expression via simulation software and paste the result in here

4. Design and simply the combinational logic circuit using IC logic gates
- Building the circuit from the Integrated Circuits (IC).
IC 74HC00 is quad input NAND gate and 74HC02 is quad input NOR gate

Digital Logic Design Laboratory 20-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

a. Only Using NAND gates in IC 74HC00 to construct the circuit for expression
f (C , B , A)= ∑ (0 , 1 ,2 , 3 , 4)
CBA

The simplified expression is f (C , B , A)=¿

Implement the circuit via simulation software and paste the result in here

Digital Logic Design Laboratory 21-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

b. Only Using NOR gates in IC 74HC02 to construct the circuit for expression
f (C , B , A)= ∑ (3 , 4 , 5 , 6 , 7)
CBA

The simplified expression is f (C , B , A)=¿

Implement the circuit via simulation software and paste the result in here

Extra Exercise
Besides the IC 74HC00 for NAND gates and 74HC02 for NOR gates, there are also IC
for AND, OR, XOR gates:
+ 74HC08 quad 2-input AND gate
+ 74HC32 quad 2-input OR gate
+ 74HC86 quad 2-input XOR gate

Implement the circuit below by using the IC above in simulation software

Digital Logic Design Laboratory 22-23


INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING

Paste the result from simulation software in here

The expression for the circuit is F ( A , B ,C , D )=¿

Is the expression is simplest or not? If not, provide your simplification step and
implement the simplified circuit in simulation software.

Digital Logic Design Laboratory 23-23

You might also like