Lab Report #1: Digital Logic Design EEE241
Lab Report #1: Digital Logic Design EEE241
Abdul Moeed
Name Group
Hashaam Members:
Khan
Haider Abbassi
[1] Abdullah Mohammad Shafique --- FA19-BCS-007
FA19-BCS-003
[2] TayabNumber FA19-BCS-
Akbar --- FA19-BCS-039
Registration
FA19-BCS-001
Instructor
BCS-II A
Class [*] Sir Fahad Shareif
Date
Instructor’s Name Sir Fahad Shareif
23/02/2020
Objective
Part 1
To know about the basic logic gates, their truth tables, input-output characteristics and
analyzing their functionality. Introduction to logic gate ICs, Integrated Circuits pin
configurations and their use.
Part 2
Learn to use Proteus Software for Simulation of Digital Logic Circuits.
Pre-Lab:
Background Theory:
The Digital Logic Circuits can be represented in the form of (1) Boolean Functions, (2)
Truth Tables, and (3) Logic Diagram. Digital Logic Circuits may be practically
implemented by using electronic gates. The following points are important to understand.
Electronic gates are available in the form of Integrated Circuits (ICs) and they require
a power.
Supply Gate INPUTS are driven by voltages having two nominal values, e.g. 0V and
5, 12V representing logic 0 and logic 1 respectively.
The OUTPUT of a gate provides two nominal values of voltage only, e.g. 0V and 5,
12V representing logic 0 and logic 1 respectively. In general, there is only one output
to a logic gate except in some special cases.
Truth tables are used to help show the function of a logic gate in terms of input values
combination with the desired output.
Logic Diagram is used to represent the Digital Logic Circuit in the form of symbols
connected with each other.
Digital Logic Circuits can be simulated in the virtual environment called simulation
software
The basic operations are described below with the aid of Boolean function, logic symbol, and
truth table.
LAB #01: Introduction to Basic Logic Gate ICs on Digital Logic Trainer and Proteus Simulation
AND gate:
𝑨 𝑩 𝑭=𝑨.𝑩
0 0 0
0 1 0
1 0 0
1 1 1
The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are
high. A dot (.) is used to show the AND operation i.e. A.B. Bear in mind that this dot is
sometimes omitted i.e. AB.
OR gate:
𝑨 𝑩 𝑭=𝑨+𝑩
0 0 0
0 1 1
1 0 1
1 1 1
The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs
are high. A plus (+) is used to show the OR operation.
NOT gate
𝑨 𝑭 = 𝑨̅
0 1
1 0
The NOT gate is an electronic circuit that produces an inverted version of the input at its
output. It is also known as an inverter.
NAND gate
𝑨 𝑩 𝑭 = ̅𝑨̅.̅𝑩̅
0 0 1
0 1 1
1 0 1
1 1 0
This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The output
of NAND gate is high if any of the inputs are low. The symbol is an AND gate with a small
circle on the output. The small circle represents inversion.
NOR gate
𝑨 𝑩 𝑭 = ̅𝑨̅+̅𝑩̅
0 0 1
0 1 0
1 0 0
1 1 0
This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The output of
NOR gate is low if any of the inputs are high. The symbol is an OR gate with a small circle
on the output. The small circle represents inversion.
XOR gate
XOR
𝑨 𝑩 𝑭=𝑨⊕𝑩
0 0 0
0 1 1
1 0 1
1 1 0
The 'Exclusive-OR' gate is a circuit which will give a high output if odd number of inputs
are high. An encircled plus sign “ ” is used to show the EOR operation.
XNOR gate
XNOR
𝑨 𝑩 𝑭=
̅𝑨̅⊕̅̅
̅𝑩̅
0 0 1
0 1 0
1 0 0
1 1 1
The 'Exclusive-NOR' gate circuit does the opposite to the XOR gate. It will give a high
output if even number of inputs are high. The symbol is an XOR gate with a small circle on
the output. The small circle represents inversion.
Digital systems are said to be constructed by using logic gates. These gates are AND, OR,
NOT, NAND, NOR, XOR and XNOR. Logic gate ICs are available in different packages and
technologies. Two main classifications are as below:
74 series is TTL (Transistor-Transistor Logic) based integrated circuits family. Power rating
for 74 series is 5 to 5.5Volts. This circuitry has fast speed but requires more power than later
families. The Pin configuration of basic gates 2-input ICs for 74 Series is given in Figure 1.8:
The ICs available in Lab to perform the Tasks are listed below:
In-Lab:
Equipment Required
Procedure
In-lab Task 1:
Verify all gates using their ICs on KL-31001 Digital Logic Lab trainer
INPUTS OUTPUTS
0 1 0 1 1 1 0 0
1 0 0 1 1 1 0 0
1 1 1 1 0 1 0 1
Table 1.9: Observation Table for NOT gate
INPUT OUTPUT
𝑨 𝑩
0 1
1 0
Procedure
The Proteus software for simulation is installed in Digital Design Lab. Please follow the
details below to figure out the usage of Proteus tools and process of simulation.
Parts Browsing:
Proteus has many models of electronic equipment such as logic gates, many kinds of switches
and basic electronic devices. The equipment can be placed by clicking on it and then a new
window will pop-up as shown in Figure 1.12.
Finding Steps:
All the electrical circuits require power supplies. The power supplies for logic circuits are
represented in digital system design on Proteus because the schematic may be too
complicated to understand for simulation section. Therefore, power supplies will be needed
as input power for a system. Moreover, all the input generators, such as AC generator, DC
and pulse, are contained in this category and it will be shown when clicked. In addition,
“Ground” will not be available in this group. Because it is not an input signal it is just a
terminal junction. Therefore, it will be grouped in the terminal category as shown in Figures
1.14 & 1.15.
Figure 1.14: Power supplies window in Proteus Figure 1.15: Terminals window in Proteus
Logic State:
In addition, there is another input that usually used in the digital circuit, but it does not exist
in the real world as an equipment it is called as “LOGIC STATE”. It can be found in the
picking part section (type logic state and pick it as shown in Figure 1.16).
Placing Equipment:
Selecting all devices needed to be placed on the circuit window (Gray window) and make the
required connections. It can be done by following steps:
1. Click on and select the first device that will be placed.
2. Place mouse wherever the device is preferred to place and then click the left button of
the mouse. The device will be placed, if it is needed to be moved, click the right
button of the mouse on the device symbol to select the mouse. Then hold this device
with the left mouse button and move it to any desired place (Figure 1.17).
Figure 1.17: Placing the devices in Proteus
To make the connections between the devices, click on the source pin of a device and then
move the cursor to destination pin of a device. In this step, the pink line will appear, and it
will be a wire of the circuit after clicking the mouse on the destination pin of the circuit (as
shown in Figure 1.18).
After wiring all devices and connect all inputs according to the circuit, the simulation is ready
to run by clicking on Play button and stop button is used to stop the simulation.
3. Logic probe or LED can be used to observe the output state.
NOTE: The digital result on Proteus can be seen also in Small Square Box at the pin of the
equipment & state can be shown in four colors. (Red= Logic 1, Blue = Logic 0, Gray=
Unreadable and Yellow= Logic Congestion)
In-Lab Task 2:
Verify all the basic logic gates using the Proteus simulation tool and note down the values in
the Tables 1.10 & 1.11 with the corresponding logic symbol and Boolean function. Then
show the simulated logic circuit diagrams to your Lab Instructor.
INPUTS OUTPUTS
0 1 0 1 1 1 0 0
1 0 0 1 1 1 0 0
1 1 1 1 0 1 0 1
INPUT OUTPUT
𝑨 𝑩
0 1
1 0
Post-Lab Tasks:
1. Make a list of logic gate ICs of TTL family and CMOS family along with the ICs
names. (Note: at least each family should contain 15 ICs)
10 7412 triple 3-input NAND with open 4022 Octal counters with 8 decoded
collector outputs outputs (4-stage Johnson counter)
15 7405 hex NOT with open collector outputs 40147 10-line to 4-line (BCD) priority
encoder
LAB #12: Implementation of a Special Shift Register on FPGA
Fan In:
Fan in is a term used to describe the maximum number of inputs which can be given to
a logic gate ( logic circuit). For example: A 3-input NAND gate has fan in equal to 3.
Fan Out:
Fan out is a term used to describe the maximum number of gates, an ouptut of
another gate ( say gate A) can feed i.e how many other gates a single gate can drive.
Therefore fan out here is mentioned for gate A, that gate which is giving its output as input to
other.
LAB #12: Implementation of a Special Shift Register on FPGA
Lab Assessment
Pre-Lab /1
In-Lab /5
Data
Analysis
/4 /10
Data
Post-Lab /4 /4
Presentation
Writing
/4
Style