SlideShare a Scribd company logo
1 of 33
Computer Systems
CS208
Major Components of a
Computer System
 Processor (CPU)
 Runs program instructions
 Main Memory
 Storage for running programs and current data
 Secondary Storage
 Long-term program & data storage (hard disk, CD, etc)
 Input Devices
 Communication from the user to the computer(e.g.
keyboard, mouse)
 Output Devices
 Communication from the computer to the user (e.g.
monitor, printer, speakers)
Parts of a PC
 System Unit - the metal box that houses the
processor, main memory, and secondary
storage devices.
 Input and output devices - attached to the
system unit via a device controller.
 The terms "input" and "output" tell you if
data flow is into or out of the system unit.
 Abbreviated to “I/O”
Computer Systems
System Unit
Input device
Input device
Output device
Output device
Output device
The Processor
 The processor is the "brain" of the computer system.
 Main processor is called the Central Processing Unit (CPU).
 A particular computer will have a particular type of
processor, such as a Pentium or a SPARC chip.
 Co-processors assist the CPU with some of the processing
functions. Examples:
 Math co-processors handle heavy duty math processing
 Graphics coprocessors speed up the display of graphics
onto the monitor
Component Interaction
The CPU controls all of the other resources within the system,
in order to accomplish a task.
The CPU
The CPU is a silicon chip that contains
millions of tiny electrical components.
The CPU’s three main parts are:
 Control Unit
 Arithmetic Logic Unit (ALU)
 Registers
Central Processing Unit (CPU)
Arithmetic / Logic Unit
Registers
Control Unit
Small, fast
storage areas for
instructions and
data
Performs calculations
and decisions
Coordinates
processing steps
Registers
 Registers are small, fast memory within the CPU
 Different registers hold different things
 instructions and addresses of instructions
 data (operands)
 results of operations
Special Purpose Registers
Special Purpose Registers contain specific
information the CPU needs.
Instruction Register (IR) contains the
actual instruction which is currently being
executed by the CPU.
The Program Counter (PC) contains the
address of the next instruction to be
executed by the program.
General Purpose Registers
General Purpose Registers hold:
 the operands for arithmetic and logical
operations (ie. the values on which the
operation will be performed)
 the results of such operations
So General Purpose Registers are used for
holding and manipulating data used by the CPU
Computer Systems
Not All Processors Are Created Equal
Newer machines use specialized processor chips that
have been developed to speed up the processing of
data.
 CISC - Complex instruction set computer
 Large instruction set, many formats
 RISC - Reduced instruction set computer
 Small instruction set, single or small variations in
format
 MPP - Massive parallel processing
 Many CPUs working in parallel
Memory
Computer Memory
- millions/billions of on/off charges
Divided into:
 Bits 0 or 1
 Bytes Groups of 8 bits
A byte is the smallest unit of storage.
(Can hold one text character)
 Words Groups of bits/bytes (8, 16, 32, 64-bits)
Memory
Storage is usually too large to be expressed in bytes or
words. Instead we use:
 Kilobyte (KB) = 1024 bytes (210 bytes)
 Megabyte (MB) = 1024 x 1024 bytes or
one million bytes (220 bytes)
 Gigabyte (GB) = 1024 x 1024 x 1024 bytes or
one trillion bytes (230 bytes)
 Terabyte (TB) = 1024 x 1024 x 1024 x 1024 bytes
one quadrillion bytes (240 bytes)
Main Memory
 Each computer has a specific word size
 Word sizes vary from computer to computer.
 Word size is an even multiple of a bytes.
 Each word within memory can hold either
 data or
 program instructions
Main Memory
5248
5249
5250
5251
5252
5253
5254
5255
5256
A word is stored in
consecutive
memory bytes.
10011010
Each memory cell stores a
set number of bits (some
computers use 8 bits/one
byte, others use words)
Each memory cell
has a numeric
address, which
uniquely identifies
its location
CPU and Memory
 CPU can interact with main memory in two ways:
 It can write a byte/word to a given memory location.
 The previous bits that were in that location are
destroyed
 The new bits are saved for future use.
 It can read a byte/word from a given memory location.
 The CPU copies the bits stored at that location and
stores them in a CPU register
 The contents of the memory location are NOT
changed.
Main Memory Characteristics
 Very closely connected to the CPU.
 Contents are quickly and easily changed.
 Holds the programs and data that the
processor is actively working with.
 Interacts with the processor millions of times
per second.
 Nothing permanent is kept in main memory.
Secondary Storage
Characteristics
 Connected to main memory through a bus and a
device controller.
 Contents are easily changed, but access is very
slow compared to main memory.
 Only occasionally interacts with CPU.
 Used for long-term storage of programs and data.
 Much larger than main memory (GBs vs. MBs).
Program Instructions
 Programs instructions are stored in secondary storage
(hard disks, CD-ROM, DVD).
 To process data, the CPU requires a working area
 Uses Main Memory
 Also called: RAM (random access memory),
primary storage, and internal memory.
 Before a program is run, instructions must first be copied
from the slow secondary storage into fast main memory
 Provides the CPU with fast access to instructions to
execute.
Instructions
 An instruction is a sequence of bits.
 A simple instruction format may consist of an
operation code (op code) and an address or
operands.
Op Code Operands / Address
 Instructions tell the computer’s CPU what to do.
Instructions
 The operation code specifies the operation the
computer is to carry out (add, compare, etc)
 The operand/address area can store an operand or an
address
 An operand is a specific value or a register number
 An address allows the instruction to refer to a
location in main memory
 The CPU runs each instruction in the program,
starting with instruction 0, using the fetch-decode-
execute cycle.
Fetch-Decode-Execute Cycle
 During the fetch part, the CPU fetches the next
instruction from the address contained in the
Program Counter and places the instruction in
the Instruction Register.
 When a program starts, the program counter contains 0,
so the instruction at address 0 is fetched.
 As soon as an instruction is fetched, the CPU
adds 1 word to the contents of the Program
Counter, so that it will contain the address of the
next sequential instruction.
Fetch-Decode-Execute Cycle
 The decode unit within the CPU deciphers the
instruction in the Instruction Register and
determines what operations need to be done and
what type of operands will be used (decode part).
 During the execution part, the specified operation
is performed (add, compare, etc).
 After execution of the instruction has been
completed the cycle starts all over again (unless
the instruction terminates the program).
Fetch-Decode-Execute
Diagram
Program Counter (PC)
3023
Instruction Register
General Purpose Registers
Fetch
Get instruction and
increment PC
CPU
…
3020
3021
3022
3023
3024
3025
3026
3027
3028
…
Main Memory
add r3, r1, r2
33
45
add r3, r1, r2
r1
r2
r3
78
3024
Execute
In this case add r1 and
r2 and put result in r3.
Decode
Determine what the
instruction is (add)
Then begin again by Fetching the instruction in 3024….
Clocks
 Computer systems have an internal clock, which is
used to synchronize their activities.
 Processors run at a particular clock speed.
 Clock speed is measured in Hertz
 One Hertz is one clock tick per second.
 MHz means mega Hertz
One MHz is one million clock ticks per second.
The clock speed determines how fast instructions
can be run
Access to Instructions
The hard disk is too slow to provide instructions to the CPU.
So programs are first loaded into main memory, which is much faster.
The CPU can then access the instructions more quickly.
Cache Memory
 But as CPU speeds became faster, the main
memory couldn’t provide the CPU with the
instructions at a fast enough rate.
 So even faster memory ( cache memory) is
now placed between the CPU and main
memory to provide the instructions at an
quicker rate to the CPU.
Cache Memory
When an instruction or data is accessed from main memory, it is placed in
the cache. Second and subsequent use of the same instruction/data will
then be faster, since it is accessed directly from the cache.
Primary and Secondary
Cache Memory
 Most modern CPUs now have a cache
memory (L1), on the same silicon wafer as
the CPU, to provide the CPU with
instructions at the same clock speed as the
CPU.
 An additional off-the-chip secondary cache
(L2) may also interact with the CPU at a
slower speed.
L1 and L2 Cache Memory
User view of Computer Systems
Software that
controls the
hardware devices
Operating System –
- the user interface
Applications
e.g. Word, Netscape, etc
How Programs Are Run
 The operating system presents an interface to the user
(e.g. Windows Desktop)
 The user double clicks on an icon to run a program (e.g.
Microsoft Word)
 The operating system copies the program (or at least the first part
of it) from the hard disk into main memory
 The CPU runs the instructions in the program, and presents the
initial Word screen
 Within Word, the user uses the menu to open a document
 The application software (Word) asks the Operating System to
open the file.
 The Operating System communicates with the hardware to open
the file on the hard disk.

More Related Content

Similar to Major Components of a Computer System

03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnectionnoman yasin
 
Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)myanddy
 
Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)myanddy
 
Unit 1 four part pocessor and memory
Unit 1 four part pocessor and memoryUnit 1 four part pocessor and memory
Unit 1 four part pocessor and memoryNeha Kurale
 
Computer-Processing-Devices.pdf
Computer-Processing-Devices.pdfComputer-Processing-Devices.pdf
Computer-Processing-Devices.pdfDKGAUTAMgautam
 
Assignment#1 Mapacpac, F M P (Cs3112 Os)
Assignment#1 Mapacpac, F M P  (Cs3112 Os)Assignment#1 Mapacpac, F M P  (Cs3112 Os)
Assignment#1 Mapacpac, F M P (Cs3112 Os)dyandmy
 
Multilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMahesh Kumar Attri
 
Chapter 5 It Architecture
Chapter 5 It ArchitectureChapter 5 It Architecture
Chapter 5 It ArchitectureUMaine
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing UnitMISY
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer ArchitecturePAF KIET
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfshubhangisonawane6
 
computer Processors intel and amd
computer Processors intel and amdcomputer Processors intel and amd
computer Processors intel and amdRohit Gada
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6Suad 00
 

Similar to Major Components of a Computer System (20)

Pankaj kumar
Pankaj kumar Pankaj kumar
Pankaj kumar
 
03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnection
 
Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)
 
Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)Assignment#1 lograbo, s.f. (cs3112-os)
Assignment#1 lograbo, s.f. (cs3112-os)
 
Unit 1 four part pocessor and memory
Unit 1 four part pocessor and memoryUnit 1 four part pocessor and memory
Unit 1 four part pocessor and memory
 
Computer-Processing-Devices.pdf
Computer-Processing-Devices.pdfComputer-Processing-Devices.pdf
Computer-Processing-Devices.pdf
 
Computer processors
Computer processorsComputer processors
Computer processors
 
Assignment#1 Mapacpac, F M P (Cs3112 Os)
Assignment#1 Mapacpac, F M P  (Cs3112 Os)Assignment#1 Mapacpac, F M P  (Cs3112 Os)
Assignment#1 Mapacpac, F M P (Cs3112 Os)
 
Multilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memory
 
Chapter 5 It Architecture
Chapter 5 It ArchitectureChapter 5 It Architecture
Chapter 5 It Architecture
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing Unit
 
system unit.ppt
system unit.pptsystem unit.ppt
system unit.ppt
 
Unit2fit
Unit2fitUnit2fit
Unit2fit
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdf
 
ICT Lecture-1
ICT Lecture-1 ICT Lecture-1
ICT Lecture-1
 
Lec 8 alu_cu
Lec 8 alu_cuLec 8 alu_cu
Lec 8 alu_cu
 
computer Processors intel and amd
computer Processors intel and amdcomputer Processors intel and amd
computer Processors intel and amd
 
Beekman5 std ppt_02
Beekman5 std ppt_02Beekman5 std ppt_02
Beekman5 std ppt_02
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6
 

More from jguuhxxxfp

Processes in Linux.ppt
Processes in Linux.pptProcesses in Linux.ppt
Processes in Linux.pptjguuhxxxfp
 
Operating Systems.pptx
Operating Systems.pptxOperating Systems.pptx
Operating Systems.pptxjguuhxxxfp
 
Input Output Overview.ppt
Input Output Overview.pptInput Output Overview.ppt
Input Output Overview.pptjguuhxxxfp
 
Project Report.pptx
Project Report.pptxProject Report.pptx
Project Report.pptxjguuhxxxfp
 
College Placement Project.pptx
College Placement Project.pptxCollege Placement Project.pptx
College Placement Project.pptxjguuhxxxfp
 
Disks and Stable Storage.ppt
Disks and Stable Storage.pptDisks and Stable Storage.ppt
Disks and Stable Storage.pptjguuhxxxfp
 
emp-internet07.ppt
emp-internet07.pptemp-internet07.ppt
emp-internet07.pptjguuhxxxfp
 

More from jguuhxxxfp (7)

Processes in Linux.ppt
Processes in Linux.pptProcesses in Linux.ppt
Processes in Linux.ppt
 
Operating Systems.pptx
Operating Systems.pptxOperating Systems.pptx
Operating Systems.pptx
 
Input Output Overview.ppt
Input Output Overview.pptInput Output Overview.ppt
Input Output Overview.ppt
 
Project Report.pptx
Project Report.pptxProject Report.pptx
Project Report.pptx
 
College Placement Project.pptx
College Placement Project.pptxCollege Placement Project.pptx
College Placement Project.pptx
 
Disks and Stable Storage.ppt
Disks and Stable Storage.pptDisks and Stable Storage.ppt
Disks and Stable Storage.ppt
 
emp-internet07.ppt
emp-internet07.pptemp-internet07.ppt
emp-internet07.ppt
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 

Recently uploaded (20)

🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 

Major Components of a Computer System

  • 2. Major Components of a Computer System  Processor (CPU)  Runs program instructions  Main Memory  Storage for running programs and current data  Secondary Storage  Long-term program & data storage (hard disk, CD, etc)  Input Devices  Communication from the user to the computer(e.g. keyboard, mouse)  Output Devices  Communication from the computer to the user (e.g. monitor, printer, speakers)
  • 3. Parts of a PC  System Unit - the metal box that houses the processor, main memory, and secondary storage devices.  Input and output devices - attached to the system unit via a device controller.  The terms "input" and "output" tell you if data flow is into or out of the system unit.  Abbreviated to “I/O”
  • 4. Computer Systems System Unit Input device Input device Output device Output device Output device
  • 5. The Processor  The processor is the "brain" of the computer system.  Main processor is called the Central Processing Unit (CPU).  A particular computer will have a particular type of processor, such as a Pentium or a SPARC chip.  Co-processors assist the CPU with some of the processing functions. Examples:  Math co-processors handle heavy duty math processing  Graphics coprocessors speed up the display of graphics onto the monitor
  • 6. Component Interaction The CPU controls all of the other resources within the system, in order to accomplish a task.
  • 7. The CPU The CPU is a silicon chip that contains millions of tiny electrical components. The CPU’s three main parts are:  Control Unit  Arithmetic Logic Unit (ALU)  Registers
  • 8. Central Processing Unit (CPU) Arithmetic / Logic Unit Registers Control Unit Small, fast storage areas for instructions and data Performs calculations and decisions Coordinates processing steps
  • 9. Registers  Registers are small, fast memory within the CPU  Different registers hold different things  instructions and addresses of instructions  data (operands)  results of operations
  • 10. Special Purpose Registers Special Purpose Registers contain specific information the CPU needs. Instruction Register (IR) contains the actual instruction which is currently being executed by the CPU. The Program Counter (PC) contains the address of the next instruction to be executed by the program.
  • 11. General Purpose Registers General Purpose Registers hold:  the operands for arithmetic and logical operations (ie. the values on which the operation will be performed)  the results of such operations So General Purpose Registers are used for holding and manipulating data used by the CPU
  • 12. Computer Systems Not All Processors Are Created Equal Newer machines use specialized processor chips that have been developed to speed up the processing of data.  CISC - Complex instruction set computer  Large instruction set, many formats  RISC - Reduced instruction set computer  Small instruction set, single or small variations in format  MPP - Massive parallel processing  Many CPUs working in parallel
  • 13. Memory Computer Memory - millions/billions of on/off charges Divided into:  Bits 0 or 1  Bytes Groups of 8 bits A byte is the smallest unit of storage. (Can hold one text character)  Words Groups of bits/bytes (8, 16, 32, 64-bits)
  • 14. Memory Storage is usually too large to be expressed in bytes or words. Instead we use:  Kilobyte (KB) = 1024 bytes (210 bytes)  Megabyte (MB) = 1024 x 1024 bytes or one million bytes (220 bytes)  Gigabyte (GB) = 1024 x 1024 x 1024 bytes or one trillion bytes (230 bytes)  Terabyte (TB) = 1024 x 1024 x 1024 x 1024 bytes one quadrillion bytes (240 bytes)
  • 15. Main Memory  Each computer has a specific word size  Word sizes vary from computer to computer.  Word size is an even multiple of a bytes.  Each word within memory can hold either  data or  program instructions
  • 16. Main Memory 5248 5249 5250 5251 5252 5253 5254 5255 5256 A word is stored in consecutive memory bytes. 10011010 Each memory cell stores a set number of bits (some computers use 8 bits/one byte, others use words) Each memory cell has a numeric address, which uniquely identifies its location
  • 17. CPU and Memory  CPU can interact with main memory in two ways:  It can write a byte/word to a given memory location.  The previous bits that were in that location are destroyed  The new bits are saved for future use.  It can read a byte/word from a given memory location.  The CPU copies the bits stored at that location and stores them in a CPU register  The contents of the memory location are NOT changed.
  • 18. Main Memory Characteristics  Very closely connected to the CPU.  Contents are quickly and easily changed.  Holds the programs and data that the processor is actively working with.  Interacts with the processor millions of times per second.  Nothing permanent is kept in main memory.
  • 19. Secondary Storage Characteristics  Connected to main memory through a bus and a device controller.  Contents are easily changed, but access is very slow compared to main memory.  Only occasionally interacts with CPU.  Used for long-term storage of programs and data.  Much larger than main memory (GBs vs. MBs).
  • 20. Program Instructions  Programs instructions are stored in secondary storage (hard disks, CD-ROM, DVD).  To process data, the CPU requires a working area  Uses Main Memory  Also called: RAM (random access memory), primary storage, and internal memory.  Before a program is run, instructions must first be copied from the slow secondary storage into fast main memory  Provides the CPU with fast access to instructions to execute.
  • 21. Instructions  An instruction is a sequence of bits.  A simple instruction format may consist of an operation code (op code) and an address or operands. Op Code Operands / Address  Instructions tell the computer’s CPU what to do.
  • 22. Instructions  The operation code specifies the operation the computer is to carry out (add, compare, etc)  The operand/address area can store an operand or an address  An operand is a specific value or a register number  An address allows the instruction to refer to a location in main memory  The CPU runs each instruction in the program, starting with instruction 0, using the fetch-decode- execute cycle.
  • 23. Fetch-Decode-Execute Cycle  During the fetch part, the CPU fetches the next instruction from the address contained in the Program Counter and places the instruction in the Instruction Register.  When a program starts, the program counter contains 0, so the instruction at address 0 is fetched.  As soon as an instruction is fetched, the CPU adds 1 word to the contents of the Program Counter, so that it will contain the address of the next sequential instruction.
  • 24. Fetch-Decode-Execute Cycle  The decode unit within the CPU deciphers the instruction in the Instruction Register and determines what operations need to be done and what type of operands will be used (decode part).  During the execution part, the specified operation is performed (add, compare, etc).  After execution of the instruction has been completed the cycle starts all over again (unless the instruction terminates the program).
  • 25. Fetch-Decode-Execute Diagram Program Counter (PC) 3023 Instruction Register General Purpose Registers Fetch Get instruction and increment PC CPU … 3020 3021 3022 3023 3024 3025 3026 3027 3028 … Main Memory add r3, r1, r2 33 45 add r3, r1, r2 r1 r2 r3 78 3024 Execute In this case add r1 and r2 and put result in r3. Decode Determine what the instruction is (add) Then begin again by Fetching the instruction in 3024….
  • 26. Clocks  Computer systems have an internal clock, which is used to synchronize their activities.  Processors run at a particular clock speed.  Clock speed is measured in Hertz  One Hertz is one clock tick per second.  MHz means mega Hertz One MHz is one million clock ticks per second. The clock speed determines how fast instructions can be run
  • 27. Access to Instructions The hard disk is too slow to provide instructions to the CPU. So programs are first loaded into main memory, which is much faster. The CPU can then access the instructions more quickly.
  • 28. Cache Memory  But as CPU speeds became faster, the main memory couldn’t provide the CPU with the instructions at a fast enough rate.  So even faster memory ( cache memory) is now placed between the CPU and main memory to provide the instructions at an quicker rate to the CPU.
  • 29. Cache Memory When an instruction or data is accessed from main memory, it is placed in the cache. Second and subsequent use of the same instruction/data will then be faster, since it is accessed directly from the cache.
  • 30. Primary and Secondary Cache Memory  Most modern CPUs now have a cache memory (L1), on the same silicon wafer as the CPU, to provide the CPU with instructions at the same clock speed as the CPU.  An additional off-the-chip secondary cache (L2) may also interact with the CPU at a slower speed.
  • 31. L1 and L2 Cache Memory
  • 32. User view of Computer Systems Software that controls the hardware devices Operating System – - the user interface Applications e.g. Word, Netscape, etc
  • 33. How Programs Are Run  The operating system presents an interface to the user (e.g. Windows Desktop)  The user double clicks on an icon to run a program (e.g. Microsoft Word)  The operating system copies the program (or at least the first part of it) from the hard disk into main memory  The CPU runs the instructions in the program, and presents the initial Word screen  Within Word, the user uses the menu to open a document  The application software (Word) asks the Operating System to open the file.  The Operating System communicates with the hardware to open the file on the hard disk.