SlideShare ist ein Scribd-Unternehmen logo
1 von 16
COMPUTER
ORGANIZATION
MODULE-1
BASIC STRUCTURE OF
COMPUTERS
Basic Operational Concepts:
•A typical instruction may be like
Add LOCA, R0
This instruction adds the operand at the memory
location LOCA to the operand in a register R0 and
places the result in the register.
Similarly:
Load LOCA, R1
Add R1,R0
• Figure below shows the connection between the
memory and the processor
Figure 1.2. Connections between the processor and the memory.
Processor
Memory
PC
IR
MDR
Control
ALU
Rn 1-
R1
R0
MAR
n general purpose
registers
• The processor contains a number of registers used for
different purposes.
• The Instruction Register (IR) holds the instruction that is
currently being executed.
• The Program Counter(PC) is a specialized register which
keeps track of the address of the next instruction to be
fetched and executed.
• The Memory Address Register(MAR) holds the address of the
location to be accessed.
• The Memory Data Register(MDR) contains the data to be
written into or read out of the addressed location.
• The n general purpose registers which stores the contents
Interrupt:
• Normal execution of the program may be preempted if some
device requires urgent servicing
• In order to deal with the request, the normal execution is
interrupted and the device raises the interrupt signal.
• ISR (Interrupt Service Routine)
• ISR saves the internal state of the processor, PC, the general
registers and some control information.
• When ISR is completed the state of the processor is restored and
interrupted program may continue its execution.
Bus Structures
• A group of lines that serve as a connecting path
for several devices is called a bus.
• The system bus has three parts:
• Data bus
• Address bus
• Control bus
• There are two types of bus:
• Single bus structure
• Multi bus structure
Single Bus Structure
• All units are connected to a
single bus.
• Only two devices can connect
at a time.
• Single bus structure is vastly
used because of its low cost
and flexibility.
• The device connected to the
bus widely vary with their
speed of operation.
• Consider the transfer of an
encoded character from the
processor to the printer.
Figure 1.3. Single-bus structure.
MemoryInput Output Processor
• Drawback of Single Bus Structure:
• The performance of the computer system suffers when large
number of device is connected to the bus.
• Propagation Delay
• Bus- Bottleneck
Multiple Bus Structure:
• Achieve more concurrency
• Leads to better performance
• Increased cost
PERFORMANCE
• Performance is the time taken by the system to
execute a program.
• The parameters that effect the performance are
processor clock speed, type of instruction, memory
access time, type of I/O devices connected, and
data transfer capacity.
• Elapsed time: The total time required to execute the
program.
• Processor Time: The period in which the processor is
active.
• The processor cache
Processor Clock
• Processor circuits are controlled by a timing signal
called Clock.
• The clock defines a regular time interval called clock
cycles.
• The length P of one clock cycle is an important
parameter that effects the processor performance.
Clock rate R=1/P
• Where P- Length of one clock cycle.
Clock Cycle P=I*CPI
• Where I is number of instructions
• CPI –Average clock cycle per instruction
Basic Performance Equation
• Let T be the processor time required to execute a
program.
• Assume that complete execution of the program
requires the execution of N machine language
Instructions.
• Suppose that average number of basic step needed
to execute one machine instruction is S.
• If the clock rate is R cycles per sec then the program
execution time is given by
T= N* S/ R
(Basic performance Equation)
Clock Rate
• There are two possibilities of increasing the clock rate R,
• First, Improving the IC technology makes the logical
circuit faster, which reduces the time of execution of
basic steps, This allows the clock period P, to be
reduced and the clock rate to be increased.
• Second, Reducing the amount of processing done in
one basic step.
Performance Measurement
• Let us consider two programs P1 and P2 with first
one having all operands in memory and second
having all operands in CPU. Consider two computers
C1 and C2. The clock speed of C1 is greater than
that of C2. However memory access time in C1 is
faster than C2. With these conditions which
program gets executed faster??? Which computer is
faster??
• Measure of instruction execution performance are based on
average figures which are usually determined by measuring the
runtimes of representative called benchmark program.
• SPEC (System Performance Evaluation Corporation).
• SPEC rating = Running time on the reference computer
Running time on the computer under test
Let SPEC I be the rating for the program I in the suite
SPEC rating =
Where n is the number of programs in the suite.

Weitere ähnliche Inhalte

Was ist angesagt?

Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and ArchitectureSubhasis Dash
 
Central Processing Unit (Instruction Circle)
Central Processing Unit (Instruction Circle)Central Processing Unit (Instruction Circle)
Central Processing Unit (Instruction Circle)muhd afiq
 
1353142173system unit
1353142173system unit1353142173system unit
1353142173system unitNajmul Hassan
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basicsDeepak John
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartBaliThorat1
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly ProgrammingCoal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly ProgrammingMuhammad Taqi Hassan Bukhari
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed controldilip kumar
 
Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of compgaurav jain
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.encAnwal Mirza
 
CPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulationCPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulationNITISH KUMAR
 
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002SOLOMONCHINAEMEUCHEA
 
Data Manipulation
Data ManipulationData Manipulation
Data ManipulationAsfi Bhai
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnectionSher Shah Merkhel
 

Was ist angesagt? (20)

Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
Central Processing Unit (Instruction Circle)
Central Processing Unit (Instruction Circle)Central Processing Unit (Instruction Circle)
Central Processing Unit (Instruction Circle)
 
1353142173system unit
1353142173system unit1353142173system unit
1353142173system unit
 
Program execution
Program executionProgram execution
Program execution
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basics
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly ProgrammingCoal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly Programming
 
13 risc
13 risc13 risc
13 risc
 
16 control unit
16 control unit16 control unit
16 control unit
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
 
Intro to the unit
Intro to the unitIntro to the unit
Intro to the unit
 
Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of comp
 
Control unit
Control  unitControl  unit
Control unit
 
Basic non pipelined cpu architecture
Basic non pipelined cpu architectureBasic non pipelined cpu architecture
Basic non pipelined cpu architecture
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc
 
Unit 2
Unit 2Unit 2
Unit 2
 
CPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulationCPU Organization,Datatransfer and manipulation
CPU Organization,Datatransfer and manipulation
 
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS1:002
 
Data Manipulation
Data ManipulationData Manipulation
Data Manipulation
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
 

Ähnlich wie Co m1-1

chapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxchapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxjanani603976
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basicsLucky Sithole
 
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...Abhishekn84
 
introduction COA(M1).pptx
introduction COA(M1).pptxintroduction COA(M1).pptx
introduction COA(M1).pptxBhavanaMinchu
 
Unit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsUnit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsBalaji Vignesh
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma Manoharan Ragavan
 
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxMalligaarjunanN
 
Computer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptxComputer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptxManimegalaM3
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureDhaval Bagal
 
Computer Organization and Architecture.pptx
Computer Organization and Architecture.pptxComputer Organization and Architecture.pptx
Computer Organization and Architecture.pptxAshokRachapalli1
 
L-2 (Computer Performance).ppt
L-2 (Computer Performance).pptL-2 (Computer Performance).ppt
L-2 (Computer Performance).pptImranKhan997082
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)DevaKumari Vijay
 
Memory Management Strategies - I.pdf
Memory Management Strategies - I.pdfMemory Management Strategies - I.pdf
Memory Management Strategies - I.pdfHarika Pudugosula
 

Ähnlich wie Co m1-1 (20)

chapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxchapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptx
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
 
CAO.pptx
CAO.pptxCAO.pptx
CAO.pptx
 
introduction COA(M1).pptx
introduction COA(M1).pptxintroduction COA(M1).pptx
introduction COA(M1).pptx
 
Unit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsUnit 1 Computer organization and Instructions
Unit 1 Computer organization and Instructions
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
Cao u1
Cao u1Cao u1
Cao u1
 
unit-i.pdf
unit-i.pdfunit-i.pdf
unit-i.pdf
 
Co notes3 sem
Co notes3 semCo notes3 sem
Co notes3 sem
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptx
 
Computer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptxComputer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptx
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Computer Organization and Architecture.pptx
Computer Organization and Architecture.pptxComputer Organization and Architecture.pptx
Computer Organization and Architecture.pptx
 
L-2 (Computer Performance).ppt
L-2 (Computer Performance).pptL-2 (Computer Performance).ppt
L-2 (Computer Performance).ppt
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
 
Unit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptxUnit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptx
 
Memory Management Strategies - I.pdf
Memory Management Strategies - I.pdfMemory Management Strategies - I.pdf
Memory Management Strategies - I.pdf
 

Kürzlich hochgeladen

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
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
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
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
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
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 

Kürzlich hochgeladen (20)

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
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
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
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
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
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 

Co m1-1

  • 3. Basic Operational Concepts: •A typical instruction may be like Add LOCA, R0 This instruction adds the operand at the memory location LOCA to the operand in a register R0 and places the result in the register. Similarly: Load LOCA, R1 Add R1,R0
  • 4. • Figure below shows the connection between the memory and the processor Figure 1.2. Connections between the processor and the memory. Processor Memory PC IR MDR Control ALU Rn 1- R1 R0 MAR n general purpose registers
  • 5. • The processor contains a number of registers used for different purposes. • The Instruction Register (IR) holds the instruction that is currently being executed. • The Program Counter(PC) is a specialized register which keeps track of the address of the next instruction to be fetched and executed. • The Memory Address Register(MAR) holds the address of the location to be accessed. • The Memory Data Register(MDR) contains the data to be written into or read out of the addressed location. • The n general purpose registers which stores the contents
  • 6. Interrupt: • Normal execution of the program may be preempted if some device requires urgent servicing • In order to deal with the request, the normal execution is interrupted and the device raises the interrupt signal. • ISR (Interrupt Service Routine) • ISR saves the internal state of the processor, PC, the general registers and some control information. • When ISR is completed the state of the processor is restored and interrupted program may continue its execution.
  • 7. Bus Structures • A group of lines that serve as a connecting path for several devices is called a bus. • The system bus has three parts: • Data bus • Address bus • Control bus • There are two types of bus: • Single bus structure • Multi bus structure
  • 8. Single Bus Structure • All units are connected to a single bus. • Only two devices can connect at a time. • Single bus structure is vastly used because of its low cost and flexibility. • The device connected to the bus widely vary with their speed of operation. • Consider the transfer of an encoded character from the processor to the printer. Figure 1.3. Single-bus structure. MemoryInput Output Processor
  • 9. • Drawback of Single Bus Structure: • The performance of the computer system suffers when large number of device is connected to the bus. • Propagation Delay • Bus- Bottleneck Multiple Bus Structure: • Achieve more concurrency • Leads to better performance • Increased cost
  • 10. PERFORMANCE • Performance is the time taken by the system to execute a program. • The parameters that effect the performance are processor clock speed, type of instruction, memory access time, type of I/O devices connected, and data transfer capacity. • Elapsed time: The total time required to execute the program. • Processor Time: The period in which the processor is active.
  • 12. Processor Clock • Processor circuits are controlled by a timing signal called Clock. • The clock defines a regular time interval called clock cycles. • The length P of one clock cycle is an important parameter that effects the processor performance. Clock rate R=1/P • Where P- Length of one clock cycle. Clock Cycle P=I*CPI • Where I is number of instructions • CPI –Average clock cycle per instruction
  • 13. Basic Performance Equation • Let T be the processor time required to execute a program. • Assume that complete execution of the program requires the execution of N machine language Instructions. • Suppose that average number of basic step needed to execute one machine instruction is S. • If the clock rate is R cycles per sec then the program execution time is given by T= N* S/ R (Basic performance Equation)
  • 14. Clock Rate • There are two possibilities of increasing the clock rate R, • First, Improving the IC technology makes the logical circuit faster, which reduces the time of execution of basic steps, This allows the clock period P, to be reduced and the clock rate to be increased. • Second, Reducing the amount of processing done in one basic step.
  • 15. Performance Measurement • Let us consider two programs P1 and P2 with first one having all operands in memory and second having all operands in CPU. Consider two computers C1 and C2. The clock speed of C1 is greater than that of C2. However memory access time in C1 is faster than C2. With these conditions which program gets executed faster??? Which computer is faster??
  • 16. • Measure of instruction execution performance are based on average figures which are usually determined by measuring the runtimes of representative called benchmark program. • SPEC (System Performance Evaluation Corporation). • SPEC rating = Running time on the reference computer Running time on the computer under test Let SPEC I be the rating for the program I in the suite SPEC rating = Where n is the number of programs in the suite.