IT - Chapter 3
IT - Chapter 3
LJL 1
IT – Chapter 3
events during processing etc.
recently fetched holds the CPU’s Instruction Set: list of all
3 PROGRAM COUNTER (PC) operations that the CPU can perform
contains the address of next FUNCTION: considered synonymous with that of
instruction to be processed a conductor of an orchestra. The conductor in an
4 Memory Address Register (MAR) orchestra does not perform any work by itself but
contains the address of next location manages the orchestra and ensures that the
in the memory to be accessed members of orchestra work in proper
5 Memory Buffer Register (MBR) coordination.
temporarily stores data from memory or
the data to be sent to memory MEMORY UNIT
6 Data Register (DR)
stores the operands and any other data MEMORY UNIT
1 CACHE MEMORY
The data and instructions that are required
during the processing of data are brought from the
secondary storage devices and stored in the RAM.
For processing, it is required that the data and
instructions are accessed from the RAM and
stored in the registers. The time taken to move the
data between RAM and CPU registers is large.
This affects the speed of processing of computer,
and results in decreasing the performance of
CPU.
very high-speed memory placed in between
CPU Registers RAM and CPU: increases the speed of processing
storage buffer that stores the data that is used
The number of registers and the size of each more often, temporarily, and makes them
(number of bits) register in a CPU helps to available to CPU at a fast rate. During processing,
determine the power and the speed of a CPU. first checks cache for the required data. If data is
The overall number of registers can vary from not found in cache, then it looks in the RAM for
about ten to many hundreds depending on the data.
type and complexity of the processor. To access the cache memory, CPU does not
The size of register, word size, indicates the have to use the motherboard’s system bus for data
amount of data with which the computer can transfer. (The data transfer speed slows to the
work at any given time. The bigger the size, the motherboard’s capability, when data is passed
more quickly it can process data. The size of a through system bus. CPU can process data at a
register may be 8, 16, 32 or 64 bits. much faster rate by avoiding the system bus.)
e.g., a 32–bit CPU is one in which each register is
32 bits wide and its CPU can manipulate 32 bits
of data at a time. Nowadays, PCs have 32–bit or
64–bit registers. 32-bit processor and 64-bit
processor are the terms used to refer to the size of
the registers. Other factors remaining the same, a
64-bit processor can process the data twice as fast
as one with 32-bit processor.
NOTE Illustration of cache Memory
We buy computers based on its purposes.
2 CONTROL UNIT (CU) built into the processor, and may also be
does not do any actual processing of data; located next to it on a separate chip between the
organizes the processing of data and instructions CPU and RAM. Cache built into the CPU is faster
acts as a supervisor, and controls and than separate cache, running at the speed of the
coordinates the activity of the other units of microprocessor itself. However, separate cache is
computer roughly twice as fast as RAM.
coordinates the input and output devices of a The CPU has a built-in Level 1 (L1) cache and
computer. It directs the computer to carry out Level 2 (L2) cache. Some CPUs have a separate
stored program instructions by communicating cache chip on the motherboard: Level 3 (L3)
with the ALU and the registers. CU uses the cache. Nowadays, high-end processor comes with
instructions in the Instruction Register (IR) to built-in L3 cache, like in Intel core i7. The L1, L2
decide which circuit needs to be activated. It also and L3 cache store the most recently run
instructs the ALU to perform the arithmetic or instructions, the next ones and the possible ones,
logic operations. When a program is run, the respectively. Typically, CPUs have cache size
Program Counter (PC) register keeps track of the varying from 256KB (L1), 6 MB (L2), to 12MB
program instruction to be executed next. tells (L3) cache.
when to fetch the data and instructions, what to very expensive, so it is smaller in size.
do, where to store the results, the sequencing of Generally, computers have cache memory of sizes
LJL 2
IT – Chapter 3
256 KB to 2 MB. instructions
STORAGE DEVICES EXAMPLES
DELETING CACHE MEMORY: All saves data Hard disk drive
will be gone; can able to hold information that floppy drive
you usually use for future optical disk drives
WHY DELETE? To refresh the performance of The data and instructions that are currently not
computer being used by CPU, but may be required later for
2 PRIMARY MEMORY processing, are stored in secondary memory.
main memory of the computer has a high storage capacity than the primary
used to store data and instructions during memory
execution of the instructions cheaper than the primary memory
semiconductor memory takes longer time to access the data and
TWO KINDS instructions stored in secondary memory than in
1 RANDOM ACCESS MEMORY (RAM) primary memory
volatile TYPES OF STORAGE DEVICES
stores data when the computer is on. Magnetic tape drives
The information stored in RAM gets disk drives
erased when the computer is turned off; optical disk drives
provides temporary storage for data and
instructions INSTRUCTION FORMAT
stores data and instructions during the
execution of instructions. The COMPUTER PROGRAM
data and instructions that require
processing are brought into the RAM set of instructions that describe the steps to be
from the storage devices like hard disk. performed for carrying out a computational task
CPU accesses the data and the instructions
from RAM, as it can access it at a fast The program and the data, on which the program
speed than the storage devices connected operates, are stored in main memory, waiting to be
to the input and output unit. processed by the processor. This is also called the stored
program concept.
INSTRUCTION
LJL 3
IT – Chapter 3
a.k.a. instruction set architecture is a part of the
computer architecture. It relates to programming,
instructions, registers, addressing modes, memory
architecture, etc.
the set of all the basic operations that a processor can
accomplish
LJL 4