Ismail - Manual DLD Lab.
Ismail - Manual DLD Lab.
i
Table of Contents
Lab 1: Introduction..............................................................................................iii
Lab 2: Integrated circuits (IC).............................................................................iv
Lab 3: Gates.........................................................................................................vi
Lab 4: Gates.........................................................................................................ix
Lab 5: XOR using (AND), (NOT) and (OR) gate:..............................................xi
Lab 6: XNOR using (AND), (NOT) and (OR) gate:.........................................xiii
LAB 7: Make and Gate by combining NOR Gate and NAND Gate..................xv
LAB 8(a): Make NOT Gate by combining NOR Gate and NAND Gate.........xvii
LAB 8(b): Make OR Gate by combining NOR Gate and NAND Gate............xix
Lab 9: Half Adder..............................................................................................xxi
Lab 10: Half Subtractor...................................................................................xxiii
Lab 11: Full Adder............................................................................................xxv
Lab 12: Full Subtractor...................................................................................xxvii
ii
Lab 1: Introduction
Intro to Digital Logic Design (DLD):
DLD is an electric technology that is used to storing, processing, and generating a data in
term of positive and non-positive states. A digit is a representation of data in term of 0 and 1.
In physics there are signals which carry information from one place to another place. Signals
may be in the form of (continuous, discontinuous, analog and digital)
Continuous:
It is defined as signals which does not break its value with respect of time.
Discontinuous:
It’s defined as signals which break its value with respect of time.
Analog:
There are following points in this:
Applications:
Microcontrollers Electronics
Microprocessor
Electrical circuit
iii
Lab 2: Integrated circuits (IC)
An integrated circuit also known as IC or a chip is a set of electronic circuits on one small flat
piece or a chip of a semiconductor material which is usually a silicon.
Basic gates:
There are seven basic gates in DLD:
AND NAND
OR NOR
NOT XNOR
XOR
Type of IC IC number
AND (7408)
OR (7432)
NOT (7404)
NAND (7400)
NOR (74001)
XOR (7486)
XNOR (74266)
iv
Structure of IC:
Gates on IC:
v
Lab 3: Gates
1) AND Gate:
Truth Table:
Connection Diagram:
vi
2) OR Gate:
The OR (7432) gate is a digital logic gate that implements logical disjunction V for
mathematical logic-It behaves according to the truth table. A high or 1 output results id one
or both the inputs to the gate are high or 1. If neither input is high or 1, a low or 0 output
results.
Diagram:
Truth Table:
Connection Diagram:
vii
3) NOT Gate:
A NOT (7404) gate is a logic gate that inverts the digital input signal. For this reason, a NOT
gate is something referred to an inverter. A NOT gate always has high or 1 output when its
input is low or 0.
Diagram:
Truth Table:
Connection Diagram:
viii
Lab 4: Gates
1) NAND Gate:
In digital electronics, a NAND (7400) gate (NOT-AND) is a logic gate which produces an
output which is false only if all its inputs are true; thus, its output is compliment to that of an
AND Gate. A low or 0 output results only if all the inputs to the Gate are High or 1. If any
input is low or 0, a high or 1 output results.
Diagram:
Truth Table:
Connection Diagram:
ix
2) NOR Gate
The inclusive NOR (74001) gate has an output that is normally at logic level 1 and only goes
low to the logic level 0 when any of its inputs are at logic level 1.
Diagram:
Truth Table:
Connection Diagram:
x
Figure 4.2.3: NOR Gate Wiring Diagram
Diagram:
Connection Diagram:
Truth Table:
xi
Alternative way:
the XOR circuit with 2 inputs is designed using AND, OR and NOT gates as shown below:
A B+ A B = A ⊕ B
xii
Lab 6: XNOR using (AND), (NOT) and (OR) gate:
XNOR:
The XNOR (7485) gate is a digital logic gate whose function is the logical compliment of the
exclusive OR gate. It is equivalent to the logical connective from mathematical logic.
Diagram:
Connection Diagram:
Truth Table:
xiii
Alternative way:
the XNOR circuit with 2 inputs is designed using AND, OR and NOT gates as shown below:
AB+ AB = A ⊕B
xiv
LAB 7: Make and Gate by combining NOR Gate
and NAND Gate.
AND:
The AND (7408) Operation produces an output of 1 or high when all of the inputs are 1 or
high. It produces an output put of 0 or low when any or all of the inputs are 0 or low.
Diagram:
Connection Diagram:
Truth Table:
xv
Alternative ways:
1) Through NAND Gate
Figure 7.4 Alternative way for AND Gate through NAND Gate
2) Through NOR Gate
Figure 7.5 Alternative way for AND Gate through NOR Gate
Boolean expression:
The Boolean expression for AND is:
Y= A.B
xvi
LAB 8(a): Make NOT Gate by combining NOR Gate
and NAND Gate.
NOT:
A NOT (7404) gate is a logic gate that inverts the digital input signal. For this reason, a NOT
gate is something referred to an inverter. A NOT gate always has high or 1 output when its
input is low or 0.
Diagram:
Connection Diagram:
Truth Table:
xvii
Alternative ways:
1) Through NAND Gate
Figure 8.1.4 Alternative way for NOT Gate through NAND Gate
2) Through NOR Gate
Figure 8.1.5 Alternative way for NOT Gate through NOR Gate
Boolean expression:
X =X
xviii
LAB 8(b): Make OR Gate by combining NOR Gate
and NAND Gate.
OR:
The OR (7432) gate is a digital logic gate that implements logical disjunction V for
mathematical logic-It behaves according to the truth table. A high or 1 output results id one
or both the inputs to the gate are high or 1. If neither input is high or 1, a low or 0 output
results.
Diagram:
Connection Diagram
Truth Table:
xix
Figure 8.2.3Truth Table of OR Gate
Alternative ways:
1) Through NAND Gate
xx
Lab 9: Half Adder
There are two inputs and two outputs in a Half Adder. Inputs are named as A and B, and the
outputs are named as Sum (S) and Carry (C). The Sum is X-OR of the input A and B. Carry
is AND of the input A and B.
Block Diagram:
Circuit Diagram:
Truth Table:
xxi
Alternative ways:
1) Through NAND Gate Only:
xxii
Lab 10: Half Subtractor
The half-subtractor is a combinational circuit which is used to perform subtraction of two
bits. It has two inputs, A (minuend) and B (subtrahend) and two outputs Difference and
Borrow. The logic symbol and truth table are shown below.
Block Diagram:
Circuit Diagram:
Truth Table:
xxiii
Alternative ways:
1) Through NAND Gate Only:
xxiv
Lab 11: Full Adder
Full Adder is the adder that adds three inputs and produces two outputs. The first two inputs
are A and B and the third input is an input carry as C-IN. The output carry is designated as C-
OUT and the normal output is designated as S which is SUM.
Block Diagram:
Circuit Diagram:
Truth Table:
xxv
Alternative ways:
1) Through NAND Gate Only:
xxvi
Lab 12: Full Subtractor
A full subtractor is a combinational circuit that performs subtraction involving three bits,
namely A (minuend), B (subtrahend), and B-in (borrow-in). It accepts three inputs: A
(minuend), B (subtrahend) and a B-in (borrow bit) and it produces two outputs: D
(difference) and B-out (borrow out). The Truth table are shown below.
Block Diagram:
Circuit Diagram:
Truth Table:
xxvii
Alternative ways:
1) Through NAND Gate Only:
xxviii