Chapter 2
Chapter 2
ARCHITECHTURE
Registers
Registers are the temporary storage areas for holding various types of
information such as data, instructions, addresses, and the intermediate
results of calculations. Registers can be thought of as CPU’s working
memory, a special additional storage location that offers the advantage
of speed.
Central Processing Unit (Contd.)
Control Unit (CU)
The control unit of the CPU contains circuitry that uses electrical
signals to direct the entire computer system to carry out, or execute,
stored program instructions.
Main Memory Unit
Memory is that part of the computer that holds data and instructions
for processing. The CPU accesses the main memory in random
manner, that is, the CPU can access any location of this memory to
either read information from it or store information in it. The primary
memory is of two types: The first is called Random Access Memory
(RAM) and the second is Read Only Memory (ROM).
Cache Memory
The cache is a very high speed, expensive piece of memory, which is
used to speed up the memory retrieval process. The idea of introducing
cache is that this extremely fast memory would store data that is
frequently accessed and if possible, the data that is around it. This is to
achieve the quickest possible response time to the CPU. Cache memory
can be categorised into three levels: L1 cache, L2 cache, and L3 cache.
Computer Memory and Storage
Computer memory refers to the electronic holding place for
instructions and data where the processor can reach quickly. It can be
classified into two broad categories: primary memory (to process the
data and hold the intermediate results) and secondary memory (to
store the output).
The primary memory allows the computer to store data for immediate
manipulation and to keep track of what is currently being processed. It
is volatile.
To store the data permanently, a computer requires some non-volatile
storage medium like hard disk. This kind of storage is known as
secondary memory. It is non-volatile. Such memories store all the data
(files) and instructions (computer programs) even after the power is
turned off.
When we talk about memory, we generally refer to the primary
memory only, and when we talk about storage, secondary memory is
referred.
Various units used to measure computer memory are as follows:
Bit: It is smallest unit of data and can hold only one of two
values: 0 or 1.
Byte: A unit of eight bits is known as a byte.
Kilobyte: A kilobyte is equal to 1024 bytes.
Megabyte: It comprises 1024 kilobyte and is the standard
unit of measurement for RAM.
Gigabyte: It consists of 1024 megabytes and is the
standard unit of measurement for hard disks.
Terabyte: It refers to 1024 gigabytes and is usually
associated with super computers only.
Memory Hierarchy
Random Access Memory (RAM)
RAM allows the computer to store data for
immediate manipulation and to keep track of what is
currently being processed.
It is the place in a computer where the operating
system, application programs, and data in current
use are kept so that they can be accessed quickly by
the computer’s processor.