Instruction Set Design Influence on Pipelining

Instruction Set Design Influence on Pipelining

Chapter 06: Instruction Pipelining and Parallel Processing Lesson 08: Instruction Set Design Influence on Pipelining Schaum’s Outline of Theory and Problems of Computer Architecture 1 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Objective • Learn how an instruction set design influence the pipeline Schaum’s Outline of Theory and Problems of Computer Architecture 2 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Simple addressing mode Influence Schaum’s Outline of Theory and Problems of Computer Architecture 3 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Simple addressing modes • Register addressing─ No address calculation needed • Register indirect addressing mode (ri)─ No address calculation by processor needed • Index addressing mode x(ri)─ Just one cycle needed for address computation Schaum’s Outline of Theory and Problems of Computer Architecture 4 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Advantages during pipelining of instructions with simple addressing modes • No effect on other instructions to cause instruction hazards • Just one cycle memory access needed for address Schaum’s Outline of Theory and Problems of Computer Architecture 5 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Load and Store Architecture Influence Schaum’s Outline of Theory and Problems of Computer Architecture 6 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Advantage • Memory access needs only by the load and store instructions Schaum’s Outline of Theory and Problems of Computer Architecture 7 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Complex addressing mode Influence Schaum’s Outline of Theory and Problems of Computer Architecture 8 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Complex Addressing Modes • Index with increment or decrement addressing modes x[ri] or (ri) + • Need of address calculation • Need to write back the calculated address for modifying the ri • Memory indirect with offset Schaum’s Outline of Theory and Problems of Computer Architecture 9 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Disadvantages during pipelining • Consider instruction In as LD rj, [(x(ri))] • Needs seven pipeline stages (1) Fetch (2) Decode (3) Read operands x and ri, (4) Calculate read memory address Schaum’s Outline of Theory and Problems of Computer Architecture 10 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Disadvantages during pipelining (5) Access memory address operands from x + ri (6) Make another memory access fetch the source operand (7) Write back the source operand to destination rj • During cycles (4), (5) and (6), the next instruction In+1 stalls Schaum’s Outline of Theory and Problems of Computer Architecture 11 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Disadvantages during pipelining • By result forwarding, the next instruction can get the operand result one cycle earlier • However, there will be still a stall for one clock cycle • Data dependencies hazard can delay an instruction Schaum’s Outline of Theory and Problems of Computer Architecture 12 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Pipeline stall at cycles 5 and 6 for load even with result forwarding at write back stage Schaum’s Outline of Theory and Problems of Computer Architecture 13 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 Summary Schaum’s Outline of Theory and Problems of Computer Architecture 14 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 We learnt • Influence of Simple addressing modes • Influence of Load and Store Architecture • Influence of write back in complex addressing Modes Schaum’s Outline of Theory and Problems of Computer Architecture 15 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 End of Lesson 08 on Instruction Set Design Influence on Pipelining Schaum’s Outline of Theory and Problems of Computer Architecture 16 Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009 .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    16 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us