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
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

What's hot

computer network OSI layer
computer network OSI layercomputer network OSI layer
computer network OSI layer
Sangeetha Rangarajan
 
Multiprocessor system
Multiprocessor systemMultiprocessor system
Multiprocessor system
El-Moataz Bellah Osama
 
Full presentation of The OSI model
Full presentation of The OSI model Full presentation of The OSI model
Full presentation of The OSI model
FizzaShehwar
 
TOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.pptTOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.ppt
shanthishyam
 
Osi reference model in Networking
Osi reference model in NetworkingOsi reference model in Networking
Osi reference model in Networking
Satya P. Joshi
 
Telnet
TelnetTelnet
Encoding Techniques
Encoding TechniquesEncoding Techniques
Common air protocol
Common air protocolCommon air protocol
Common air protocol
Asim khan
 
Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver PresentationTuhin_Das
 
Control unit
Control unitControl unit
Control unit
Syed Zaid Irshad
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
TCP IP Model | Computer Science
TCP IP Model | Computer ScienceTCP IP Model | Computer Science
TCP IP Model | Computer Science
Transweb Global Inc
 
Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)
diaryinc
 
Network Protocol and TCP/IP
Network Protocol and TCP/IPNetwork Protocol and TCP/IP
Network Protocol and TCP/IP
Bwsrang Basumatary
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
Aisyah Rafiuddin
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
Yasir Khan
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
Ankur Kumar
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
VijayaLakshmi514
 
Input output interface
Input output interfaceInput output interface
Input output interface
Christ University
 
TCP/ IP
TCP/ IP TCP/ IP

What's hot (20)

computer network OSI layer
computer network OSI layercomputer network OSI layer
computer network OSI layer
 
Multiprocessor system
Multiprocessor systemMultiprocessor system
Multiprocessor system
 
Full presentation of The OSI model
Full presentation of The OSI model Full presentation of The OSI model
Full presentation of The OSI model
 
TOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.pptTOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.ppt
 
Osi reference model in Networking
Osi reference model in NetworkingOsi reference model in Networking
Osi reference model in Networking
 
Telnet
TelnetTelnet
Telnet
 
Encoding Techniques
Encoding TechniquesEncoding Techniques
Encoding Techniques
 
Common air protocol
Common air protocolCommon air protocol
Common air protocol
 
Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver Presentation
 
Control unit
Control unitControl unit
Control unit
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
TCP IP Model | Computer Science
TCP IP Model | Computer ScienceTCP IP Model | Computer Science
TCP IP Model | Computer Science
 
Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)
 
Network Protocol and TCP/IP
Network Protocol and TCP/IPNetwork Protocol and TCP/IP
Network Protocol and TCP/IP
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 

Viewers also liked

Sequential logics
Sequential logicsSequential logics
Sequential logics
faiqikhan
 
Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processingguevarra_2000
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
Homoud Alsohaibi
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
Amit Chandra
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
guestb912a3d
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
DrSonali Vyas
 
DATA PROCESSING
DATA PROCESSINGDATA PROCESSING
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentationMujtaBa Khan
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tables
northernkiwi
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setaviban
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
AJAL A J
 
Computer architecture
Computer architectureComputer architecture
Computer architectureSanjeev Patel
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
George Thomas
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE Himanshu Sharma
 

Viewers also liked (20)

Sequential logics
Sequential logicsSequential logics
Sequential logics
 
Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processing
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
Number Systems
Number  SystemsNumber  Systems
Number Systems
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
DATA PROCESSING
DATA PROCESSINGDATA PROCESSING
DATA PROCESSING
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tables
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 

Similar to Chapter4 Data Processing

Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
mvpk14486
 
The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4
MKKhaing
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
Praches1
 
Computer !
Computer !Computer !
Computer !
Usman Shah
 
Cpu
CpuCpu
Computer Basics
Computer BasicsComputer Basics
Computer Basics
Aditya Singh
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
limsh
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
RAMPRAKASHT1
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdf
thinalost
 
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
SahalAhmed4
 
Chapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsChapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsHisyam Rosly
 
CISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureCISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU Architecture
Karthikeyan Dhayalan
 
1-ComputerBasics.ppt
1-ComputerBasics.ppt1-ComputerBasics.ppt
1-ComputerBasics.ppt
JithaKannan1
 
computer system structure
computer system structurecomputer system structure
computer system structure
HAMZA AHMED
 
ch1.ppt
ch1.pptch1.ppt
Intro ch 05_a
Intro ch 05_aIntro ch 05_a
Intro ch 05_a
Farhan2200
 
Intro ch 05_a Peter Norton
Intro ch 05_a Peter NortonIntro ch 05_a Peter Norton
Intro ch 05_a Peter Norton
sam17896
 

Similar to Chapter4 Data Processing (20)

Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4The Central Processing Unit(CPU) for Chapter 4
The Central Processing Unit(CPU) for Chapter 4
 
Chap4.ppt
Chap4.pptChap4.ppt
Chap4.ppt
 
Computer !
Computer !Computer !
Computer !
 
3rd the cpu
3rd the cpu3rd the cpu
3rd the cpu
 
Cpu
CpuCpu
Cpu
 
Computer Basics
Computer BasicsComputer Basics
Computer Basics
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdf
 
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
 
Chapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsChapter 02 system unit csc & tts
Chapter 02 system unit csc & tts
 
CISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU ArchitectureCISSP - Chapter 3 - CPU Architecture
CISSP - Chapter 3 - CPU Architecture
 
1-ComputerBasics.ppt
1-ComputerBasics.ppt1-ComputerBasics.ppt
1-ComputerBasics.ppt
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Intro ch 05_a
Intro ch 05_aIntro ch 05_a
Intro ch 05_a
 
Intro ch 05_a
Intro ch 05_aIntro ch 05_a
Intro ch 05_a
 
Intro ch 05_a Peter Norton
Intro ch 05_a Peter NortonIntro ch 05_a Peter Norton
Intro ch 05_a Peter Norton
 

More from Muhammad Waqas

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

More from Muhammad Waqas (9)

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

Recently uploaded

The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 

Recently uploaded (20)

The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 

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
  • 21.
  • 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