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. STORAGE DEVICES EXAMPLES
Hard disk drive
DELETING CACHE MEMORY: All saves data floppy drive
will be gone; can able to hold information that optical disk drives
you usually use for future The data and instructions that are currently not
WHY DELETE? To refresh the performance of being used by CPU, but may be required later for
computer processing, are stored in secondary memory.
2 PRIMARY MEMORY has a high storage capacity than the primary
main memory of the computer memory
used to store data and instructions during cheaper than the primary memory
execution of the instructions takes longer time to access the data and
semiconductor memory instructions stored in secondary memory than in
TWO KINDS primary memory
1 RANDOM ACCESS MEMORY (RAM) TYPES OF STORAGE DEVICES
volatile Magnetic tape drives
stores data when the computer is on. disk drives
The information stored in RAM gets optical disk drives
erased when the computer is turned off;
provides temporary storage for data and Letter A: 10110110
instructions Every character has its combination
stores data and instructions during the e.g., files: 100kb, 250mb, 1GB = number of bytes in the
execution of instructions. The file
data and instructions that require The more characters, numerical, alphanumerical, colors,
processing are brought into the RAM the more weight the file will gain.
from the storage devices like hard disk. 1 byte can store 256 different combination of bits that
CPU accesses the data and the instructions can be used to represent the 256 different symbols. The
from RAM, as it can access it at a fast different combination of bits fall in the range of
speed than the storage devices connected 0000000011111111, it can combine to form a word.
to the input and output unit. Word: group of 2,4, or 8 bytes
1 bit = either 0 or 1
1 byte = 8 bits
1 kb = 1,024 bytes
1 mb = 1,024 kilobytes
1GB = 1,024 x 1,024
Interaction of CPU with memory
Mostly memory is logically organized in a linear array
The input data that is entered using the for processing.
input unit is stored in RAM, to be made WHY? To allocate the addresses of the file
available during the processing of data. The memory is always characterized on the basic two
Similarly, the output data generated after key factors
processing is stored in RAM before being 1. THE CAPACITY: amount of information that
sent to the output device. Any the memory can store
intermediate results generated during the 2. ACCESS TIME: the interval between read and
processing of program are stored in RAM. write
provides a limited storage capacity due The lesser access time, the faster the speed of the
to its high cost memory.
2 READ ONLY MEMORY (ROM) In the memory hierarchy, the fastest is the registers
non-volatile memory, but is a read only (because they’re inside/close to the CPU) cache
memory. memory (fast but limited information that it can
The storage is permanent in nature, and hold temporarily) main / primary memory (in
is used for storing standard processing the middle line, faster than magnetic and optical
programs that permanently reside in the disks, magnetic tapes) magnetic disk, optical
computer; comes programmed by the disk, magnetic tape (lower part)
manufacturer SECONDARY MEMORY PURPOSE: store data
SECONDARY MEMORY only; to save file externally
non-volatile
used for permanent storage of data and INSTRUCTION FORMAT
instructions; the information can be stored for a
long time (years), and is generally permanent in COMPUTER PROGRAM
nature unless erased by the user.
A program or data that has to be executed is set of instructions that describe the steps to be
brought into the RAM from the secondary performed for carrying out a computational task
memory.
provides back-up storage for data and The program and the data, on which the program
instructions operates, are stored in main memory, waiting to be
LJL 3
IT – Chapter 3
processed by the processor. This is also called the stored
program concept. Microarchitecture is the processor design technique
INSTRUCTION used for implementing the Instruction Set. Computers
having different microarchitecture can have a common
designed to perform a task and is an elementary Instruction Set. Pentium and Athlon CPU chips
operation that the processor can accomplish implement the x86 instruction set, but have different
divided into groups called fields internal designs.
The remainder of the instruction fields differs from one
computer type to other. INSTRUCTION STYLE
COMMON FIELDS OF INSTRUCTION
1 OPERATION CODE PRIMARY RESPONSIBILITY OF A COMPUTER
represents action that the processor must PROCESSOR: to execute a sequential set of instructions
execute that constitute a program. CPU executes each instruction
tells the processor what basic operations to in a series of steps, called instruction cycle.
perform
2 OPERAND CODE
defines the parameters of the action and
depends on the operation
specifies the locations of the data or the
operand on which the operation is to be
performed. It can be data or a memory address.
Instruction format
INSTRUCTION SET
LJL 4
IT – Chapter 3
executed in just one clock cycle, which
Arithmetic operations like addition and speeds up the program execution when
subtraction compared to CISC processors.
Logic operations such as AND, OR and NOT RISC processors can handle multiple
Control the sequence, conditional connections, instructions simultaneously by
etc. processing them in parallel.
Apple Mac G3 and PowerPC are based
A CPU performance is measured by the number of on RISC.
instructions it executes in a second, i.e., MIPS (million Processors like Athlon XP and Pentium IV use a
instructions per second), or BIPS (billion instructions per hybrid of both technologies
second).
Automation is when the instructions are more simplified
MICROPROCESSOR or less complicated; it should improve the process time.
LJL 5
IT – Chapter 3
connections to the rest of computer Expansion slots are easy to recognize on the
allows various devices to be attached to the motherboard.
computer Expansion slots make up a row of long plastic
allows for the expansion of computer’s connectors at the back of the computer with tiny copper
capabilities ‘finger slots’ in a narrow channel that grab the
generally slower than the system bus connectors on the expansion cards. The slots are attached
a.k.a Expansion Bus to tiny copper pathways on the motherboard (the
expansion bus), which allows the device to communicate
A system bus or expansion bus comprise of three kinds with the rest of computer.
of buses — data bus, address bus, and control bus.
FUNCTIONS OF BUSES IN THE EXPANSION
The interaction of CPU with memory and I/O devices BUS
involves all the three buses. 1 DATA BUS
to transfer data between I/O devices and CPU.
The command to access the memory or the I/O device is The exchange of data between CPU and I/O
carried by the control bus. devices is according to the industry standard data
buses.
The address of I/O device or memory is carried by the MOST COMMONLY USED STANDARD:
address bus. Extended Industry Standard Architecture (EISA),
which is a 32-bit bus architecture.
The data to be transferred is carried by the data bus. Some of the common bus technologies:
Peripheral Component Interconnect
SYSTEM BUS (PCI) bus for hard disks, sound cards,
network cards and graphics cards,
FUNCTIONS OF BUSES IN THE SYSTEM BUS Accelerated Graphics Port (AGP) bus
1 DATA BUS for 3-D and full motion video,
transfers data between the CPU and memory. Universal Serial Bus (USB) to connect
The bus width of a data bus affects the speed of and disconnect different devices.
computer. The size of data bus defines the size of 2 ADDRESS BUS
the processor. A processor can be 8, 16, 32 or 64- carries the addresses of different I/O devices to
bit processor. An 8–bit processor has 8 wire data be accessed like the hard disk, CD ROM, etc,
bus to carry 1 byte of data. In a 16–bit processor, 3 CONTROL BUS
16–wire bus can carry 16 bits of data, i.e., transfer to carry read/write commands, status of I/O
2 bytes, etc. devices, etc.
EXTERNAL PORTS
EXPANSION BUS
LJL 6
IT – Chapter 3
wire bus can carry 16 bits of data. The bus speed
There are a number of factors involved that are related to is measured in MHz. Higher the bus speed the
the CPU and have an effect on the overall speed and better it is.
performance of the computer. Address bus: connects CPU and RAM with a
set of wires similar to data bus. The address bus
width determines the maximum number of
memory locations the computer can address.
Pentium Pro, II, III, IV have 36–bit address bus
that can address 236 bytes or 64 GB of memory.
PCs nowadays have a bus speed varying from
100 MHz to 400 MHz.
5 CACHE MEMORY
Two of the main factors that affect a cache’s
performance are its size (amount of cache
memory) and level L1, L2, and L3. Larger the
size of cache, the better it is. PCs nowadays have
a L1 cache of 256KB and L2 cache of 1MB.
LJL 7
IT – Chapter 3
Processor socket: may be a rectangular
connector into which the processor is
mounted vertically (slot), or a square-
shape connector with many small
connectors into which the processor is
directly inserted (socket). The Basic
Input Output System (BIOS) and
Complementary Metal-Oxide
Semiconductor (CMOS) are present on
the motherboard. Battery for CMOS chip
2 PORTS AND INTERFACES
Motherboard has a certain number of I/O
sockets that are connected to the ports and
interfaces found on the rear side of a computer.
You can connect external devices to the ports and
interfaces, which get connected to the computer’s
motherboard.
SERIAL PORT to connect old
peripherals
ROM BIOS PARALLEL to connect old printers
1 BIOS PORT
the basic program used as an interface
between the operating system and the
motherboard.
stored in the ROM and cannot be
rewritten
When the computer is switched on, it
needs instructions to start. BIOS contain Ports on the rear side of a PC
the instructions for the starting up of the
computer. The BIOS runs when the USB Ports: to connect newer peripherals like
computer is switched on. cameras, scanners, and printers to the computer.
performs a Power On Self Test (POST) It uses a thin wire to connect to the devices, and
that checks that the hardware is many devices can share that wire simultaneously.
functioning properly and the hardware Firewire: another bus, used today mostly for
devices are present. It checks whether the video cameras and external hard drives.
operating system is present on the hard RJ45 connector (called LAN or Ethernet port):
drive. to connect the computer to a network. It
invokes the bootstrap loader to load the corresponds to a network card integrated into the
operating system into memory motherboard.
can be configured using an interface VGA connector: for connecting a monitor. This
named BIOS setup, which can be accessed connector interfaces with the built-in graphics
when the computer is booting up (by card.
pressing the DEL key). Audio plugs (line-in, line-out and microphone):
for connecting sound speakers and the
microphone. This connector interfaces with the
2 CMOS CHIP built-in sound card.
BIOS ROMs are accompanied by a PS/2 port: to connect mouse and keyboard into
smaller CMOS (CMOS is a type of PC.
memory technology) memory chip. SCSI port: for connecting the hard disk drives
When the computer is turned off, the and network connectors.
power supply stops providing electricity 3 EXPANSION SLOTS
to the motherboard. When the computer is located on the motherboard
turned on again, the system still displays The expansion cards are inserted in the
the correct clock time. This is because the expansion slots. These cards give the computer
CMOS chip saves some system new features or increased performance.
information, such as time, system date and TYPES OF SLOTS
essential system settings. Industry Standard Architecture (ISA) slot: to
CMOS is kept powered by a button connect modem and input devices.
battery located on the motherboard. Peripheral Component InterConnect (PCI)
working even when the computer power is slot: to connect audio, video, and graphics. They
switched off. Information of the hardware are much faster than ISA cards.
installed in the computer (such as the Accelerated Graphic Port (AGP) slot: a fast
number of tracks or sectors on each hard port for a graphics card.
drive) is stored in the CMOS chip. Peripheral Component InterConnect (PCI)
Express slot: faster bus architecture than AGP
LJL 8
IT – Chapter 3
and PCI buses.
PC Card: used in laptop computers. It includes Pentium 2
Wi-Fi card, network card, and external modem. Pentium 4
Expansion slots
4 RIBBON CABLES
flat, insulated, and consist of several tiny wires
molded together that carry data to different
components on the motherboard. There is a wire
for each bit of the word or byte and additional
wires to coordinate the activity of moving
information. They also connect the floppy drives,
disk drives, and CD-ROM drives to the
connectors in the motherboard. Nowadays, Serial
Advanced Technology Attachment (SATA)
cables have replaced the ribbon cables to connect
the drives to the motherboard.
5 MEMORY CHIPS
The RAM consists of chips on a small circuit
board.
The Two types of memory chips
1. Single In-line Memory Module
(SIMM)
2. Dual In-line Memory Module (DIMM)
are used in desktop computers.
The CPU can retrieve information from DIMM
chip at 64 bits compared to 32 bits or 16 bits
transfer with SIMM chips. DIMM chips are used
in Pentium 4 onwards to increase the access
speed.
6 STORAGE DEVICES
The disk drives are present inside the machine.
The common disk drives in a machine:
hard disk drive
floppy drive
CD drive or DVD drive
High-storage devices like hard disk, floppy disk,
and CDs are inserted into the hard disk drive,
floppy drive, and CD drive, respectively. These
storage devices can store large amounts of data,
permanently.
7 PROCESSOR
a.k.a. CPU
the main component of the computer. Select a
processor based on factors:
Speed
Performance
Reliability
Motherboard support.
SOME PROCESSORS
Pentium Pro
LJL 9