Computer Basic and Cpu
Computer Basic and Cpu
Computer Basic and Cpu
Basic Computer Organization, Units of a computer, CPU, ALU, memory hierarchy, registers,
input-output devices
Over the several years the size, processing speed, cost and reliability of computers has changed.
But, the basic structure of computer is still the same as was given by Von Neumann in the year
1945 has not changed. According to Von Neumann architecture of computer every digital
computer with these components:
1. Input Unit
2. Output Unit
3. Storage Unit
4. Arithmetic Logic Unit
5. Control Unit Storage Unit
Secondary
Instructi Storage Information or
Input Unit Output Unit Result
Primary
Storage
Control
Unit
Arithmetic Logic
Unit
Input unit connects the external environment with internal computer system. It provides data and
instructions to the computer system. Commonly used input devices
are keyboard, mouse, magnetic tape, scanner, webcam, joystick etc.
Input unit performs following tasks:
Accept the data and instructions from the outside environment.
Convert it into machine language.
Supply the converted data to computer system.
Output Unit
It connects the internal system of a computer to the external environment. It provides the results
of any computation, or instructions to the outside world. Some output devices
are printers, monitor, plotter, speaker etc.
Storage Unit
This unit holds the data and instructions. It also stores the intermediate results before these are
sent to the output devices. It also stores the data for later use.
The storage unit of a computer system can be divided into two categories:
Primary Storage: This memory is used to store the data which is being currently executed.
It is used for temporary storage of data. The data is lost, when the computer is switched off.
RAM and ROM are used as primary storage memory.
Secondary Storage: The secondary memory is slower and cheaper than primary memory. It
is used for permanent storage of data. Commonly used secondary memory devices are hard
disk, CD etc.
Control Unit
It controls all other units of the computer. It controls the flow of data and instructions to and
from the storage unit to ALU. Thus it is also known as central nervous system of the computer.
Memory Units
Computer store data in binary format, binary format contain only two characters 0 and 1. All the
information stored/represented in the computer is a code which contain a specific combination of
0’s and 1’s. The memory units are used to measure the size of data in computer. The memory
units are as follow.
2. Internal Memory or Primary Memory – Thesee memories can directly communicate with
CPU. Examples of internal memory: Cache Memory & CPU registers.
On the basis of storage capacity, access time and cost per bit the various types of memories can
be divided into 5 Levels :
Level 0 - CPU Registers : Processor
rocessor registers are quickly accessible locations available to a
computer's CPU. Registers usually consist of a small amount of fast storage, some registers have
specific hardware functions, and may be read
read-only or write-only
Level 1 - Cache Memory : Cache is hardware or software component that stores data so that
future requests for that data can be served faster; the data stored in a cache might be the result of
an earlier computation or a copy of data stored elsewhere. Cache is made up of SRAM (Static (Stat
Random access Memory).
Level 2 - Main Memory : Main memory is used to store the data and instruction that are to be
executed by the CPU. It also store the results obtained after the processing of instructions. RAM
and ROM are two types of main memory.
Level 3 - Magnetic Disk
isk Storage : It is the most commonly used secondary memory. It store the
data on the surface of one or more rotating disks by using magnetic mechanism. HDD and SDD
are two categories of magnetic disk storage.
Level 4 – Optical Disk and Magnetic Tape : Optical disk and magnetic disk allow sequential
access of data. These memories are mostly used for backup and archiving purpose.
As indicated in the
diagram, the storage
capacity and access
time increases as we
move down the
memory hierarchy
levels where as the
cost per bit to store
increase as we move
up in the memory
hierarchy levels.
Memory Hierarchy
The word “random” refers to the fact that any memory location of RAM can be accessed at constant
time regardless the physical location.
RAM is Volatile or Temporary in nature i.e. Once the
system is switched off , the information stored on
RAM gets erased.
RAM is read and write memory, it can be read as well
as write as per the processing requirements.
RAM is a semiconductor memory and is very costly in
comparison to secondary memory.
RAM size is limited, the storage size of RAM
available these days varies from MB’s to GB’s.
Example 512 MB, 1GB, 2GB, 4GB,8GB etc.
RAM are of two types
o DRAM (Dynamic RAM) : In this memory the data is
continuously refreshed because Dynamic RAM looses data
in few milliseconds, It stores data in the form of charge on
capacitor which leaks away in short time. Dynamic memory
is slower and cheaper than Static RAM.
o SRAM (Static RAM) : In this memory data remained stored
without the need of periodic refresh. Static RAM store uses
transistors for data storage; Static RAM is fast and costly as
compare to DRAM. One of the most popular example of
SRAM is Cache memory.
2. ROM (Read Only Memory) : ROM is built in memory of a computer system. It is very small in size
and store firmware, which store instruction which are necessary to run or boot the system.
Primary memory has two main limitations: Limited storage capacity and volatility. To overcome
these limitations almost all computers use additional memory called secondary or auxiliary
memory. Secondary memory is permanent, cheap and provides high storage capacity.
There are two methods of accessing information from secondary storage devices : direct access
and sequential access.
In sequential access the desired information is accessed by searching the data in the sequential
manner starting from the first record until the desired record is found, thus the access time here
depends upon the distance of the desired information from the beginning.
In direct access method the information is directly fetched from its storage location. In this case
search time is independent from the location of the data storage.
Magnetic Disks: Magnetic disks are the most popular direct access secondary storage devices. A
magnetic disk is made up of a thin circular plate / platter of metal or plastic. Its surface on both
sides has a coating of magnetic material such as iron oxide that can record data by
magnetization. Data is recorded on its coated surface as tiny magnetized and non magnetized
spots (Represents 0 and 1).
Storage organization
A magnetic disk’s surface has a number of invisible, concentric circles called tracks. A magnetic
disk also has a pie shaped segments. If there are eight such segments than each track has eight
parts. Each part of the track is called a sector. Typically a sector contains 512 bytes and every
sector has a unique address. Magnetic disks store data in EBCDIC (Extended Binary coded
decimal Interchange Code).
The disk drive has an access arm assembly having read/write heads for each recordable surface
of the disk pack. All access arms of the assembly moves together, for fast data access the disk
packs use the concept of cylinder for data organization. A set of corresponding tracks on all
recording surfaces of a disk pack together form a cylinder.