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

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

PPT
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
freefire2619rowdy
 
PPT
chapter1-basicstructureofcomputers.ppt
KarrarIbrahimAbdAlam
 
PPT
UNIT I.ppt
JEEVANANTHAMG6
 
PPT
chapter 1 -Basic Structure of Computers.ppt
sandeepPingili1
 
PPTX
Chapter 1 basic structure of computers
Gurpreet Singh
 
PPT
Computer organisation Module 1.ppt
SoulReaper21
 
PPT
Basic structure of computers
Kumar
 
PPT
Basic structure of computers
Kumar
 
PPTX
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
arshadahmedkkp
 
DOC
module 1 computer architecture diploma
Manoharan Ragavan
 
PDF
computer organization and architecturebec306c
sunilm82
 
PPTX
Co m1-1
Radhika Ajadka
 
PPTX
introduction COA(M1).pptx
BhavanaMinchu
 
PPTX
CAO.pptx
FarhanaMariyam1
 
PDF
Computer Organization and Architechuture basics
Lucky Sithole
 
PPTX
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
PPT
comp. org Chapter 1
Rajat Sharma
 
PPT
lecture 1(1).ppt
SridharChowdary10
 
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
freefire2619rowdy
 
chapter1-basicstructureofcomputers.ppt
KarrarIbrahimAbdAlam
 
UNIT I.ppt
JEEVANANTHAMG6
 
chapter 1 -Basic Structure of Computers.ppt
sandeepPingili1
 
Chapter 1 basic structure of computers
Gurpreet Singh
 
Computer organisation Module 1.ppt
SoulReaper21
 
Basic structure of computers
Kumar
 
Basic structure of computers
Kumar
 
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
arshadahmedkkp
 
module 1 computer architecture diploma
Manoharan Ragavan
 
computer organization and architecturebec306c
sunilm82
 
introduction COA(M1).pptx
BhavanaMinchu
 
CAO.pptx
FarhanaMariyam1
 
Computer Organization and Architechuture basics
Lucky Sithole
 
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
comp. org Chapter 1
Rajat Sharma
 
lecture 1(1).ppt
SridharChowdary10
 

Recently uploaded (20)

PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
Presentation: Climate Citizenship Digital Education
Karl Donert
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPTX
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
How to Manage Promotions in Odoo 18 Sales
Celine George
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
community health nursing question paper 2.pdf
Prince kumar
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
digestive system for Pharm d I year HAP
rekhapositivity
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Presentation: Climate Citizenship Digital Education
Karl Donert
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
How to Manage Promotions in Odoo 18 Sales
Celine George
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
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