CO Lab File
CO Lab File
Session 2024-25
Submitted By
Name:
Roll No:
Branch:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Table of Contents
Syllabus
List of Experiments
Index
Experiments
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Syllabus
The following list outlines the syllabus for Computer Organisation Lab (KCS-352) as prescribed
byDr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh, Lucknow.
The syllabus can also be viewed on the university website:
https://fms.aktu.ac.in/Resources/aktu/pdf/syllabus/Syllabus2324/B.Tech_2nd_Yr_CSE_v2.pdf
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
LAB PLAN
SUBJECT NAME: COMPUTER ORGANIZATION LAB
SUBJECT CODE: BCS-352
i) Course Objective:
To prepare students to perform the analysis and design of various digital electronics
circuits.
Mapping of Course Outcomes with Program Outcomes and Program Specific Outcomes:
COs 1 2 3 4 5 6 7 8 9 10 11 12 1 2
CO-1 2 2 2 2
CO-2 2 2 2 2
CO-3 2 2 2 2
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
List of Experiments
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
INDEX
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 1
AIM: To identify various logic gate ICs, viz. AND, OR, NOT, NAND, NOR, Ex-OR and verify
their truth tables.
APPARATUS USED:
Bread Board
Power supply
Multimeter
Hookup wire
LEDs
ICs 7400, 7402, 7404, 7408, 7432, 7486
THEORY: Logic gate is a digital circuit with one or more input but only one output. AND, OR,
NAND, NOR, NOT, Ex-OR Gates are some examples of Logic Gates.
AND Gate: AND Gate operation is represented by (A.B). In AND Gate, when two or more than
two input becomes high then output becomes high
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
OR Gate: The OR gate has two or more than two input and one output. This operation is
represented by a plus sign (A+B). The output voltage of OR Gate is high if any or all of the
input voltages are high.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
The 7400 IC is used for NAND GATE. The pin diagram of 7400 IC is shown below:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
NOR Gate: The function of NOR Gate is compliment of OR Gate. The logic equation is (A+B)’.
Output becomes low if any of the input becomes high.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
The 7486 IC is used for XOR GATE. The pin diagram of 7486 IC is shown below:
RESULTS:
PRECAUTIONS:
ICs should be placed in the middle of bread-board.
All the wires should be tightly connected.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Question: Draw the basic logic gates using minimum number of universal gates.
Question: Draw the XOR and XNOR gates using minimum number of universal gates.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 2
AIM: To implement circuits for Binary-to-Gray & Gray-to-Binary code conversions.
APPARATUS USED:
Bread Board & Power supply
Hookup wire
LEDs
IC 7486(XOR gate)
THEORY:
Gray code is also known as Cyclic Code, Reflected Binary Code (RBC) or Reflected Binary (RB).
It is defined as an ordering of the binary number system such that each incremental value can only
differ by one bit. In gray code, while traversing from one step to another step only one bit in the
code group changes. That is to say that two adjacent code numbers differ from each other by only
one bit.
Binary to Gray Code Converter: The logical circuit which converts the binary code to equivalent
gray code is known as binary to gray code converter. It works according to the following steps:
1. The MSB (Most Significant Bit) of the gray code will be exactly equal to the first bit of the
given binary number.
2. The second bit of the code will be exclusive-or (XOR) of the first and second bit of the
given binary number, i.e. if both the bits are same the result will be 0 and if they are
different the result will be 1.
3. The third bit of gray code will be equal to the exclusive-or (XOR) of the second and third
bit of the given binary number. Thus the binary to gray code conversion goes on. The
circuit is given below to illustrate these steps.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Wires connections
Patch-cord connections
Air Effect
Environmental Factors
RESULT: With the help of 7486(XOR) IC we successfully implemented the binary to gray & gray
to binary code converter.
CONCLUSION: By using 7486 IC and the connections shown in the circuit diagrams, we can
perform the operation of binary to gray & gray to binary code converter.
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Be sure about the locations of extinguishers and first aid kits in lab.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Question: Given two binary numbers X=1010100 and Y=1000011, perform the
subtraction using 1’s and 2’s complements. (i) X–Y (ii) Y–X
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 3
AIM: To implement HALF ADDER & FULL ADDER circuits using basic logic gates and verify
their truth tables.
APPARATUS USED:
Bread Board
Power supply
Hookup wire
LEDs
ICs 7486, 7408 and 7432
THEORY: An adder is a digital logic circuit in electronics that implements addition of numbers.
In many computers and other types of processors, adders are used to calculate addresses, similar
operations and table indices in the ALU and also in other parts of the processors. These can be
built for many numerical representations like excess-3 or binary coded decimal. Adders are
classified into two types: half adder and full adder. The half adder circuit has two inputs: A and B,
which add two input digits and generate a Carry and Sum as output. The full adder circuit has three
inputs: A, B and C, which add the three input numbers and generates a Carry and Sum.
HALF ADDER:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Circuit Diagram
FULL ADDER:
Circuit Diagram
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Mount the ICs on the Bread-Board.
Connect pin-7 of each IC to GND and pin-14 to +5v supply using patch-cords.
Connect patch cords and wires according to circuit diagram.
Observe the results by using LED light conditions and verify them with the provided truth
table.
RESULTS:
PRECAUTIONS:
ICs should be placed in the middle of bread-board.
All the wires should be tightly connected.
Question: Draw the block diagram of 1’s complement circuit for 4-bit binary number
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 4
AIM: To Implement 4-bit parallel adder using 7483 IC.
APPARATUS USED:
Bread Board Trainer Kit
Power supply
Hookup wire
Patch Cords
IC 7483 (4-bit Parallel/ Binary Adder)
THEORY: A binary parallel adder is a digital circuit that produces the arithmetic sum oftwo
binary numbers in parallel. It consists of full-adders connected in a chain, with theoutput carry
from each full-adder connected to the input carry of the next full-adder in thechain. An n-bit
parallel adder requires n full-adders. It can be constructed from 4-bit, 2bit, and I-bit full-adders ICs
by cascading several packages. The output carry from onepackage must be connected to the input
carry of the one with the next higher-order bits.The 4-bit full-adder is a typical example of an MSI
function. It can be used in manyapplications involving arithmetic operations. Observe that the
design of this circuit by theclassical method would require a truth table with 29 = 512 entries, since
there are nineinputs to the circuit. By using an iterative method of cascading an already known
function, we were able toobtain a simple and well-organized implementation.
Block Diagram of 4-bit Binary Adder:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
RESULT:
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Be sure about the locations of extinguishers and first aid kits in lab.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 5
AIM: To implement One & Two Bit Comparator using logic gates.
APPARATUS USED:
THEORY:Single Bit Magnitude Comparator:- A comparator used to compare two bits, i.e., two
numbers each of single bit is called a single bit comparator. It consists of two inputs for allowing
two single bit numbers and three outputs to generate less than, equal and greater than comparison
outputs. The figure below shows the block diagram of a single bit magnitude comparator. This
comparator compares the two bits and produces one of the 3 outputs as L (A<B), E (A=B) and G
(A>B).
The truth table for the single bit comparator is given below. When A0 B0 = 00 & 11, both inputs
are equal, therefore A=B output will be high. When A0 B0 = 01, B is more than A and hence AB is
active.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
From the truth table logical expressions for each output can be expressed as
By using these Boolean expressions, we can implement a logic circuit for this comparator
using two AND gates, one NOT gate and one Ex-NOR gate as shown in below figure.
AND gates are used to find whether a binary digit is less than greater than another bit
whereas Ex-NOR gate is used to find whether two binary numbers are equal or not.
In the figure, one AND gate has inputs of A0 (B0) ̅ and another has inputs (A0) ̅ B0.
Therefore, one AND gate output is 1 if A0 > B0 (i.e., A0 =1 and B0 =0) and is zero if A0 <
B0 (i.e., A0 =0 and B0 =1). Similarly, other AND gate output is one if A0 < B0 (i.e., A0 =0
and B0 =1) and is zero if A0 > B0 (i.e., A0 =1and B0 =0).
The Ex-NOR gate has inputs A0 B0, hence the output of the Ex-NOR gate will be 1 if A0 =
B0 and the output will be 0 if A0 is not equal to B0.
2-Bit Comparator:
A 2-bit comparator compares two binary numbers, each of two bits and produces their
relation such as one number is equal or greater than or less than the other. The figure below
shows the block diagram of a two-bit comparator which has four inputs and three outputs.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
The first number A is designated as A = A1A0 and the second number is designated as B = B1B0.
This comparator produces three outputs as G (G = 1 if A>B), E (E = 1, if A = B) and L (L = 1 if
A<B).
The truth table of this comparator is shown below which depicting various input and output states.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
By using above obtained Boolean equation for each output, the logic diagram can be
implemented by using four NOT gates, seven AND gates, two OR gates and two Ex-NOR
gates.
The figure below shows the logic diagram of a 2-bit comparator using basic logic gates. It
is also possible to construct this comparator by cascading of two 1-bit comparators.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Wires connections
Patch-cord connections
RESULT:
CONCLUSION: By using ICs, we can perform the operation of 1-bit and 2-bit comparator.
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Be sure about the locations of extinguishers and first aid kits in lab.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Question: Draw the logical table and circuit diagram for 4-bit Magnitude Comparator.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 6
AIM: To implement and verify the truth table of 3x8 line decoder.
APPARATUS USED:
Bread Board Trainer Kit
Power supply
Hookup wire
Patch Cords
IC 74138
THEORY: A decoder is a circuit that changes a code into a set of signals. It is called a decoder
because it does the reverse of encoding. A common type of decoder is the line decoder which takes an
n-digit binary number and decodes it into 2n data lines. Examples are 1 x 2 decoder, 2 x 4 decoder, 3x8
decoder.
TRUTH-TABLE of 3 X 8 DECODER:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Connect the IC to the Bread-Board.
Connect pin-8 of the IC to GND and Connect pin-16 of the ICs to +5v supply using patch-cords.
Connect patch cords and wires according to circuit diagram.
Observe the result by using LED lights conditions.
RESULT:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
CONCLUSION: By using 74318 IC, we can perform decoding of the given 3bit data.
PRECAUTIONS:
ICs should be placed in the middle of bread-board.
All the wires should be tightly connected.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 7
AIM: To implement and verify the truth table of 4x1 and 8x1 MUX.
APPARATUS USED:
Bread Board &Trainer Kit
Power supply
Hookup wire
Patch Cords
IC 7404(NOT gate)
IC 7408(AND gate)
IC 7432(OR gate)
IC 7411(3 I/P AND gate)
IC 74151(8x1 MUX)
THEORY: A multiplexer is a device which has a number of input lines, a number of selection
lines & one output line. It steers one of 2n inputs to a single output line, using n selection lines. It is
also known as a data selector.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Truth-table of 4 X 1 Multiplexer:
Logic-diagram of 4 X 1 Multiplexer:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Connect the IC to the Bread-Board.
Connect the diagonal pins of the IC to GND &+5V supply respectively using patch-cords.
Connect patch cords and wires according to circuit diagram.
Observe the result by using LED lights conditions.
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Be sure about the locations of extinguishers and first aid kits in lab.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 8
AIM: To verify the truth tables and excitation tables of RS, D, JK and T D flip-flops.
APPARATUS USED:
Bread Board &Trainer Kit
Power supply
Hookup wire
Patch Cords
IC 7400 (NAND gate IC)
THEORY:
The basic building – block of any counter and shift register is a flip flop. Both counters and shift
registers contain chains of flip-flops. Different types of counters are realized by changing the feed-
back connection in the chain flip-flops. Just as NAND gate is the universal building block for logic
systems, the flip-flop is the basic element of memory units.
S-R flip-flop:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
D flip-flop:
J-K flip-flop:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
T flip-flop:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
RESULT:
CONCLUSION: By using 7400(NAND) ICs, we can implement and perform the operation of all
the flip-flops. And use a flip-flop as a one bit storage element.
PRECAUTIONS:
ICs should be placed in the middle of bread-board.
All the wires should be tightly connected.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 9
AIM: Design and verify a 4-bit asynchronous counter.
APPARATUS USED:
IC Trainer kit
patch cords
JK-Flip-Flop (IC 7473)
THEORY: Ripple counters are so named because the count is like a chain reaction that ripples
through the counter because of the time involved. This effect will become more evident
with the explanation of the following circuit. The ripple counter is also called
an asynchronous counter. Asynchronous means that the events (setting and resetting of flip-
flops) occur one after the other rather than all at once. Because the ripple count is
asynchronous, it can produce erroneous indications when the clock speed is high. A high-
speed clock can cause the lower stage flip-flops to change state before the upper stages
have reacted to the previous clock pulse. The errors are produced by the flip-flops’ inability
to keep up with the clock.
Block Diagram:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Wires connections
Patch-cord connections
Damage IC
RESULT:
CONCLUSION: By using ICs, we can perform the operation of binary to gray code converter.
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Power supply voltage should be +5 volt DC.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Experiment No. 10
AIM: To Design, and verify the 4-bit synchronous counter.
APPARATUS USED:
J-K Flip-Flop (IC 7473 or IC 7476)
AND Gate (IC 7408)
Bread Board Trainer Kit
patch cords
THEORY: Synchronous counters are simple state machines made out of flip flops and logic gates.
They have two parts, a register made out of flip flops and a decoder made out of logic gates. A
register is a simple group of flip flops that are all clocked at the same time. In this way they can
hold the counters output value until the next clock cycle. The decoder, decodes the current count
and generates the correct value for the next count to the flop flops. For example in a simple up
counter the decoder would always output the current count plus one. The major advantage of
Synchronous Counters is that all the bits of their output change at the same time.
Block Diagram:
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
PROCEDURE:
Wires connections
Patch-cord connections
Air Effect
Environmental Factors
RESULT:
PRECAUTIONS:
1 ICs should be placed in the middle of bread-board.
2 All the wires should be tightly connected.
3 Be sure about the locations of extinguishers and first aid kits in lab.
BCS -352
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
BCS -352