SlideShare a Scribd company logo
1 of 28
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.pptxbhaveshagrawal35
 
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.pptxjbri1395
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptRuhul Amin
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architectureShishir Aryal
 
125252.ppt
125252.ppt125252.ppt
125252.pptdivlee1
 
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.pptMozammelHaque53
 
Chap1_Introduction.pdf
Chap1_Introduction.pdfChap1_Introduction.pdf
Chap1_Introduction.pdfYuChianWu1
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unitDeepak John
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris manovishnu 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 architectureIndrajaMeghavathula
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.pptMollyZolly
 
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKCOMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKgangesh 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.pptxdbmscse61
 
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.pptxsolomonlemma14
 
Introduction to Computer.pdf
Introduction to Computer.pdfIntroduction to Computer.pdf
Introduction to Computer.pdfPinkiNayak1
 

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

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 

Recently uploaded (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 

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.