SlideShare a Scribd company logo
Basics of Computer Organization
Miss Sidra
1
Class Participation & Discipline
 Keep the things simple.
 Be attentive.
 Irrelevant & related to pre req questions are not
welcome.
 Put some effort at your end.
 No spoon-feeding.
 Suggestions are only welcome when asked.
 Office hours.
2
Book Chapter
 “Computer Organization and Architecture”
 Author “William Stallings”
 8th Edition
 Chapter 2
 Section 2.1
 Section 2.2
3
Outline
 Computer Evolution and Performance
 Von Neumann Architecture
 A top level view of computer function
 Computer Components
 Interconnection Structure
 Bus Interconnection
 Computer Memory System Overview
4
Computer Evolution
Generation Approximate Dates Technology
Typical Speed
(Operations/second)
1 1946 – 1957 Vacuum tube 40,000
2 1958 – 1964 Transistor 200,000
3 1965 – 1971 Small and Medium Scale Integration 1,000,000
4 1972 – 1977 Large Scale Integration 10,000,000
5 1978 – 1991 Very Large Scale Integration 100,000,000
6 1991 – Present Ultra Large Scale Integration 1,000,000,000
 It is widely accepted to classify computers into
generations based on the fundamental hardware
technology employed
5
Computer Evolution
 First Generation of Computers
 Use of vacuum tubes
 Second Generation of Computers
 Transistors replaced vacuum tubes
 Third Generation of Computers
 Integrated Circuits were introduced
 Later Generations
 Large Scale Integration (LSI)
 Very Large Scale Integration (VLSI)
6
First Generation of Computers
 Electronic Numerical Integrator And Computer
(ENIAC) was first general purpose computer
 Very expensive
 Weighted 30 tons
 Occupied 1500 square feet
 Contained more than 18000 vacuum tubes
 Consumed 140 kilowatts when operating
 Used decimal system rather than binary system
7
Outline
 Computer Evolution and Performance
 von Neumann Architecture
 A top level view of computer function
 Computer Components
8
von Neumann Architecture
 ENIAC did not provide the facility to store
programs
 Stored-Program Concept proposed by John von
Neumann
 Much similar to modern machines
 …that’s why today’s computers are referred to as Von
Neumann Machines
9
IAS Computer (1/2)
 Followed stored-program concept
 It contained
 Main memory storing programs and data
 ALU operating on binary data
 Control Unit interprets instructions from memory and
causes them to be executed
 Input and Output equipment operated by control unit
10
IAS Computer (2/2)
Main
Memory
(M)
I/O
Equipm
ent
(I,O)
Arithmetic
Logic Unit
(ALU)
Program
Control
Unit (CU)
Central Processing Unit (CPU)
11
IAS Details
 1000 words each of 40 bits
 Binary Numbers
 2x20 bit instructions
 Set of registers (storage in CPU)
 Memory Buffer Register (MBR)
 Memory Address Register (MAR)
 Instruction Register (IR)
 Instruction Buffer Register (IBR)
 Program Counter (PC)
 Accumulator (AC)
 Multiplier Quotient (MQ)
12
IAS Expanded Structure
I/O
Equipment
Main
Memory
AC MQ
Arithmetic-logic
circuits
MBR
IBR PC
IR MAR
Control
circuits
Arithmetic Logic
Unit (ALU)
Program
Control Unit
13
Outline
 Computer Evolution and Performance
 von Neumann Architecture
 A top level view of computer function
 Computer Components
14
Computer Components
 According to von Neumann machine
architecture, a computer has the following
components
 Central Processing Unit (CPU)
 Main Memory
 I/O Components
15
Computer Components
MAR
MBR
I/O AR
I/O BR
PC
IR
Execution
Unit
CPU
I/O Module
Buffers
Main Memory
0
1
2
n-1
n-2
Data
Data
Data
Data
Instruction
Instruction
Instruction
Instruction
16
Interrupts
 Mechanism by which other modules may
interrupt normal sequence of processing
 If normal execution of current program must be
interrupted, the device raises an interrupt signal
 Interrupt-service routine
 Current system information is backed up before
calling interrupt handler
 After interrupt completion, the previous system
information is restored
17
Classes of Interrupts
 4 different classes of interrupts
 Program
 Generated by program executions
 Arithmetic overflow, division by zero
 Timer
 Generated by internal processor timer
 Used in pre-emptive multi-tasking
 I/O
 From I/O controller
 Hardware failure
 Power failure, memory parity error???????
18
Interrupt Cycle
 Added to instruction execution cycle
 Processor checks for interrupts
 Indicated by an interrupt signal
 If no interrupt, fetch next instruction
 If interrupt pending…
 Suspend execution of current program
 Save context
 Set PC to start address of interrupt handler routine
 Process interrupt
 Restore context and continue interrupted program
19
Instruction Execution Cycle with Interrupts
20
Fetch next
Instruction
Execute
Instruction
Check for
Interrupts;
process interrupt
START
HALT
Fetch Cycle Execute Cycle Interrupt Cycle
Interrupts
disabled
Interrupts
enabled
Transfer of Control via Interrupts
21
1
2
i
i+1
M
M-1
Interrupt
occurs
here
User Program Interrupt Handler
Multiple Interrupts
 Multiple interrupts can occur in some situations
 Multiple interrupts can be handled using two
approaches
 Disabling Interrupts
 Defining priorities of interrupts
22
Disabling Interrupts
 Processor can ignore further interrupts whilst processing
one interrupt
 Interrupts remain pending and are checked after first
interrupt has been processed
 Interrupts are handled in sequence as they occur hence
called Sequential Interrupts
23
User Program
Interrupt
Handler X
Interrupt
Handler Y
Defining Priorities of Interrupts
 Low priority interrupts can be interrupted by higher priority
interrupts
 When higher priority interrupt has been processed,
processor returns to previous interrupt
 These types of interrupts are called Nested Interrupts
24
User Program
Interrupt
Handler X
Interrupt
Handler Y
Interconnection Structures
 Three basic computer components
 Processor
 Main memory
 I/O Devices
 They need to interact with each other to perform
their functions
 Collection of paths connecting above modules is
called Interconnection Structures
 Type of connection depends upon the module
 Memory Connection
 I/O Module Connection
 CPU Connection
25
Memory Connection
 Receives and send data
 Receives addresses of memory locations
 Receives control signals
 Read
 Write
26
I/O Module Connection
 Similar to memory from computer’s viewpoint
 Input connection
 Receives data from peripheral
 Sends data to computer
 Output connection
 Receives data from computer
 Sends data to peripheral
27
CPU Connection
 Reads instructions and data
 Writes out data after processing
 Sends control signals to other units
 Receives and acts on interrupts
28

More Related Content

Similar to Comp Evo and Interrupts.pptx

MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
bhaveshagrawal35
 
conrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptxconrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptx
jbri1395
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
Ruhul Amin
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architecture
Shishir Aryal
 
125252.ppt
125252.ppt125252.ppt
125252.ppt
divlee1
 
unit-i.pdf
unit-i.pdfunit-i.pdf
unit-i.pdf
RISHI643981
 
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptINTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
MozammelHaque53
 
Chap1_Introduction.pdf
Chap1_Introduction.pdfChap1_Introduction.pdf
Chap1_Introduction.pdf
YuChianWu1
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
Deepak John
 
Ch 01 os8e
Ch 01  os8eCh 01  os8e
Ch 01 os8e
Syed Faisal
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
vishnu murthy
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
 
computer organization and architecture
computer organization and architecturecomputer organization and architecture
computer organization and architecture
IndrajaMeghavathula
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.ppt
MollyZolly
 
slides.pdf
slides.pdfslides.pdf
slides.pdf
GafryMahmoud
 
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKCOMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
gangesh sharma
 
Computer Fundamentals lecture 1 Basic components of computer system.pptx
Computer Fundamentals lecture 1 Basic components of computer system.pptxComputer Fundamentals lecture 1 Basic components of computer system.pptx
Computer Fundamentals lecture 1 Basic components of computer system.pptx
dbmscse61
 
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptxComputer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
solomonlemma14
 
Introduction to Computer.pdf
Introduction to Computer.pdfIntroduction to Computer.pdf
Introduction to Computer.pdf
PinkiNayak1
 
Information technology
Information technologyInformation technology
Information technology
Prof. Othman Alsalloum
 

Similar to Comp Evo and Interrupts.pptx (20)

MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
conrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptxconrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptx
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architecture
 
125252.ppt
125252.ppt125252.ppt
125252.ppt
 
unit-i.pdf
unit-i.pdfunit-i.pdf
unit-i.pdf
 
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptINTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
 
Chap1_Introduction.pdf
Chap1_Introduction.pdfChap1_Introduction.pdf
Chap1_Introduction.pdf
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
Ch 01 os8e
Ch 01  os8eCh 01  os8e
Ch 01 os8e
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
computer organization and architecture
computer organization and architecturecomputer organization and architecture
computer organization and architecture
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.ppt
 
slides.pdf
slides.pdfslides.pdf
slides.pdf
 
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKCOMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
 
Computer Fundamentals lecture 1 Basic components of computer system.pptx
Computer Fundamentals lecture 1 Basic components of computer system.pptxComputer Fundamentals lecture 1 Basic components of computer system.pptx
Computer Fundamentals lecture 1 Basic components of computer system.pptx
 
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptxComputer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
Computer_Architecture&O_ECEG_3163_02_computer_evolution_performance.pptx
 
Introduction to Computer.pdf
Introduction to Computer.pdfIntroduction to Computer.pdf
Introduction to Computer.pdf
 
Information technology
Information technologyInformation technology
Information technology
 

Recently uploaded

132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
Kamal Acharya
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
upoux
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
Yasser Mahgoub
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
PIMR BHOPAL
 

Recently uploaded (20)

132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
 

Comp Evo and Interrupts.pptx

  • 1. Basics of Computer Organization Miss Sidra 1
  • 2. Class Participation & Discipline  Keep the things simple.  Be attentive.  Irrelevant & related to pre req questions are not welcome.  Put some effort at your end.  No spoon-feeding.  Suggestions are only welcome when asked.  Office hours. 2
  • 3. Book Chapter  “Computer Organization and Architecture”  Author “William Stallings”  8th Edition  Chapter 2  Section 2.1  Section 2.2 3
  • 4. Outline  Computer Evolution and Performance  Von Neumann Architecture  A top level view of computer function  Computer Components  Interconnection Structure  Bus Interconnection  Computer Memory System Overview 4
  • 5. Computer Evolution Generation Approximate Dates Technology Typical Speed (Operations/second) 1 1946 – 1957 Vacuum tube 40,000 2 1958 – 1964 Transistor 200,000 3 1965 – 1971 Small and Medium Scale Integration 1,000,000 4 1972 – 1977 Large Scale Integration 10,000,000 5 1978 – 1991 Very Large Scale Integration 100,000,000 6 1991 – Present Ultra Large Scale Integration 1,000,000,000  It is widely accepted to classify computers into generations based on the fundamental hardware technology employed 5
  • 6. Computer Evolution  First Generation of Computers  Use of vacuum tubes  Second Generation of Computers  Transistors replaced vacuum tubes  Third Generation of Computers  Integrated Circuits were introduced  Later Generations  Large Scale Integration (LSI)  Very Large Scale Integration (VLSI) 6
  • 7. First Generation of Computers  Electronic Numerical Integrator And Computer (ENIAC) was first general purpose computer  Very expensive  Weighted 30 tons  Occupied 1500 square feet  Contained more than 18000 vacuum tubes  Consumed 140 kilowatts when operating  Used decimal system rather than binary system 7
  • 8. Outline  Computer Evolution and Performance  von Neumann Architecture  A top level view of computer function  Computer Components 8
  • 9. von Neumann Architecture  ENIAC did not provide the facility to store programs  Stored-Program Concept proposed by John von Neumann  Much similar to modern machines  …that’s why today’s computers are referred to as Von Neumann Machines 9
  • 10. IAS Computer (1/2)  Followed stored-program concept  It contained  Main memory storing programs and data  ALU operating on binary data  Control Unit interprets instructions from memory and causes them to be executed  Input and Output equipment operated by control unit 10
  • 11. IAS Computer (2/2) Main Memory (M) I/O Equipm ent (I,O) Arithmetic Logic Unit (ALU) Program Control Unit (CU) Central Processing Unit (CPU) 11
  • 12. IAS Details  1000 words each of 40 bits  Binary Numbers  2x20 bit instructions  Set of registers (storage in CPU)  Memory Buffer Register (MBR)  Memory Address Register (MAR)  Instruction Register (IR)  Instruction Buffer Register (IBR)  Program Counter (PC)  Accumulator (AC)  Multiplier Quotient (MQ) 12
  • 13. IAS Expanded Structure I/O Equipment Main Memory AC MQ Arithmetic-logic circuits MBR IBR PC IR MAR Control circuits Arithmetic Logic Unit (ALU) Program Control Unit 13
  • 14. Outline  Computer Evolution and Performance  von Neumann Architecture  A top level view of computer function  Computer Components 14
  • 15. Computer Components  According to von Neumann machine architecture, a computer has the following components  Central Processing Unit (CPU)  Main Memory  I/O Components 15
  • 16. Computer Components MAR MBR I/O AR I/O BR PC IR Execution Unit CPU I/O Module Buffers Main Memory 0 1 2 n-1 n-2 Data Data Data Data Instruction Instruction Instruction Instruction 16
  • 17. Interrupts  Mechanism by which other modules may interrupt normal sequence of processing  If normal execution of current program must be interrupted, the device raises an interrupt signal  Interrupt-service routine  Current system information is backed up before calling interrupt handler  After interrupt completion, the previous system information is restored 17
  • 18. Classes of Interrupts  4 different classes of interrupts  Program  Generated by program executions  Arithmetic overflow, division by zero  Timer  Generated by internal processor timer  Used in pre-emptive multi-tasking  I/O  From I/O controller  Hardware failure  Power failure, memory parity error??????? 18
  • 19. Interrupt Cycle  Added to instruction execution cycle  Processor checks for interrupts  Indicated by an interrupt signal  If no interrupt, fetch next instruction  If interrupt pending…  Suspend execution of current program  Save context  Set PC to start address of interrupt handler routine  Process interrupt  Restore context and continue interrupted program 19
  • 20. Instruction Execution Cycle with Interrupts 20 Fetch next Instruction Execute Instruction Check for Interrupts; process interrupt START HALT Fetch Cycle Execute Cycle Interrupt Cycle Interrupts disabled Interrupts enabled
  • 21. Transfer of Control via Interrupts 21 1 2 i i+1 M M-1 Interrupt occurs here User Program Interrupt Handler
  • 22. Multiple Interrupts  Multiple interrupts can occur in some situations  Multiple interrupts can be handled using two approaches  Disabling Interrupts  Defining priorities of interrupts 22
  • 23. Disabling Interrupts  Processor can ignore further interrupts whilst processing one interrupt  Interrupts remain pending and are checked after first interrupt has been processed  Interrupts are handled in sequence as they occur hence called Sequential Interrupts 23 User Program Interrupt Handler X Interrupt Handler Y
  • 24. Defining Priorities of Interrupts  Low priority interrupts can be interrupted by higher priority interrupts  When higher priority interrupt has been processed, processor returns to previous interrupt  These types of interrupts are called Nested Interrupts 24 User Program Interrupt Handler X Interrupt Handler Y
  • 25. Interconnection Structures  Three basic computer components  Processor  Main memory  I/O Devices  They need to interact with each other to perform their functions  Collection of paths connecting above modules is called Interconnection Structures  Type of connection depends upon the module  Memory Connection  I/O Module Connection  CPU Connection 25
  • 26. Memory Connection  Receives and send data  Receives addresses of memory locations  Receives control signals  Read  Write 26
  • 27. I/O Module Connection  Similar to memory from computer’s viewpoint  Input connection  Receives data from peripheral  Sends data to computer  Output connection  Receives data from computer  Sends data to peripheral 27
  • 28. CPU Connection  Reads instructions and data  Writes out data after processing  Sends control signals to other units  Receives and acts on interrupts 28

Editor's Notes

  1. John Mauchly, a professor of electrical engineering at the University of Pennsylvania, and John Eckert, one of his graduate students, proposed to build a general-purpose computer using vacuum tubes for the BRL’s application. In 1943, the Army accepted this proposal, and work began on the ENIAC.
  2. The first publication of the idea was in a 1945 proposal by von Neumann for a new computer, the EDVAC (Electronic Discrete Variable Computer).
  3. Institute for Advanced Studies (IAS)
  4. is task in which a computer operating system uses some criteria to decide how long to allocate to any one task before giving another task a turn to use the operating system. The act of taking control of the operating system from one task and giving it to another task is called preempting.
  5. The interrupt handler program is generally part of the operating system.Typically, this program determines the nature of the interrupt and performs whatever actions are need It is clear that there is some overhead involved in this process. Extra instructions must be executed (in the interrupt handler) to determine the nature of the interrupt and to decide on the appropriate action. Nevertheless, because of the relatively large amount of time that would be wasted by simply waiting on an I/O operation, the processor can be employed much more efficiently with the use of interrupts.