SlideShare a Scribd company logo
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 1/27Chapter 7: Processor and MemoryRef Page
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 2/27Chapter 7: Processor and MemoryRef Page
In this chapter you will learn about:
§ Internal structure of processor
§ Memory structure
§ Determining the speed of a processor
§ Different types of processors available
§ Determining the capacity of a memory
§ Different types of memory available
§ Several other terms related to the processor and
main memory of a computer system
Learning ObjectivesLearning Objectives
101
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 3/27Chapter 7: Processor and MemoryRef Page
Main Memory (RAM)
Cache
Memory
Decode
r
Program
control register
Instruction
register
Memory buffer
register
Input/Output
register
General-
purpose register
Memory
address register
Accumulato
r register
General-
purpose register
General-
purpose
register
General-purpose
register
Control Unit Arithmetic Logic Unit
Central Processing Unit
I/
O
D
E
V
I
C
E
S
ROM PROM Flash
Basic Processor & Memory Architecture
of a Computer System
Basic Processor & Memory Architecture
of a Computer System
102
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 4/27Chapter 7: Processor and MemoryRef Page
§ The brain of a computer system
§ Performs all major calculations and comparisons
§ Activates and controls the operations of other units of a
computer system
§ Two basic components are
§ Control Unit (CU)
§ Arithmetic Logic Unit (ALU)
§ No other single component of a computer determines
its overall performance as much as the CPU
Central Processing Unit (CPU)Central Processing Unit (CPU)
101
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 5/27Chapter 7: Processor and MemoryRef Page
§ One of the two basic components of CPU
§ Acts as the central nervous system of a computer
system
§ Selects and interprets program instructions, and
coordinates execution
§ Has some special purpose registers and a decoder to
perform these activities
Control Unit (CU)Control Unit (CU)
101
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 6/27Chapter 7: Processor and MemoryRef Page
§ One of the two basic components of CPU.
§ Actual execution of instructions takes place in ALU
§ Has some special purpose registers
§ Has necessary circuitry to carry out all the
arithmetic and logic operations included in the CPU
instruction set
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
103
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 7/27Chapter 7: Processor and MemoryRef Page
§ CPU has built-in ability to execute a particular set of machine
instructions, called its instruction set
§ Most CPUs have 200 or more instructions (such as add,
subtract, compare, etc.) in their instruction set
§ CPUs made by different manufacturers have different
instruction sets
§ Manufacturers tend to group their CPUs into “families” having
similar instruction sets
§ New CPU whose instruction set includes instruction set of its
predecessor CPU is said to be backward compatible with its
predecessor
Instruction SetInstruction Set
103
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 8/27Chapter 7: Processor and MemoryRef Page
§ Special memory units, called registers, are used to
hold information on a temporary basis as the
instructions are interpreted and executed by the CPU
§ Registers are part of the CPU (not main memory) of a
computer
§ The length of a register, sometimes called its word
size, equals the number of bits it can store
§ With all other parameters being the same, a CPU with
32-bit registers can process data twice larger than
one with 16-bit registers
RegistersRegisters
103
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 9/27Chapter 7: Processor and MemoryRef Page
Used to communicate with the I/O
devices
Input/Output (I/O)6
Holds an instruction while it is being
executed
Instruction (I)5
Holds data to be operated upon,
intermediate results, and the results
Accumulator (A)4
Holds address of the next instruction to
be executed
Program Control (PC)3
Holds contents of the accessed
(read/written) memory word
Memory Buffer (MBR)2
Holds address of the active memory
location
Memory Address (MAR)1
FunctionName of Register
Sr.
No.
Functions of Commonly Used RegistersFunctions of Commonly Used Registers
104
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 10/27Chapter 7: Processor and MemoryRef Page
§ Computer has a built-in system clock that emits millions of
regularly spaced electric pulses per second (known as
clock cycles)
§ It takes one cycle to perform a basic operation, such as
moving a byte of data from one memory location to
another
§ Normally, several clock cycles are required to fetch,
decode, and execute a single program instruction
§ Hence, shorter the clock cycle, faster the processor
§ Clock speed (number of clock cycles per second) is
measured in Megahertz (106 cycles/sec) or Gigahertz (109
cycles/sec)
Processor SpeedProcessor Speed
105
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 11/27Chapter 7: Processor and MemoryRef Page
Mostly used in
workstations
§ Small instruction set
§ Fixed-length instructions
§ Reduced references to
memory to retrieve operands
RISC (Reduced
Instruction Set
Computer)
Mostly used in
personal
computers
§ Large instruction set
§ Variable-length instructions
§ Variety of addressing modes
§ Complex & expensive to
produce
CISC (Complex
Instruction Set
Computer)
UsageFeatures
Type of
Architecture
Types of ProcessorTypes of Processor
(Continued on next slide)
105
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 12/27Chapter 7: Processor and MemoryRef Page
Mostly used in
high-end servers
and workstations
§ Allows software to
communicate explicitly to the
processor when operations
are parallel
§ Uses tighter coupling
between the compiler and the
processor
§ Enables compiler to extract
maximum parallelism in the
original code, and explicitly
describe it to the processor
EPIC (Explicitly
Parallel
Instruction
Computing)
UsageFeatures
Type of
Architecture
Types of ProcessorTypes of Processor
(Continued from previous slide..)
(Continued on next slide)
106
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 13/27Chapter 7: Processor and MemoryRef Page
Mostly used in
high-end servers
and workstations
§ Processor chip has multiple
cooler-running, more energy-
efficient processing cores
§ Improve overall performance
by handling more work in
parallel
§ can share architectural
components, such as memory
elements and memory
management
Multi-Core
Processor
UsageFeatures
Type of
Architecture
Types of ProcessorTypes of Processor
(Continued from previous slide..)
106
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 14/27Chapter 7: Processor and MemoryRef Page
§ Every computer has a temporary storage built into
the computer hardware
§ It stores instructions and data of a program mainly
when the program is being executed by the CPU.
§ This temporary storage is known as main memory,
primary storage, or simply memory.
§ Physically, it consists of some chips either on the
motherboard or on a small circuit board attached to
the motherboard of a computer
§ It has random access property.
§ It is volatile.
Main MemoryMain Memory
108
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 15/27Chapter 7: Processor and MemoryRef Page
Non-volatileVolatileNon-volatileVolatility
Pseudo-
random
access or
sequential
access
Random
access
Random accessAccess
LowHighLower cost per bit
Cost per bit of
storage
SlowFastFast access timeAccess Time
LargeSmallLarge storage capacity
Storage
capacity
Secondary
storage
Primary
storage
DesirableProperty
Storage Evaluation CriteriaStorage Evaluation Criteria
108
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 16/27Chapter 7: Processor and MemoryRef Page
Addresses of
a memory
The words
of a memory
(total N words)
0
1
2
3
4
5
N-2
N-1 Each word
contains the same
number of bits =
word lengthBit 1 Bit 2
Main Memory OrganizationMain Memory Organization
(Continued on next slide)
109
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 17/27Chapter 7: Processor and MemoryRef Page
§ Machines having smaller word-length are slower in
operation than machines having larger word-length
§ A write to a memory location is destructive to its previous
contents
§ A read from a memory location is non-destructive to its
previous contents
Main Memory OrganizationMain Memory Organization
(Continued from previous slide..)
110
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 18/27Chapter 7: Processor and MemoryRef Page
1024
0502
0503
0501
Word
B O M B A Y
D E L H I
§ Storage space is always allocated in multiples of word-length
§ Faster in speed of calculation than variable word-length memory
§ Normally used in large scientific computers for gaining speed of
calculation
Fixed Word-length MemoryFixed Word-length Memory
Address
Numbers
110
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 19/27Chapter 7: Processor and MemoryRef Page
B
O
M
B
A
Y
0025
0026
0027
0028
0029
0030
0031
4096
D
E
L
H
I
0051
0052
0053
0054
0055
0056
4096
§ Each memory location
can store only a single
character
§ Slower in speed of
calculation than fixed
world-length memory
§ Used in small business
computers for
optimizing the use of
storage space
Note: With memory becoming cheaper and larger day-by-day, most
modern computers employ fixed-word-length memory organization
Variable Word-length MemoryVariable Word-length Memory
Address
Numbers
Address
Numbers
110
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 20/27Chapter 7: Processor and MemoryRef Page
§ Memory capacity of a computer is equal to the number
of bytes that can be stored in its primary storage
§ Its units are:
Kilobytes (KB) : 1024 (210) bytes
Megabytes (MB) : 1,048,576 (220) bytes
Gigabytes (GB) : 1,073,741824 (230) bytes
Memory CapacityMemory Capacity
111
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 21/27Chapter 7: Processor and MemoryRef Page
§ Primary storage of a computer is often referred to as RAM
because of its random access capability
§ RAM chips are volatile memory
§ A computer’s motherboard is designed in a manner that
the memory capacity can be enhanced by adding more
memory chips
§ The additional RAM chips, which plug into special sockets
on the motherboard, are known as single-in-line memory
modules (SIMMs)
Random Access Memory (RAM)Random Access Memory (RAM)
112
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 22/27Chapter 7: Processor and MemoryRef Page
§ ROM a non-volatile memory chip
§ Data stored in a ROM can only be read and used – they
cannot be changed
§ ROMs are mainly used to store programs and data, which
do not change and are frequently used. For example,
system boot program
Read Only Memory (ROM)Read Only Memory (ROM)
112
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 23/27Chapter 7: Processor and MemoryRef Page
The user can erase information
stored in it and the chip can be
reprogrammed to store new
information
Erasable PROM (EPROM)
The user can load and store
“read-only” programs and data in
it
User-programmed ROM
or
Programmable ROM
(PROM)
Data is burnt by the manufacturer
of the electronic equipment in
which it is used.
Manufacturer-programmed
ROM
UsageType
Types of ROMsTypes of ROMs
(Continued on next slide)
112
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 24/27Chapter 7: Processor and MemoryRef Page
A type of EPROM chip in which the
stored information is erased by
using high voltage electric pulses
Electrically EPROM
(EEPROM)
or
Flash memory
A type of EPROM chip in which the
stored information is erased by
exposing the chip for some time
to ultra-violet light
Ultra Violet EPROM
(UVEPROM)
UsageType
Types of ROMsTypes of ROMs
(Continued from previous slide..)
113
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 25/27Chapter 7: Processor and MemoryRef Page
§ It is commonly used for minimizing the memory-
processor speed mismatch.
§ It is an extremely fast, small memory between CPU
and main memory whose access time is closer to the
processing speed of the CPU.
§ It is used to temporarily store very active data and
instructions during processing.
Cache is pronounced as “cash”
Cache MemoryCache Memory
113
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 26/27Chapter 7: Processor and MemoryRef Page
§ Accumulator Register (AR)
§ Address
§ Arithmetic Logic Unit (ALU)
§ Branch Instruction
§ Cache Memory
§ Central Processing Unit (CPU)
§ CISC (Complex Instruction Set
Computer) architecture
§ Clock cycles
§ Clock speed
§ Control Unit
§ Electrically EPROM (EEPROM)
§ Erasable Programmable Read-
Only Memory (EPROM)
§ Explicitly Parallel Instruction
Computing (EPIC)
§ Fixed-word-length memory
§ Flash Memory
§ Input/Output Register (I/O)
§ Instruction Register (I)
§ Instruction set
§ Kilobytes (KB)
§ Main Memory
§ Manufacturer-Programmed ROM
§ Megabytes (MB)
§ Memory
§ Memory Address Register (MAR)
§ Memory Buffer Register (MBR)
§ Microprogram
§ Multi-core processor
§ Non-Volatile storage Processor
§ Program Control Register (PC)
§ Programmable Read-Only Memory
(PROM)
§ Random Access Memory (RAM)
Key Words/PhrasesKey Words/Phrases
(Continued on next slide)
114
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 27/27Chapter 7: Processor and MemoryRef Page
§ Read-Only Memory (ROM)
§ Register
§ RISC (Reduced Instruction Set Computer)
architecture
§ Single In-line Memory Module (SIMM)
§ Ultra Violet EPROM (UVEPROM)
§ Upward compatible
§ User-Programmed ROM
§ Variable-word-length memory
§ Volatile Storage
§ Word length
§ Word size
Key Words/PhrasesKey Words/Phrases
(Continued from previous slide..)
114

More Related Content

PPTX
Chapter 4 Embedded System: Application and Domain Specific
PPTX
Word processing
PPT
journal and impact factor
PPTX
Introduction to embedded systems
PPT
Artificial1 ppt
PPTX
PPT on INPUT & OUTPUT DEVICES
PPTX
Discord.pptx
PPTX
Instruction Set Architecture
Chapter 4 Embedded System: Application and Domain Specific
Word processing
journal and impact factor
Introduction to embedded systems
Artificial1 ppt
PPT on INPUT & OUTPUT DEVICES
Discord.pptx
Instruction Set Architecture

What's hot (20)

PPTX
Main memory of computer .ppt
PPTX
Input devices
PPT
Computer hardware component. ppt
PPTX
Fundamentals of Computer.pptx
PPTX
Software and its types
PPTX
CPU and its components
PPTX
Components of computer
PPT
Hard disk PPT
PPTX
Input devices presentation
PPTX
Operating system presentation
PDF
Difference between RAM and ROM
PPTX
Memory unit
PPT
Types of software
PDF
HARD DISK DRIVE ppt
PPTX
CPU (Central Processing Units)
PPTX
Memory units
PPTX
Comuputer processor
PDF
Pointing Devices
PPTX
Processors and its Types
PPTX
Central Processing Unit
Main memory of computer .ppt
Input devices
Computer hardware component. ppt
Fundamentals of Computer.pptx
Software and its types
CPU and its components
Components of computer
Hard disk PPT
Input devices presentation
Operating system presentation
Difference between RAM and ROM
Memory unit
Types of software
HARD DISK DRIVE ppt
CPU (Central Processing Units)
Memory units
Comuputer processor
Pointing Devices
Processors and its Types
Central Processing Unit
Ad

Viewers also liked (20)

PDF
Chapter07 io devices
PPTX
Computer memory
PDF
Chapter01 introduction to computer
PDF
Chapter03 number system
PPT
Chapter04 ip addressing networking
PDF
Chapter05 secondary storage
PDF
Chapter06 computer software
PDF
Computer Fundamentals Chapter 16 bdp
PDF
Chapter19 multimedia-091006115642-phpapp02 (1)
PPTX
Genesis & Progression of Processors in CPU
PDF
Chapter 10 cs
PPTX
Differeniation
PPT
Microprocessor and-interfacing-techbymak
PPTX
Introduction to 8085 Microprocessor
PDF
Chapter 17 dccn
PDF
Chapter02 basic computer organization
PDF
Computer Fundamentals Chapter 11 pcp
PDF
Chapter 21 c language
PPT
Origin of Microprocessor and Classification of Microprocessor
PDF
Chapter 14 os
Chapter07 io devices
Computer memory
Chapter01 introduction to computer
Chapter03 number system
Chapter04 ip addressing networking
Chapter05 secondary storage
Chapter06 computer software
Computer Fundamentals Chapter 16 bdp
Chapter19 multimedia-091006115642-phpapp02 (1)
Genesis & Progression of Processors in CPU
Chapter 10 cs
Differeniation
Microprocessor and-interfacing-techbymak
Introduction to 8085 Microprocessor
Chapter 17 dccn
Chapter02 basic computer organization
Computer Fundamentals Chapter 11 pcp
Chapter 21 c language
Origin of Microprocessor and Classification of Microprocessor
Chapter 14 os
Ad

Similar to Chapter04 processor and memory (20)

PDF
Chapter 7-PAM-Slides.pdf
PDF
Computer Fundamentals Chapter 07 pam
PPTX
Central Processing Unit and main memory.pptx
PDF
Chapter14 os-121120003310-phpapp02
PDF
Chapter14 os-121120003310-phpapp02
PDF
Computer Fundamentals Chapter 14 os
PPT
Unit 1 four part pocessor and memory
PPTX
Principles of operating system
PPTX
The functionality of a pc
PPTX
Typical configuration of computer chapter 1
PPT
Computer System.ppt
PDF
Computer fundamental basic comuter organization [www.studysharebd.com]
PDF
Chapter 02 bco 3o-p
PDF
Chapter 02 bco
PDF
Chapter 02 bco
PPSX
08. Central Processing Unit (CPU)
PDF
Chapter 02 bco 2o-p
PDF
Computer Fundamentals_Chapter 02 bco
PDF
Implementation of RISC-Based Architecture for Low power applications
PDF
Co question 2006
Chapter 7-PAM-Slides.pdf
Computer Fundamentals Chapter 07 pam
Central Processing Unit and main memory.pptx
Chapter14 os-121120003310-phpapp02
Chapter14 os-121120003310-phpapp02
Computer Fundamentals Chapter 14 os
Unit 1 four part pocessor and memory
Principles of operating system
The functionality of a pc
Typical configuration of computer chapter 1
Computer System.ppt
Computer fundamental basic comuter organization [www.studysharebd.com]
Chapter 02 bco 3o-p
Chapter 02 bco
Chapter 02 bco
08. Central Processing Unit (CPU)
Chapter 02 bco 2o-p
Computer Fundamentals_Chapter 02 bco
Implementation of RISC-Based Architecture for Low power applications
Co question 2006

More from Ainuddin Yousufzai (9)

PPT
Chapter 02 topology networking
PPT
Chapter 01 networking
PDF
Chapter08 internet & multimedia (b)
PDF
Chapter08 internet & multimedia (a)
PPTX
Csc240 -lecture_5
PPTX
Csc240 -lecture_4
PPTX
Csc240 -lecture_3
PPTX
Csc240 -lecture_2
PPTX
Csc240 lecture 1
Chapter 02 topology networking
Chapter 01 networking
Chapter08 internet & multimedia (b)
Chapter08 internet & multimedia (a)
Csc240 -lecture_5
Csc240 -lecture_4
Csc240 -lecture_3
Csc240 -lecture_2
Csc240 lecture 1

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Classroom Observation Tools for Teachers
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Institutional Correction lecture only . . .
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
Final Presentation General Medicine 03-08-2024.pptx
Insiders guide to clinical Medicine.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
2.FourierTransform-ShortQuestionswithAnswers.pdf
Sports Quiz easy sports quiz sports quiz
Classroom Observation Tools for Teachers
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Chapter04 processor and memory

  • 1. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 1/27Chapter 7: Processor and MemoryRef Page
  • 2. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 2/27Chapter 7: Processor and MemoryRef Page In this chapter you will learn about: § Internal structure of processor § Memory structure § Determining the speed of a processor § Different types of processors available § Determining the capacity of a memory § Different types of memory available § Several other terms related to the processor and main memory of a computer system Learning ObjectivesLearning Objectives 101
  • 3. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 3/27Chapter 7: Processor and MemoryRef Page Main Memory (RAM) Cache Memory Decode r Program control register Instruction register Memory buffer register Input/Output register General- purpose register Memory address register Accumulato r register General- purpose register General- purpose register General-purpose register Control Unit Arithmetic Logic Unit Central Processing Unit I/ O D E V I C E S ROM PROM Flash Basic Processor & Memory Architecture of a Computer System Basic Processor & Memory Architecture of a Computer System 102
  • 4. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 4/27Chapter 7: Processor and MemoryRef Page § The brain of a computer system § Performs all major calculations and comparisons § Activates and controls the operations of other units of a computer system § Two basic components are § Control Unit (CU) § Arithmetic Logic Unit (ALU) § No other single component of a computer determines its overall performance as much as the CPU Central Processing Unit (CPU)Central Processing Unit (CPU) 101
  • 5. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 5/27Chapter 7: Processor and MemoryRef Page § One of the two basic components of CPU § Acts as the central nervous system of a computer system § Selects and interprets program instructions, and coordinates execution § Has some special purpose registers and a decoder to perform these activities Control Unit (CU)Control Unit (CU) 101
  • 6. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 6/27Chapter 7: Processor and MemoryRef Page § One of the two basic components of CPU. § Actual execution of instructions takes place in ALU § Has some special purpose registers § Has necessary circuitry to carry out all the arithmetic and logic operations included in the CPU instruction set Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU) 103
  • 7. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 7/27Chapter 7: Processor and MemoryRef Page § CPU has built-in ability to execute a particular set of machine instructions, called its instruction set § Most CPUs have 200 or more instructions (such as add, subtract, compare, etc.) in their instruction set § CPUs made by different manufacturers have different instruction sets § Manufacturers tend to group their CPUs into “families” having similar instruction sets § New CPU whose instruction set includes instruction set of its predecessor CPU is said to be backward compatible with its predecessor Instruction SetInstruction Set 103
  • 8. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 8/27Chapter 7: Processor and MemoryRef Page § Special memory units, called registers, are used to hold information on a temporary basis as the instructions are interpreted and executed by the CPU § Registers are part of the CPU (not main memory) of a computer § The length of a register, sometimes called its word size, equals the number of bits it can store § With all other parameters being the same, a CPU with 32-bit registers can process data twice larger than one with 16-bit registers RegistersRegisters 103
  • 9. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 9/27Chapter 7: Processor and MemoryRef Page Used to communicate with the I/O devices Input/Output (I/O)6 Holds an instruction while it is being executed Instruction (I)5 Holds data to be operated upon, intermediate results, and the results Accumulator (A)4 Holds address of the next instruction to be executed Program Control (PC)3 Holds contents of the accessed (read/written) memory word Memory Buffer (MBR)2 Holds address of the active memory location Memory Address (MAR)1 FunctionName of Register Sr. No. Functions of Commonly Used RegistersFunctions of Commonly Used Registers 104
  • 10. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 10/27Chapter 7: Processor and MemoryRef Page § Computer has a built-in system clock that emits millions of regularly spaced electric pulses per second (known as clock cycles) § It takes one cycle to perform a basic operation, such as moving a byte of data from one memory location to another § Normally, several clock cycles are required to fetch, decode, and execute a single program instruction § Hence, shorter the clock cycle, faster the processor § Clock speed (number of clock cycles per second) is measured in Megahertz (106 cycles/sec) or Gigahertz (109 cycles/sec) Processor SpeedProcessor Speed 105
  • 11. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 11/27Chapter 7: Processor and MemoryRef Page Mostly used in workstations § Small instruction set § Fixed-length instructions § Reduced references to memory to retrieve operands RISC (Reduced Instruction Set Computer) Mostly used in personal computers § Large instruction set § Variable-length instructions § Variety of addressing modes § Complex & expensive to produce CISC (Complex Instruction Set Computer) UsageFeatures Type of Architecture Types of ProcessorTypes of Processor (Continued on next slide) 105
  • 12. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 12/27Chapter 7: Processor and MemoryRef Page Mostly used in high-end servers and workstations § Allows software to communicate explicitly to the processor when operations are parallel § Uses tighter coupling between the compiler and the processor § Enables compiler to extract maximum parallelism in the original code, and explicitly describe it to the processor EPIC (Explicitly Parallel Instruction Computing) UsageFeatures Type of Architecture Types of ProcessorTypes of Processor (Continued from previous slide..) (Continued on next slide) 106
  • 13. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 13/27Chapter 7: Processor and MemoryRef Page Mostly used in high-end servers and workstations § Processor chip has multiple cooler-running, more energy- efficient processing cores § Improve overall performance by handling more work in parallel § can share architectural components, such as memory elements and memory management Multi-Core Processor UsageFeatures Type of Architecture Types of ProcessorTypes of Processor (Continued from previous slide..) 106
  • 14. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 14/27Chapter 7: Processor and MemoryRef Page § Every computer has a temporary storage built into the computer hardware § It stores instructions and data of a program mainly when the program is being executed by the CPU. § This temporary storage is known as main memory, primary storage, or simply memory. § Physically, it consists of some chips either on the motherboard or on a small circuit board attached to the motherboard of a computer § It has random access property. § It is volatile. Main MemoryMain Memory 108
  • 15. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 15/27Chapter 7: Processor and MemoryRef Page Non-volatileVolatileNon-volatileVolatility Pseudo- random access or sequential access Random access Random accessAccess LowHighLower cost per bit Cost per bit of storage SlowFastFast access timeAccess Time LargeSmallLarge storage capacity Storage capacity Secondary storage Primary storage DesirableProperty Storage Evaluation CriteriaStorage Evaluation Criteria 108
  • 16. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 16/27Chapter 7: Processor and MemoryRef Page Addresses of a memory The words of a memory (total N words) 0 1 2 3 4 5 N-2 N-1 Each word contains the same number of bits = word lengthBit 1 Bit 2 Main Memory OrganizationMain Memory Organization (Continued on next slide) 109
  • 17. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 17/27Chapter 7: Processor and MemoryRef Page § Machines having smaller word-length are slower in operation than machines having larger word-length § A write to a memory location is destructive to its previous contents § A read from a memory location is non-destructive to its previous contents Main Memory OrganizationMain Memory Organization (Continued from previous slide..) 110
  • 18. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 18/27Chapter 7: Processor and MemoryRef Page 1024 0502 0503 0501 Word B O M B A Y D E L H I § Storage space is always allocated in multiples of word-length § Faster in speed of calculation than variable word-length memory § Normally used in large scientific computers for gaining speed of calculation Fixed Word-length MemoryFixed Word-length Memory Address Numbers 110
  • 19. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 19/27Chapter 7: Processor and MemoryRef Page B O M B A Y 0025 0026 0027 0028 0029 0030 0031 4096 D E L H I 0051 0052 0053 0054 0055 0056 4096 § Each memory location can store only a single character § Slower in speed of calculation than fixed world-length memory § Used in small business computers for optimizing the use of storage space Note: With memory becoming cheaper and larger day-by-day, most modern computers employ fixed-word-length memory organization Variable Word-length MemoryVariable Word-length Memory Address Numbers Address Numbers 110
  • 20. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 20/27Chapter 7: Processor and MemoryRef Page § Memory capacity of a computer is equal to the number of bytes that can be stored in its primary storage § Its units are: Kilobytes (KB) : 1024 (210) bytes Megabytes (MB) : 1,048,576 (220) bytes Gigabytes (GB) : 1,073,741824 (230) bytes Memory CapacityMemory Capacity 111
  • 21. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 21/27Chapter 7: Processor and MemoryRef Page § Primary storage of a computer is often referred to as RAM because of its random access capability § RAM chips are volatile memory § A computer’s motherboard is designed in a manner that the memory capacity can be enhanced by adding more memory chips § The additional RAM chips, which plug into special sockets on the motherboard, are known as single-in-line memory modules (SIMMs) Random Access Memory (RAM)Random Access Memory (RAM) 112
  • 22. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 22/27Chapter 7: Processor and MemoryRef Page § ROM a non-volatile memory chip § Data stored in a ROM can only be read and used – they cannot be changed § ROMs are mainly used to store programs and data, which do not change and are frequently used. For example, system boot program Read Only Memory (ROM)Read Only Memory (ROM) 112
  • 23. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 23/27Chapter 7: Processor and MemoryRef Page The user can erase information stored in it and the chip can be reprogrammed to store new information Erasable PROM (EPROM) The user can load and store “read-only” programs and data in it User-programmed ROM or Programmable ROM (PROM) Data is burnt by the manufacturer of the electronic equipment in which it is used. Manufacturer-programmed ROM UsageType Types of ROMsTypes of ROMs (Continued on next slide) 112
  • 24. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 24/27Chapter 7: Processor and MemoryRef Page A type of EPROM chip in which the stored information is erased by using high voltage electric pulses Electrically EPROM (EEPROM) or Flash memory A type of EPROM chip in which the stored information is erased by exposing the chip for some time to ultra-violet light Ultra Violet EPROM (UVEPROM) UsageType Types of ROMsTypes of ROMs (Continued from previous slide..) 113
  • 25. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 25/27Chapter 7: Processor and MemoryRef Page § It is commonly used for minimizing the memory- processor speed mismatch. § It is an extremely fast, small memory between CPU and main memory whose access time is closer to the processing speed of the CPU. § It is used to temporarily store very active data and instructions during processing. Cache is pronounced as “cash” Cache MemoryCache Memory 113
  • 26. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 26/27Chapter 7: Processor and MemoryRef Page § Accumulator Register (AR) § Address § Arithmetic Logic Unit (ALU) § Branch Instruction § Cache Memory § Central Processing Unit (CPU) § CISC (Complex Instruction Set Computer) architecture § Clock cycles § Clock speed § Control Unit § Electrically EPROM (EEPROM) § Erasable Programmable Read- Only Memory (EPROM) § Explicitly Parallel Instruction Computing (EPIC) § Fixed-word-length memory § Flash Memory § Input/Output Register (I/O) § Instruction Register (I) § Instruction set § Kilobytes (KB) § Main Memory § Manufacturer-Programmed ROM § Megabytes (MB) § Memory § Memory Address Register (MAR) § Memory Buffer Register (MBR) § Microprogram § Multi-core processor § Non-Volatile storage Processor § Program Control Register (PC) § Programmable Read-Only Memory (PROM) § Random Access Memory (RAM) Key Words/PhrasesKey Words/Phrases (Continued on next slide) 114
  • 27. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 27/27Chapter 7: Processor and MemoryRef Page § Read-Only Memory (ROM) § Register § RISC (Reduced Instruction Set Computer) architecture § Single In-line Memory Module (SIMM) § Ultra Violet EPROM (UVEPROM) § Upward compatible § User-Programmed ROM § Variable-word-length memory § Volatile Storage § Word length § Word size Key Words/PhrasesKey Words/Phrases (Continued from previous slide..) 114