Lab Report: Digital Logic Designeee241
Lab Report: Digital Logic Designeee241
Lab Report: Digital Logic Designeee241
DesignEEE241
Lab Report
Prepared by:
Name Husnain Zafar
Hashir Hamid
Hesham
Registration No SP20-BCS-039
SP20-BCS-033
SP20-BCS-037
Section BCS-2A
Course DLD-EEE241
Submitted to:
Lab Incharge Mr. Faisal Najeeb
LAB # 01
Introduction to Basic Logic Gate ICs on Digital Logic Trainer and
Proteus Simulation
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 IC’s and they require supply.
Supply Gate INPUTS are driven by voltages having two nominal values, e.g.
0V and 5, 12V representing logic 0 and 1 respectively.
The OUTPUT of a gate provides two nominal values of voltage only, e.g.
0V and 5, 12V representing logic 0 and 1 respectively.
Truth tables are used to help show the function of a logic gate in terms of its
input and 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 Functions, Logic
symbols and truth table.
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:
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:
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:
𝑨 𝑩 𝑭=𝑨
⊕𝑩
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 numbers
of inputs are high. An encircled plus sign “+” is used to show the EORoperation.
XNOR gate:
𝑨 𝑩 𝑭=̅𝑨̅⊕̅ ̅
̅𝑩̅
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 numbers 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:
Procedure:
1. Place the IC on the breadboard as shown in the Figure1.10;
2. Using the power supply available at KL-31001 Digital Logic Lab
trainer, connect pin7 (Ground) and pin14 (Vcc) to power upIC.’
3. Select number of possible combinations of inputs using the slide
switches SW0-SW3 (as shown in Tables 1.8 & 1.9) and note down
the output with the help of LED for all gate ICs. (You can use LD0-
LD14 located on KL-31001 Digital LogicLab)
(Note: Please make sure the Trainer board is off during the setup of circuit)
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 0 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 the Figure 1.12
Finding Steps:
Type information of device such as “OR gate” in “Keywords’ box.
If some specific category is known, the device can narrow on focusing by
selecting catalogue in the “Category”box.
After the information is entered, the list of related devices will appear in the
“Results” window, so that needed device can be chosen and then click “OK”
button to confirm selection in Figure1.13.
Power supply and input signal Generator:
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.
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
Figure1.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:
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.
III. 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.
0 1 0 1 1 1 0 0
1 0 0 1 1 1 0 0
1 1 1 1 0 0 0 1
INPUT OUTPUT
𝑨 𝑩
0 1
1 0
10 7412 triple 3-input NAND with open 4022 Octal counters with 8 decoded
collector outputs outputs (4-stage Johnson counter)
11 7427 triple 3-input NOR 4023 Triple 3-input NAND
Fan-In:
The fan-in defined as the maximum number of inputs that a logic gate can
accept. If number of inputs exceeds, the output will be undefined or
incorrect. It is specified by manufacturer and is provided in the data sheet.
Fan-Out:
The fan-out is defined as the maximum number of inputs (load) that can be
connected to the output of a gate without degrading the normal operation.
Fan Out is calculated from the amount of current available in the output of a
gate and the amount of current needed in each input of the connecting gate.
It is specified by manufacturer and is provided in the data sheet. Exceeding
the specified maximum load may cause a malfunction because the circuit
will not be able supply the demanded power.