LAB-MANUAL-COMPUTER-LOGIC
LAB-MANUAL-COMPUTER-LOGIC
LAB-MANUAL-COMPUTER-LOGIC
DESIGN
Objective: To understand the digital logic and create various systems by
using these logics.
Aim:-
Introduction to digital electronics lab- nomenclature of digital ICs, specifications, study of
the data sheet, concept of Vcc and ground, verification of the truth tables of logic gates
using TTL ICs.
Apparatus Required:-
Digital lab kit, single strand wires, breadboard, TTL IC’s
Gates IC NO.
AND 7408
OR 7432
NAND 7400
NOR 7402
NOT 7404
XOR 74136
Theory:-
Logic gates are idealized or physical devices implementing a Boolean function, which it
performs a logical operation on one or more logical inputs and produce a single output.
Depending on the context, the term may refer to an ideal logic gate, one that has for
instance zero rise time and unlimited fan out or it may refer to a non-ideal physical device.
1. Basic Gates
2. Universal Gates
3. Advanced Gates
Basic Gates
1. AND gate: - Function of AND gate is to give the output true when both the inputs
are true. In all the other remaining cases output becomes false. Following table
justifies the statement:-
1 1 1
1 0 0
0 1 0
0 0 0
IC 7408
2. OR gate: - Function of OR gate is to give output true when one of the either input
are true. In the remaining case output becomes false. Following table justify the
statement:-
3. NOT gate: -Function of NOR gate is to reverse the nature of the input. It
converts true input to false and vice versa. Following table justifies the statement:-
Input Output
1 0
0 1
IC 7404
Universal Gates
1. NAND gate: -Function of NAND gate is to give true output when one of the
two provided inputs are false. In the remaining output is true case. Following table
justifies the statement: -
1 1 0
1 0 1
0 1 1
0 0 1
IC 7400
2. NOR gate: - NOR gate gives the output true when both the two provided input
are false. In all the other cases output remains false. Following table justifies the
statement: -
1 1 0
1 0 0
0 1 0
0 0 1
IC 7402
Advanced Gates
1. XOR gate: - The function of XOR gate is to give output true only when both the
inputs are true. Following table explain this: -
1 1 0
1 0 1
0 1 1
0 0 0
IC 74136
Procedure: -
Place the breadboard gently on the observation table.
Fix the IC which is under observation between the half shadow line of
breadboard, so there is no shortage of voltage.
Connect the wire to the main voltage source (Vcc) whose other end is connected
to last pin of the IC (14 place from the notch).
Connect the ground of IC (7th place from the notch) to the ground terminal
provided on the digital lab kit.
Give the input at any one of the gate of the ICs i.e. 1st, 2nd, 3rd, 4th gate by using
connecting wires. (In accordance to IC provided).
If led glows red then output is true, if it glows green output is false, which is
numerically denoted as 1 and 0 respectively. The Color can change based on the
IC manufacturer it’s just verification of the Truth Table not the color change.
Result: -
All gates are verified. Observed output matches theoretical concepts.
Precautions: -
All connections should be made neat and tight.
Digital lab kits and ICs should be handled with utmost care.
While making connections main voltage should be kept switched off.
Never touch live and naked wires.
Pre-Experiment Questions: -
1. What is a logic gate?
Ans: Logic gate is a physical device implementing a Boolean function and performs
Logical operation on one or more logic inputs and produces a single logic output.
Ans: NAND and NOR gates are called universal gates as any type of logic gates or logic
(xy)l = xl + yl
3. Which are the logic gates whose all output entries are logic 1 except for one
entry there is logic 0?
1. R-S flip-flop
2. J - K flip-flop
3. T Flip-Flop
4. D Flip-Flop
Apparatus: - IC 7400 (NAND Gate), IC 7402 (NOR Gate), IC 7408 (AND Gate).
Theory: -In case of sequential circuits, the effect of all previous inputs on
the outputs is represented by a state of the circuit. Thus, the output of the circuit at any
time depends upon its current state and the input. These also determine the next
state of the circuit. The relationship that exists among the inputs, outputs, present
states and next states can be specified by either the state table or the state diagram.
Flip-Flop: -The basic one-bit digital memory circuit is known as flip-flop. It can store
either 0or 1. Flip-flops are classifieds according to the number of inputs.
R-S Flip-Flop: - The circuit is similar to SR latch except enable signal is replaced by
clock pulse.
Logic Diagram
Logic Diagram
Characteristic table for D flip flop
Logic Diagram
Logic Diagram
Procedure:-
1. Conn e c t i o n s a r e m a d e as p er circ uit di a gr a m.
2. Verify truth-tables for various combinations of input .
1) What is a latch?
Ans: Storage elements that operate with signal levels are referred to as latches.
Ans: Storage elements controlled by a clock transition are called flip flop.
5) What happens to the JK flip flop if the J input is treated as an inverter is wired
between J and K inputs?
Ans: JK flip flop becomes D flip flop
3) Which is the basic sequential building block in which the output follows the data
input as long as the enable input is active?
Ans: D latch
Ans: The algebraic description of the next state of the flip flop is called characteristic
equation.