Coa Lab Mannual With Algorithms and Procedures
Coa Lab Mannual With Algorithms and Procedures
1 DATE:
COMPONENTS OF A COMPUTER
AIM : To assemble a computer system.
1. POWER SUPPLY
A power supply converts Ac power from an outlet into Dc power for the computer. Most
modern desktop personal computer power supplies conform to the ATX specification
which includes form factor and voltage tolerances. While an ATX power supply is
connected to the mains supply, it always provides a 5-volt standby (5VSB) power so that
the standby functions on the computer and certain peripherals are powered.
2. HEAT SINK FAN
Forces air over the heat sink. A heat sink and fan (HSF) is an active cooling
solution used to cool down integrated circuits in computer systems,
commonly the central processing unit (CPU). As the name suggests, it is
composed of a passive cooling unit (the heat sink) and a fan.
3. VIDEO ADAPTER CARD
A graphics card (also called a video card, display card, graphics adapter, GPU, VGA
card/VGA, video adapter, or display adapter) is an expansion card which generates a feed of
output images to a display device, such as a computer monitor.
4. NIC
The Full Form of NIC is a Network Interface Card. NIC stands for Network Interface Card: It is
a card that holds an Ethernet adapter for connecting the computer to a wired network. It is also
called Ethernet or physical or network card.
5. WIRELESS NIC
A wireless network interface controller (WNIC) is a network interface controller which
connects to a wireless network, such as Wi-Fi or Bluetooth, rather than a wired network, such
as a Token Ring or Ethernet. A WNIC, just like other NICs, works on the layers 1 and 2 of the
OSI model and uses an antenna to communicate via radio waves.
6. OPTICAL DRIVE
In computing, an optical disc drive is a disc drive that uses laser light or electromagnetic waves
within or near the visible light spectrum as part of the process of reading or writing data to or
from optical discs. Some drives can only read from certain discs, but recent drives can both read
and record, also called burners or writers (since they physically burn the organic dye on write-
once CD-R, DVD-R and BD-R LTH discs). Compact discs, DVDs, and Blu-ray discs are
common types of optical media which can be read and recorded by such drives.
7. FLOPPY DRIVE
A floppy disk or floppy diskette (casually referred to as a floppy, or a diskette) is an obsolescent
type of disk storage composed of a thin and flexible disk of a magnetic storage medium in a
square or nearly square plastic enclosure lined with a fabric that removes dust particles from the
spinning disk. Floppy disks store digital data which can be read and written when the disk is
inserted into a floppy disk drive (FDD) connected to or inside a computer or other device.
8. HARD DISK DRIVE
A hard disk drive (HDD), hard disk, hard drive, or fixed disk[b] is an electro-mechanical data
storage device that stores and retrieves digital data using magnetic storage with one or more
rigid rapidly rotating platters coated with magnetic material. The platters are paired with
magnetic heads, usually arranged on a moving actuator arm, which read and write data to the
platter surfaces.[2] Data is accessed in a random-access manner, meaning that individual blocks
of data can be stored and retrieved in any order.
9. SATA CABLE
SATA (also referred to as Serial ATA) stands for Serial Advanced Technology Attachment, an
industry-standard bus interface for connecting a computer's host bus adapter to storage devices
such as hard disk drives (HDD), optical drives and solid-state drives (SSD).
10. MOTHERBOARD
A motherboard (also called mainboard, main circuit board,[1] mb, mboard, backplane board,
base board, system board, logic board (only in Apple computers) or mobo) is the main printed
circuit board (PCB) in general-purpose computers and other expandable systems.
11. PATA CABLE
PATA, short for Parallel ATA, is an IDE standard for connecting storage devices like hard
drives and optical drives to the motherboard. PATA generally refers to the types of cables and
connections that follow this standard. It's important to note that the term Parallel ATA used to
simply be called ATA. ATA was retroactively renamed to Parallel ATA when the newer Serial
ATA (SATA) standard came into being.
12. RAM
Random-access memory (RAM) is a form of computer memory that can be read and changed in
any order, typically used to store working data and machine code. A random-access memory
device allows data items to be read or written in almost the same amount of time irrespective of
the physical location of data inside the memory, in contrast with other direct-access data storage
media (such as hard disks, CD-RWs, DVD-RWs and the older magnetic tapes and drum
memory), where the time required to read and write data items varies significantly depending
on their physical locations on the recording medium, due to mechanical limitations such as
media rotation speeds and arm movement.
• Install the internal cards to its socket and attach the cables or power cable
to it. The selection of right socket or slot is required as per the type of
socket.
• Cover the tower by placing it and pressing towards front side and screw it.
• Connect the external devices with CPU at its appropriate socket. It includes
mouse and keyboard at PS2 or USB connectors. Monitor at the video output
socket. Connect the power cable to the back of tower in SMPS. Plug in the
power cable to the electric board.
CODE:
data segment
a db 15h
b db 12h
data ends
code segment
assume cs: code, ds: data
start:
mov ax, data
mov ds, ax
mov al, a
mov bl, b
add al, bl
mov c, ax
int 3
code ends
end start
ALGORITHM:
Load data from offset 500 to register AL (first number)
Load data from offset 501 to register BL (second number)
Add these two numbers (contents of register AL and register BL)
Apply DAA instruction (decimal adjust)
Store the result (content of register AL) to offset 600
Set register AL to 00
Add contents of register AL to itself with carry
Store the result (content of register AL) to offset 601
Stop
OUTPUT :
(Snapshot)
OUTPUT:
(Snapshot)
OUTPUT :
(Snapshot)
OUTPUT :
(Snapshot)
OUTPUT :
(Snapshot)
CIRCUIT DIAGRAM :
PROCEDURE:
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.
A full adder logic is designed in such a manner that can take eight inputs together to create a
byte-wide adder and cascade the carry bit from one adder to another.
we use a full adder because when a carry-in bit is available, another 1-bit adder must be used
since a 1-bit half-adder does not take a carry-in bit.
A 1-bit full adder adds three operands and generates 2-bit results.
OUTPUT :
(Snapshot)
RESULT : Here, we add three one bit binary numbers, two operands & a carry bit.
EXPERIMENT NO. 9 DATE:
CIRCUIT DIAGRAM :
PROCEDURE:
Half adder is the simplest of all adder circuits.
Half adder is a combinational arithmetic circuit that adds two numbers and produces a sum bit
(s) and carry bit (c) both as output.
The addition of 2 bits is done using a combination circuit called a Half adder.
The input variables are augend and addend bits and output variables are sum & carry bits.
A and B are the two input bits.
OUTPUT:
(Snapshot)
RESULT : Here, we add two single digit binary numbers & results in two digit
out.
EXPERIMENT NO. 10 DATE:
CIRCUIT DIAGRAM :
PROCEDURE:
OUTPUT :
(Snapshot)
RESULT : Hence, ripple carry adder was constructed in the simulator & it’s
characteristics were studied.
EXPERIMENT NO. 11 DATE:
CIRCUIT DIAGRAM :
PROCEDURE:
In order to perform these repeated functions, adder circuits are required and those are half adder,
full adder, carry lookahead adder.
Calculate every digit position to know whether that position is propagating a carry bit that
comes from its right position.
Then combine the calculated values to produce the output for every set of digits where the group
generates a propagation bit that comes from the right position.
OUTPUT:
(Snapshot)
RESULT : Hence, carry look ahead adder was constructed & char. were studied.
EXPERIMENT NO. 12 DATE:
2-BIT MULTIPLIER
AIM : To design and implement a carry look ahead adder.
SOFTWARE USED : Logic gate simulator
TRUTH TABLE :
CIRCUIT DIAGRAM :
PROCEDURE:
To multiply two binary numbers, AND gates, shifters and adders are required.
Product of N*M bit binary numbers in of (N+M) bits.
N*M AND gates are required to generate partial products of two M*N bit binary
numbers.
Number of adders required = N+M-2
Speed limiting factor here is to sum up partial products.
OUTPUT :
(Snapshot)
CIRCUIT DIAGRAM :
PROCEDURE:
the full adder FA1 adds A1 and B1 along with the carry C1 to generate the sum S1
(the first bit of the output sum) and the carry C2 which is connected to the next
adder in chain.
Next, the full adder FA2 uses this carry bit C2 to add with the input bits A2 and B2
to generate the sum S2(the second bit of the output sum) and the carry C3 which is
again further connected to the next adder in chain and so on.
The process continues till the last full adder FAn uses the carry bit Cn to add with
its input An and Bn to generate the last bit of the output along last carry bit Cout.
The parallel binary subtractor is formed by combination of all full adders with
subtrahend complement input.
This operation considers that the addition of minuend along with the 2’s
complement of the subtrahend is equal to their subtraction.
Firstly the 1’s complement of B is obtained by the NOT gate and 1 can be added
through the carry to find out the 2’s complement of B. This is further added to A to
carry out the arithmetic subtraction.
The process continues till the last full adder FAn uses the carry bit Cn to add with
its input An and 2’s complement of Bn to generate the last bit of the output along
last carry bit Cout.
OUTPUT :
(Snapshot)
RESULT : Binary parallel adder & subtractor was constructed & it’s char. was
studied.
EXPERIMENT NO. 14 DATE:
OUTPUT:
(Snapshot)
RESULT : Carry save multiplier was constructed in simulator & char. were studied.
EXPERIMENT NO. 15 DATE:
MULTIPLEXER
AIM : To design and implement a Multiplexer.
SOFTWARE USED : Logic gate simulator TRUTH
TABLE :
(4*1)
(8*1)
(16*1)
CIRCUIT DIAGRAM :
PROCEDURE:
2×1 Multiplexer:
In 2×1 multiplexer, there are only two inputs, i.e., A0 and A1, 1 selection line, i.e., S0
and single outputs, i.e., Y. On the basis of the combination of inputs which are
present at the selection line S0, one of these 2 inputs will be connected to the
output.
4×1 Multiplexer:
In the 4×1 multiplexer, there is a total of four inputs, i.e., A0, A1, A2, and A3, 2
selection lines, i.e., S0 and S1 and single output, i.e., Y. On the basis of the
combination of inputs that are present at the selection lines S0 and S1, one of these
4 inputs are connected to the output.
8 to 1 Multiplexer
In the 8 to 1 multiplexer, there are total eight inputs, i.e., A0, A1, A2, A3, A4, A5, A6,
and A7, 3 selection lines, i.e., S0, S1and S2 and single output, i.e., Y. On the basis of
the combination of inputs that are present at the selection lines S0, S1, and S2, one
of these 8 inputs are connected to the output.
16 to 1 Multiplexer:
In the 16 to 1 multiplexer, there are total of 16 inputs, i.e., A0, A1, …, A16, 4
selection lines, i.e., S0, S1, S2, and S3 and single output, i.e., Y. On the basis of the
combination of inputs that are present at the selection lines S0, S1, and S2, one of
these 16 inputs will be connected to the output.
OUTPUT :
(Snapshot)
PROCEDURE:
An ALU performs basic arithmetic and logic operations. Examples of arithmetic operations are
addition, subtraction, multiplication, and division. Examples of logic operations are comparisons
of values such as NOT, AND, and OR.
All information in a computer is stored and manipulated in the form of binary numbers, i.e. 0
and 1. Transistor switches are used to manipulate binary numbers since there are only two
possible states of a switch: open or closed. An open transistor, through which there is no current,
represents a 0. A closed transistor, through which there is a current, represents a 1.
Operations can be accomplished by connecting multiple transistors. One transistor can be used
to control a second one - in effect, turning the transistor switch on or off depending on the state
of the second transistor. This is referred to as a gate because the arrangement can be used to
allow or stop a current.