SlideShare a Scribd company logo
Data Processing
Chapter 4
Objectives
• Identify the components of the central processing unit
and how they work together and interact with memory
• Describe how program instructions are executed by the
computer
• Explain how data is represented in the computer
• Describe how the computer finds instructions and data
• Describe the components of a microcomputer system
unit’s motherboard
• List the measures of computer processing speed and
explain the approaches that increase speed
Contents
• The CPU
• Types of Storage
• Executing Programs
• Finding Data in Memory
• The System Unit
• Microprocessor
• Semiconductor Memory
• Bus Line
• Speed and Power
The CPU
The CPU
• Converts data into information
• Control center
• Set of electronic circuitry that executes stored
program instructions
• Two parts
– Control Unit (CU)
– Arithmetic Logic Unit (ALU)
Control Unit
CU
• Part of the hardware that is in-charge
• Directs the computer system to execute
stored program instructions
• Communicates with other parts of the
hardware
Arithmetic / Logic Unit
ALU
Performs arithmetic operations
Performs logical operations
Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Logical Operations
• Evaluates conditions
• Makes comparisons
• Can compare
– Numbers
– Letters
– Special characters
Registers
Special-purpose
High-speed
Temporary storage
Located inside CPU
Instruction register

Data register

Holds instruction currently
being executed

Holds data waiting to be
processed
Holds results from processing
Types of Storage
• Secondary
– Data that will eventually be used
– Long-term

• Memory
– Data that will be used in the near future
– Temporary
– Faster access than storage

• Registers
– Data immediately related to the operation being executed
– Faster access than memory
Measuring Storage Capacity
KB – kilobyte
• 1024 bytes
• Some diskettes
• Cache memory

MB – megabyte
• Million bytes
• RAM

GB – gigabyte
• Billion bytes
• Hard disks
• CDs and DVDs

TB – terabytes
• Trillion bytes
• Large hard disks
Memory
Many Names
Primary storage
Primary memory
Main storage
Internal storage
Main memory
Main Types of Memory
RAM
Random Access Memory
ROM
Read Only Memory
RAM
• Requires current to retain values
• Volatile
• Data and instructions can be read and
modified
• Users typically refer to this type of memory
What’s in RAM?
•
•
•
•

Operating System
Program currently running
Data needed by the program
Intermediate results waiting to be output
ROM
• Non-volatile
• Instructions for booting the computer
• Data and instructions can be read, but not
modified
• Instructions are typically recorded at factory
Executing Programs
• CU gets an instruction and places it in memory
• CU decodes the instruction
• CU notifies the appropriate part of hardware to take
action
• Control is transferred to the appropriate part of
hardware
• Task is performed
• Control is returned to the CU
Machine Cycle
I-time
• CU fetches an instruction from memory and puts it
into a register
• CU decodes the instruction and determines the
memory location of the data required
Machine Cycle
E-time
• Execution
– CU moves the data from memory to registers in the
ALU
– ALU is given control and executes the instruction
– Control returns to the CU

• CU stores the result of the operation in memory
or in a register
Chapter4 Data Processing
System Clock
• System clock produces pulses at a fixed rate
• Each pulse is one Machine Cycle
• One program instruction may actually be several
instructions to the CPU
• Each CPU instruction will take one pulse
• CPU has an instruction set – instructions that it can
understand and process
Finding Data in Memory
• Each location in memory has a unique address
– Address never changes
– Contents may change

• Memory location can hold one instruction or piece of data
• Programmers use symbolic names
Data Representation
On/Off
Binary number system is used
to represent the state of the
circuit
Bits, Bytes, Words
• BIT
– Binary DigIT
– On/off circuit
– 1 or 0

• BYTE
– 8 bits
– Store one alphanumeric character

• WORD
– Size of the register
– Number of BITS that the CPU processes as a unit
Coding Schemes
• ASCII

– Uses one 8 bit byte
– 28 = 256 possible combinations or characters
– Virtually all PCs and many larger computers

• EBCDIC

– Uses one 8 bit byte
– 28 =256 possible combinations or characters
– Used primarily on IBM-compatible mainframes

• Unicode
–
–
–
–

Uses two 8 bit bytes (16 bits)
216 = 65,536 possible combinations or characters
Supports characters for all the world’s languages
Downward-compatible with ASCII
The System Unit
The Black Box

• Houses electronic components
– Motherboard
– Storage devices
– Connections

• Some Apple Macintosh models have system unit
inside monitor
The System Unit
The Black Box

Motherboard
• Microprocessor chip
• Memory chips
• Connections to other parts of
the hardware
• Additional chips may be added
– math coprocessor
The System Unit
The Black Box

Storage Devices
Hard drive
Floppy drive
CD-ROM drive
DVD-ROM drive
Microprocessor

•
•
•
•

CPU etched on a chip
Chip size is ¼ x ¼ inch
Composed of silicon
Contains millions of transistors
– Electronic switches that can allow current to pass
through
Microprocessor Components
•
•
•
•

Control Unit – CU
Arithmetic / Logic Unit – ALU
Registers
System clock
Building a Better Microprocessor
• Computers imprint circuitry onto
microchips
– Cheaper
– Faster

• Perform functions of other hardware
– Math coprocessor is now part of
microprocessor
– Multimedia instructions are now part of
microprocessor
Building a Better Microprocessor
The more functions that are combined on
a microprocessor:
• The faster the computer runs
• The cheaper it is to make
• The more reliable it is
Types of Microprocessors

Intel

Intel-compatible

• Pentium
• Celeron
• Xeon and Itanium

• Cyrix
• AMD
Types of Microprocessors
• PowerPC
– Cooperative efforts of Apple, IBM, and
Motorola
– Used in Apple Macintosh family of PCs
– Found in servers and embedded systems

• Alpha
– Manufactured by Compaq
– High-end servers and workstations
Semiconductor Memory
•
•
•
•
•
•
•

Reliable
Compact
Low cost
Low power usage
Mass-produced economically
Volatile
Monolithic
– All circuits together constitute an inseparable unit of storage
Semiconductor Memory
CMOS
• Complementary metal oxide semiconductor
• Uses little electricity
• Used in PC to store hardware settings that are
needed to boot the computer
• Retains information with current from battery
RAM
•
•
•
•
•
•

Keeps the instructions and data for current program
Data in memory can be accessed randomly
Easy and speedy access
Volatile
Erased
Written over
Types of RAM
SRAM
• Retains contents as long as power is
maintained
• Faster than DRAM
Types of RAM
DRAM
• Must be constantly refreshed
• Used for most PC memory because of size and
cost
• SDRAM
– faster type of DRAM

• Rambus DRAM
– Faster than SDRAM
– Expensive
Adding RAM
• Purchase memory modules that are packaged on
circuit boards
• SIMMS – Chips on one side
• DIMMS – Chips on both sides
• Maximum amount of RAM that can be installed is
based upon the motherboard design
ROM
• Programs and data that are permanently recorded at
the factory
• Read
• Use
• Cannot be changed by the user
• Stores boot routine that is activated when computer
is turned on
• Nonvolatile
PROM
• Programmable ROM
• ROM burner can change instructions on some
ROM chips
Bus Line
• Paths that transport electrical signals
• System bus
– Transports data between the CPU and memory

• Bus width
– Number of bits of data that can be carried at a time
– Normally the same as the CPUs word size

• Speed measured in MHz
Bus Line
Larger bus width

=

More powerful
computer

CPU can transfer more
data at a time

=

Faster computer

=

More memory
available

CPU can reference
larger memory
addresses

CPU can support a greater number and variety of
instructions
Expansion Buses
• Connect the motherboard to expansion slots
• Plug expansion boards into slots
– interface cards
– adapter cards

• Provides for external connectors / ports
– Serial
– Parallel
Expansion Buses
PC Buses and Ports
ISA

Slow-speed devices like mouse, modem

PCI

High-speed devices like hard disks and network cards

AGP

Connects memory and graphics card for faster video
performance

USB

Supports “daisy-chaining” eliminating the need for
multiple expansion cards; hot-swappable

IEEE 1394 High-speed bus connecting video equipment to the
(FireWire) computer
PC Card

Credit card sized PC card devices normally found on
laptops
Speed and Power
What makes a computer fast?
•
•
•
•
•
•

Microprocessor speed
Bus line size
Availability of cache
Flash memory
RISC computers
Parallel processing
Computer Processing Speed
Time to execute an instruction
• Millisecond
• Microsecond
• Nanosecond
– Modern computers

• Picosecond
– In the future
Microprocessor Speed
• Clock speed
– Megahertz (MHz)
– Gigahertz (GHz)

• Number of instructions per second
– Millions of Instructions Per Second (MIPS)

• Performance of complex mathematical operations
– One million floating-point operations per second
(Megaflop )
Cache
• Small block of very fast temporary memory
• Speed up data transfer
• Instructions and data used most frequently
or most recently
Cache
P
R
O
C
E
S
S
O
R
Step 1
Processor
requests
data or
instructions

Step 3
Transfer to main CPU and cache
R
Cache

A
M

Step 2
Go to address in main
memory and read
Next processor request
• Look first at cache
• Go to memory
Types of Cache
• Internal cache

– Level 1 (L1)
– Built into microprocessor
– Up to 128KB

• External cache
–
–
–
–
–
–

Level 2 (L2)
Separate chips
256KB or 512 KB
SRAM technology
Cheaper and slower than L1
Faster and more expensive than memory
Flash Memory
• Nonvolatile RAM
• Used in
– Cellular phones
– Digital cameras
– Digital music recorders
– PDAs
Instruction Sets
• CISC Technology

– Complex Instruction Set Computing
– Conventional computers
– Many of the instructions are not used

• RISC Technology
–
–
–
–

Reduced Instruction Set Computing
Small subset of instructions
Increases speed
Programs with few complex instructions
• Graphics
• Engineering
Types of Processing
• Serial processing
– Execute one instruction at a time
– Fetch, decode, execute, store

• Parallel Processing
– Multiple processors used at the same time
– Can perform trillions of floating-point instructions per
second (teraflops)
– Ex: network servers, supercomputers
Types of Processing

• Pipelining
– Instruction’s action need not be complete before the
next begins
– Fetch instruction 1, begin to decode and fetch
instruction 2

More Related Content

PPS
Registers and-common-bus
PPT
Data transfer and manipulation
PPT
Memory Management in OS
PPT
Program control
PPTX
Computer architecture input output organization
PDF
computer system structure
PPT
Software and hardware presentation
PPTX
Structure of processes ppt
Registers and-common-bus
Data transfer and manipulation
Memory Management in OS
Program control
Computer architecture input output organization
computer system structure
Software and hardware presentation
Structure of processes ppt

What's hot (20)

PPTX
Memory Reference Instructions
PPTX
The Basic Organization of Computers
PPTX
instruction cycle ppt
PPT
Memory hierarchy
PPTX
Ram & rom
PPTX
memory hierarchy
PPTX
Computer Organisation & Architecture (chapter 1)
PPTX
Types of operating system
PPTX
Basic Computer Organization and Design
PPTX
Introduction to Operating Systems
PPTX
Memory Hierarchy
PPTX
My presentation on 'computer hardware component' {hardware}
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
PPT
Memory management
PPTX
All about Computer memory in one ppt
PPT
Input Output Operations
PPT
Types of software
PPTX
File system structure
PDF
Introduction to Operating Systems
Memory Reference Instructions
The Basic Organization of Computers
instruction cycle ppt
Memory hierarchy
Ram & rom
memory hierarchy
Computer Organisation & Architecture (chapter 1)
Types of operating system
Basic Computer Organization and Design
Introduction to Operating Systems
Memory Hierarchy
My presentation on 'computer hardware component' {hardware}
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Memory management
All about Computer memory in one ppt
Input Output Operations
Types of software
File system structure
Introduction to Operating Systems
Ad

Viewers also liked (20)

PPTX
Sequential logics
PPTX
Lesson 4 data processing
DOC
module 1 computer architecture diploma
PPT
Number Systems
PPT
intel 8086 introduction
PPT
Computer Data Processing And Representation 4
PPT
Computer Data Processing And Representation 4
PPTX
Sequential circuits
PPTX
PPTX
Truth tables presentation
PPTX
OCR GCSE Computing - Binary logic and Truth Tables
PPT
Truth tables
PPTX
Flag registers, addressing modes, instruction set
PDF
Interrupts
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPT
8237 / 8257 DMA
PPT
Computer architecture
PPT
The Intel 8086 microprocessor
PPTX
BASIC COMPUTER ARCHITECTURE
PPTX
Direct Memory Access(DMA)
Sequential logics
Lesson 4 data processing
module 1 computer architecture diploma
Number Systems
intel 8086 introduction
Computer Data Processing And Representation 4
Computer Data Processing And Representation 4
Sequential circuits
Truth tables presentation
OCR GCSE Computing - Binary logic and Truth Tables
Truth tables
Flag registers, addressing modes, instruction set
Interrupts
Interrupts on 8086 microprocessor by vijay kumar.k
8237 / 8257 DMA
Computer architecture
The Intel 8086 microprocessor
BASIC COMPUTER ARCHITECTURE
Direct Memory Access(DMA)
Ad

Similar to Chapter4 Data Processing (20)

PPT
The Central Processing Unit(CPU) for Chapter 4
PPT
Chap4.ppt
PPT
Chap4.ppt
PPT
Chap4.ppt
PPT
Computer !
PPT
3rd the cpu
PPT
PPTX
Computer Basics
PPTX
BAIT1003 Chapter 2
PPTX
Computer and Its Components Introduction.pptx
PPTX
fundamentals_IT_presentation computer peripherals basics
PPTX
Introduction to embedded systems
PDF
Computer Main Comppponents.pdf
PPTX
3- Computer Architecture.pptx information technology
PPTX
Chap 3 CA.pptx
PPTX
Chapter 02 system unit csc & tts
PPTX
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
PPTX
CISSP - Chapter 3 - CPU Architecture
PPT
1-ComputerBasics.ppt
PPTX
W2 - Processors and it's great knowledge
The Central Processing Unit(CPU) for Chapter 4
Chap4.ppt
Chap4.ppt
Chap4.ppt
Computer !
3rd the cpu
Computer Basics
BAIT1003 Chapter 2
Computer and Its Components Introduction.pptx
fundamentals_IT_presentation computer peripherals basics
Introduction to embedded systems
Computer Main Comppponents.pdf
3- Computer Architecture.pptx information technology
Chap 3 CA.pptx
Chapter 02 system unit csc & tts
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
CISSP - Chapter 3 - CPU Architecture
1-ComputerBasics.ppt
W2 - Processors and it's great knowledge

More from Muhammad Waqas (9)

DOCX
Image processing (Signal Processing)
PPTX
Windows 98 vs Windows 200
DOCX
Introduction to CPU registers
PPTX
Six exercises to relieve back pain at your workplace
PPTX
Object Oriented Programming Using C++
PPTX
Engineering Numerical Analysis Lecture-1
PPT
Chapter7 Computer Networks
PPTX
Chapter5 Storage
PPT
Chapter1 introduction to computer systems
Image processing (Signal Processing)
Windows 98 vs Windows 200
Introduction to CPU registers
Six exercises to relieve back pain at your workplace
Object Oriented Programming Using C++
Engineering Numerical Analysis Lecture-1
Chapter7 Computer Networks
Chapter5 Storage
Chapter1 introduction to computer systems

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Computing-Curriculum for Schools in Ghana
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Complications of Minimal Access Surgery at WLH
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PPTX
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
2.FourierTransform-ShortQuestionswithAnswers.pdf
Institutional Correction lecture only . . .
Computing-Curriculum for Schools in Ghana
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
VCE English Exam - Section C Student Revision Booklet
Complications of Minimal Access Surgery at WLH
102 student loan defaulters named and shamed – Is someone you know on the list?
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
master seminar digital applications in india

Chapter4 Data Processing

  • 2. Objectives • Identify the components of the central processing unit and how they work together and interact with memory • Describe how program instructions are executed by the computer • Explain how data is represented in the computer • Describe how the computer finds instructions and data • Describe the components of a microcomputer system unit’s motherboard • List the measures of computer processing speed and explain the approaches that increase speed
  • 3. Contents • The CPU • Types of Storage • Executing Programs • Finding Data in Memory • The System Unit • Microprocessor • Semiconductor Memory • Bus Line • Speed and Power
  • 5. The CPU • Converts data into information • Control center • Set of electronic circuitry that executes stored program instructions • Two parts – Control Unit (CU) – Arithmetic Logic Unit (ALU)
  • 6. Control Unit CU • Part of the hardware that is in-charge • Directs the computer system to execute stored program instructions • Communicates with other parts of the hardware
  • 7. Arithmetic / Logic Unit ALU Performs arithmetic operations Performs logical operations
  • 9. Logical Operations • Evaluates conditions • Makes comparisons • Can compare – Numbers – Letters – Special characters
  • 10. Registers Special-purpose High-speed Temporary storage Located inside CPU Instruction register Data register Holds instruction currently being executed Holds data waiting to be processed Holds results from processing
  • 11. Types of Storage • Secondary – Data that will eventually be used – Long-term • Memory – Data that will be used in the near future – Temporary – Faster access than storage • Registers – Data immediately related to the operation being executed – Faster access than memory
  • 12. Measuring Storage Capacity KB – kilobyte • 1024 bytes • Some diskettes • Cache memory MB – megabyte • Million bytes • RAM GB – gigabyte • Billion bytes • Hard disks • CDs and DVDs TB – terabytes • Trillion bytes • Large hard disks
  • 13. Memory Many Names Primary storage Primary memory Main storage Internal storage Main memory
  • 14. Main Types of Memory RAM Random Access Memory ROM Read Only Memory
  • 15. RAM • Requires current to retain values • Volatile • Data and instructions can be read and modified • Users typically refer to this type of memory
  • 16. What’s in RAM? • • • • Operating System Program currently running Data needed by the program Intermediate results waiting to be output
  • 17. ROM • Non-volatile • Instructions for booting the computer • Data and instructions can be read, but not modified • Instructions are typically recorded at factory
  • 18. Executing Programs • CU gets an instruction and places it in memory • CU decodes the instruction • CU notifies the appropriate part of hardware to take action • Control is transferred to the appropriate part of hardware • Task is performed • Control is returned to the CU
  • 19. Machine Cycle I-time • CU fetches an instruction from memory and puts it into a register • CU decodes the instruction and determines the memory location of the data required
  • 20. Machine Cycle E-time • Execution – CU moves the data from memory to registers in the ALU – ALU is given control and executes the instruction – Control returns to the CU • CU stores the result of the operation in memory or in a register
  • 22. System Clock • System clock produces pulses at a fixed rate • Each pulse is one Machine Cycle • One program instruction may actually be several instructions to the CPU • Each CPU instruction will take one pulse • CPU has an instruction set – instructions that it can understand and process
  • 23. Finding Data in Memory • Each location in memory has a unique address – Address never changes – Contents may change • Memory location can hold one instruction or piece of data • Programmers use symbolic names
  • 24. Data Representation On/Off Binary number system is used to represent the state of the circuit
  • 25. Bits, Bytes, Words • BIT – Binary DigIT – On/off circuit – 1 or 0 • BYTE – 8 bits – Store one alphanumeric character • WORD – Size of the register – Number of BITS that the CPU processes as a unit
  • 26. Coding Schemes • ASCII – Uses one 8 bit byte – 28 = 256 possible combinations or characters – Virtually all PCs and many larger computers • EBCDIC – Uses one 8 bit byte – 28 =256 possible combinations or characters – Used primarily on IBM-compatible mainframes • Unicode – – – – Uses two 8 bit bytes (16 bits) 216 = 65,536 possible combinations or characters Supports characters for all the world’s languages Downward-compatible with ASCII
  • 27. The System Unit The Black Box • Houses electronic components – Motherboard – Storage devices – Connections • Some Apple Macintosh models have system unit inside monitor
  • 28. The System Unit The Black Box Motherboard • Microprocessor chip • Memory chips • Connections to other parts of the hardware • Additional chips may be added – math coprocessor
  • 29. The System Unit The Black Box Storage Devices Hard drive Floppy drive CD-ROM drive DVD-ROM drive
  • 30. Microprocessor • • • • CPU etched on a chip Chip size is ¼ x ¼ inch Composed of silicon Contains millions of transistors – Electronic switches that can allow current to pass through
  • 31. Microprocessor Components • • • • Control Unit – CU Arithmetic / Logic Unit – ALU Registers System clock
  • 32. Building a Better Microprocessor • Computers imprint circuitry onto microchips – Cheaper – Faster • Perform functions of other hardware – Math coprocessor is now part of microprocessor – Multimedia instructions are now part of microprocessor
  • 33. Building a Better Microprocessor The more functions that are combined on a microprocessor: • The faster the computer runs • The cheaper it is to make • The more reliable it is
  • 34. Types of Microprocessors Intel Intel-compatible • Pentium • Celeron • Xeon and Itanium • Cyrix • AMD
  • 35. Types of Microprocessors • PowerPC – Cooperative efforts of Apple, IBM, and Motorola – Used in Apple Macintosh family of PCs – Found in servers and embedded systems • Alpha – Manufactured by Compaq – High-end servers and workstations
  • 36. Semiconductor Memory • • • • • • • Reliable Compact Low cost Low power usage Mass-produced economically Volatile Monolithic – All circuits together constitute an inseparable unit of storage
  • 37. Semiconductor Memory CMOS • Complementary metal oxide semiconductor • Uses little electricity • Used in PC to store hardware settings that are needed to boot the computer • Retains information with current from battery
  • 38. RAM • • • • • • Keeps the instructions and data for current program Data in memory can be accessed randomly Easy and speedy access Volatile Erased Written over
  • 39. Types of RAM SRAM • Retains contents as long as power is maintained • Faster than DRAM
  • 40. Types of RAM DRAM • Must be constantly refreshed • Used for most PC memory because of size and cost • SDRAM – faster type of DRAM • Rambus DRAM – Faster than SDRAM – Expensive
  • 41. Adding RAM • Purchase memory modules that are packaged on circuit boards • SIMMS – Chips on one side • DIMMS – Chips on both sides • Maximum amount of RAM that can be installed is based upon the motherboard design
  • 42. ROM • Programs and data that are permanently recorded at the factory • Read • Use • Cannot be changed by the user • Stores boot routine that is activated when computer is turned on • Nonvolatile
  • 43. PROM • Programmable ROM • ROM burner can change instructions on some ROM chips
  • 44. Bus Line • Paths that transport electrical signals • System bus – Transports data between the CPU and memory • Bus width – Number of bits of data that can be carried at a time – Normally the same as the CPUs word size • Speed measured in MHz
  • 45. Bus Line Larger bus width = More powerful computer CPU can transfer more data at a time = Faster computer = More memory available CPU can reference larger memory addresses CPU can support a greater number and variety of instructions
  • 46. Expansion Buses • Connect the motherboard to expansion slots • Plug expansion boards into slots – interface cards – adapter cards • Provides for external connectors / ports – Serial – Parallel
  • 48. PC Buses and Ports ISA Slow-speed devices like mouse, modem PCI High-speed devices like hard disks and network cards AGP Connects memory and graphics card for faster video performance USB Supports “daisy-chaining” eliminating the need for multiple expansion cards; hot-swappable IEEE 1394 High-speed bus connecting video equipment to the (FireWire) computer PC Card Credit card sized PC card devices normally found on laptops
  • 49. Speed and Power What makes a computer fast? • • • • • • Microprocessor speed Bus line size Availability of cache Flash memory RISC computers Parallel processing
  • 50. Computer Processing Speed Time to execute an instruction • Millisecond • Microsecond • Nanosecond – Modern computers • Picosecond – In the future
  • 51. Microprocessor Speed • Clock speed – Megahertz (MHz) – Gigahertz (GHz) • Number of instructions per second – Millions of Instructions Per Second (MIPS) • Performance of complex mathematical operations – One million floating-point operations per second (Megaflop )
  • 52. Cache • Small block of very fast temporary memory • Speed up data transfer • Instructions and data used most frequently or most recently
  • 53. Cache P R O C E S S O R Step 1 Processor requests data or instructions Step 3 Transfer to main CPU and cache R Cache A M Step 2 Go to address in main memory and read Next processor request • Look first at cache • Go to memory
  • 54. Types of Cache • Internal cache – Level 1 (L1) – Built into microprocessor – Up to 128KB • External cache – – – – – – Level 2 (L2) Separate chips 256KB or 512 KB SRAM technology Cheaper and slower than L1 Faster and more expensive than memory
  • 55. Flash Memory • Nonvolatile RAM • Used in – Cellular phones – Digital cameras – Digital music recorders – PDAs
  • 56. Instruction Sets • CISC Technology – Complex Instruction Set Computing – Conventional computers – Many of the instructions are not used • RISC Technology – – – – Reduced Instruction Set Computing Small subset of instructions Increases speed Programs with few complex instructions • Graphics • Engineering
  • 57. Types of Processing • Serial processing – Execute one instruction at a time – Fetch, decode, execute, store • Parallel Processing – Multiple processors used at the same time – Can perform trillions of floating-point instructions per second (teraflops) – Ex: network servers, supercomputers
  • 58. Types of Processing • Pipelining – Instruction’s action need not be complete before the next begins – Fetch instruction 1, begin to decode and fetch instruction 2