SlideShare a Scribd company logo
BASIC OPERATIONAL
CONCEPTS
10/11/2022
1
Processor Memory Interaction
2
src: Carl Hamacher Text Book
3
src: Carl Hamacher Text Book
Steps in Instruction Execution
ADD LOCA, R0
• Step 1: Fetch the instruction from main memory into the processor
• Step 2: Decode the Instruction
• Step 3: Fetch the operand at location LOCA from main memory into
the processor
• Step 4: Add the memory operand (i.e. fetched contents of LOCA) to
the contents of register R0
• Step 5: Store the result (sum) in R0.
4
Using two instructions
ADD LOCA, R0
Load LOCA, R1
Add R1, R0
• Step 1: Fetch the instruction from main memory into the processor
• Step 2: Decode the Instruction
• Step 3: Fetch the operand at location LOCA from main memory into the
processor Register R1
• Step 4: Add the content of Register R1 and the contents of register R0
• Step 5: Store the result (sum) in R0.
5
Example
Steps needed to execute the machine instruction Add LOCA, R0 is at memory
location INS1:
1) PC is initially loaded with the address INS1
PCINS1
2) Send contents of PC to MAR
MARPC
3) Issue read command to memory and wait until requested word (instruction) is
transferred into MDR
MDRMEM[INS]
4) Transfer instruction from MDR into IR and decode it
5) Transfer address LOCA from IR to MAR
6) Issue Read command and wait till MDR is loaded
7) Transfer contents of MDR to ALU
8) Transfer contents of R0 to ALU
9) Perform addition of two operands in ALU and transfer result into R0.
6
User Program & OS Routine Sharing of
Processor
7
src: Carl Hamacher Text Book
Performance
• Compiler
• Machine instruction set
• Hardware
• Elapsed time – Factors??
• Processor time- Factors??
8
Cache
9
src: simitech.in
Processor Clock
• Clock defines regular time intervals called clock cycles
• Each step in an instruction execution is completed in one clock cycle
• Clock Period – P
• Clock Rate R = 1/P cycles per sec (Hz)
500MHz=500 million cycles/sec
10
Basic Performance Equation
• N - No: of machine language instructions
• S - Average number of basic steps needed to execute one machine
instruction
• Clock Rate : R cycles per sec
• Program Execution Time:
T= (N*S)/R
T = Processor time required to executed a program.
N = Actual number of instruction executions.
S = Average number of basic steps needed to execute one machine instruction.
R = Clock rate in cycles per second.
How to achieve high performance??
11
Basic Performance Equation(Contd..)
• To achieve high performance, the computer designer must reduce the
value of T, which means reducing N and S, and increasing R.
• The value of N is reduced if source program is compiled into fewer machine
instructions.
• The value of S is reduced if instructions have a smaller number of basic steps
to perform.
• The value of R can be increased by using a higher frequency clock.
12
Performance Comparison
13
Performance Measurement
• Benchmark refers to standard task used to measure how well a processor operates.
• The Performance Measure is the time taken by a computer to execute a given benchmark.
• SPEC selects & publishes the standard programs along with their test results for different application domains. (SPEC : System
Performance Evaluation Corporation).
• SPEC Rating is given by:
• SPEC rating = 50 implies:
• The computer under test is 50 times as fast as reference-computer.
• The test is repeated for all the programs in the SPEC suite.
• Then, the geometric mean of the results is computed.
• Let SPECi = Rating for program ‘i’ in the suite.
• Overall SPEC rating for the computer is given by
where n = no. of programs in the suite.
14

More Related Content

PPTX
PPTX
basicfunctionalunit-190124043726555.pptx
PDF
Computer Organization and Architechuture basics
PDF
Parallel and Distributed computing: why parallellismpdf
PPTX
Computer Organisation & Architecture (chapter 1)
PPTX
CAO.pptx
PPTX
Computer Organization and Architecture_Unit 1_part a.pptx
PPTX
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
basicfunctionalunit-190124043726555.pptx
Computer Organization and Architechuture basics
Parallel and Distributed computing: why parallellismpdf
Computer Organisation & Architecture (chapter 1)
CAO.pptx
Computer Organization and Architecture_Unit 1_part a.pptx
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa

Similar to 1_Basic Structure of Computers.pptx (20)

PPTX
Computer organisation and architecture updated unit 2 COA ppt.pptx
PPTX
chapter 1 -Basic Structure of Computers.pptx
PPTX
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
PPTX
introduction COA(M1).pptx
PDF
Running a Program.pdf
PPTX
Computer arch
PPT
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
PPTX
CMPN301-Pipelining_V2.pptx
PPTX
UNIT 3 - General Purpose Processors
PPTX
Chap6 procedures & macros
PPTX
COA SEMINAfrdreewqfeeerttfwsreeeeewwR.pptx
PPTX
embedded design and systemChapter-0.pptx
PDF
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
PPTX
PDF
Understanding Android Benchmarks
PDF
bec306c Computer Architecture and Organization
PPTX
Computer Org Architecture_Lecture 08.pptx
DOC
module 1 computer architecture diploma
PPTX
ICT-Lecture_12(VonNeumannArchitecture).pptx
PPTX
Computer Architecture Lecture slide 2. course se 222
Computer organisation and architecture updated unit 2 COA ppt.pptx
chapter 1 -Basic Structure of Computers.pptx
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
introduction COA(M1).pptx
Running a Program.pdf
Computer arch
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
CMPN301-Pipelining_V2.pptx
UNIT 3 - General Purpose Processors
Chap6 procedures & macros
COA SEMINAfrdreewqfeeerttfwsreeeeewwR.pptx
embedded design and systemChapter-0.pptx
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
Understanding Android Benchmarks
bec306c Computer Architecture and Organization
Computer Org Architecture_Lecture 08.pptx
module 1 computer architecture diploma
ICT-Lecture_12(VonNeumannArchitecture).pptx
Computer Architecture Lecture slide 2. course se 222
Ad

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PPTX
Institutional Correction lecture only . . .
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
RMMM.pdf make it easy to upload and study
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
A systematic review of self-coping strategies used by university students to ...
O5-L3 Freight Transport Ops (International) V1.pdf
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
Supply Chain Operations Speaking Notes -ICLT Program
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
O7-L3 Supply Chain Operations - ICLT Program
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
Institutional Correction lecture only . . .
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Ad

1_Basic Structure of Computers.pptx

  • 2. Processor Memory Interaction 2 src: Carl Hamacher Text Book
  • 4. Steps in Instruction Execution ADD LOCA, R0 • Step 1: Fetch the instruction from main memory into the processor • Step 2: Decode the Instruction • Step 3: Fetch the operand at location LOCA from main memory into the processor • Step 4: Add the memory operand (i.e. fetched contents of LOCA) to the contents of register R0 • Step 5: Store the result (sum) in R0. 4
  • 5. Using two instructions ADD LOCA, R0 Load LOCA, R1 Add R1, R0 • Step 1: Fetch the instruction from main memory into the processor • Step 2: Decode the Instruction • Step 3: Fetch the operand at location LOCA from main memory into the processor Register R1 • Step 4: Add the content of Register R1 and the contents of register R0 • Step 5: Store the result (sum) in R0. 5
  • 6. Example Steps needed to execute the machine instruction Add LOCA, R0 is at memory location INS1: 1) PC is initially loaded with the address INS1 PCINS1 2) Send contents of PC to MAR MARPC 3) Issue read command to memory and wait until requested word (instruction) is transferred into MDR MDRMEM[INS] 4) Transfer instruction from MDR into IR and decode it 5) Transfer address LOCA from IR to MAR 6) Issue Read command and wait till MDR is loaded 7) Transfer contents of MDR to ALU 8) Transfer contents of R0 to ALU 9) Perform addition of two operands in ALU and transfer result into R0. 6
  • 7. User Program & OS Routine Sharing of Processor 7 src: Carl Hamacher Text Book
  • 8. Performance • Compiler • Machine instruction set • Hardware • Elapsed time – Factors?? • Processor time- Factors?? 8
  • 10. Processor Clock • Clock defines regular time intervals called clock cycles • Each step in an instruction execution is completed in one clock cycle • Clock Period – P • Clock Rate R = 1/P cycles per sec (Hz) 500MHz=500 million cycles/sec 10
  • 11. Basic Performance Equation • N - No: of machine language instructions • S - Average number of basic steps needed to execute one machine instruction • Clock Rate : R cycles per sec • Program Execution Time: T= (N*S)/R T = Processor time required to executed a program. N = Actual number of instruction executions. S = Average number of basic steps needed to execute one machine instruction. R = Clock rate in cycles per second. How to achieve high performance?? 11
  • 12. Basic Performance Equation(Contd..) • To achieve high performance, the computer designer must reduce the value of T, which means reducing N and S, and increasing R. • The value of N is reduced if source program is compiled into fewer machine instructions. • The value of S is reduced if instructions have a smaller number of basic steps to perform. • The value of R can be increased by using a higher frequency clock. 12
  • 14. Performance Measurement • Benchmark refers to standard task used to measure how well a processor operates. • The Performance Measure is the time taken by a computer to execute a given benchmark. • SPEC selects & publishes the standard programs along with their test results for different application domains. (SPEC : System Performance Evaluation Corporation). • SPEC Rating is given by: • SPEC rating = 50 implies: • The computer under test is 50 times as fast as reference-computer. • The test is repeated for all the programs in the SPEC suite. • Then, the geometric mean of the results is computed. • Let SPECi = Rating for program ‘i’ in the suite. • Overall SPEC rating for the computer is given by where n = no. of programs in the suite. 14