1 / 66

Chapter 7 โพรเซสเซอร์แบบไปป์ลายน์และซุปเปอร์สเกลาร์ Pipeline and Superscalar processor

Chapter 7 โพรเซสเซอร์แบบไปป์ลายน์และซุปเปอร์สเกลาร์ Pipeline and Superscalar processor. เนื้อหา. ทฤษฏีและหลักการของไปป์ลายน์ ปัญหาที่เกิดขึ้นกับเทคนิคไปป์ลายน์ ทฤษฏีและหลักการของซุปเปอร์สเกลาร์ ตัวอย่างโพรเซสเซอร์ที่ใช้เทคนิคไปป์ลายน์ ตัวอย่างโพรเซสเซอร์ที่ใช้เทคนิคซุปเปอร์สเกลาร์

vonda
Download Presentation

Chapter 7 โพรเซสเซอร์แบบไปป์ลายน์และซุปเปอร์สเกลาร์ Pipeline and Superscalar processor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 7โพรเซสเซอร์แบบไปป์ลายน์และซุปเปอร์สเกลาร์Pipeline and Superscalar processor

  2. เนื้อหา ทฤษฏีและหลักการของไปป์ลายน์ ปัญหาที่เกิดขึ้นกับเทคนิคไปป์ลายน์ ทฤษฏีและหลักการของซุปเปอร์สเกลาร์ ตัวอย่างโพรเซสเซอร์ที่ใช้เทคนิคไปป์ลายน์ ตัวอย่างโพรเซสเซอร์ที่ใช้เทคนิคซุปเปอร์สเกลาร์ หลักการทำงานของ Out-of-order execution Out-of-order execution กับเทคนิคไปป์ลายน์ Out-of-order execution กับเทคนิคซุปเปอร์สเกลาร์ Out-of-order execution ในไมโครโพรเซสเซอร์ตระกูลต่างๆ

  3. Pipeline กับ ร้านซักรีด • กรรมวิธีซักรีดมี 4 ขั้นตอนดังนี้ • 1. ซัก 15 นาที • 2. ปั่นแห้ง 15 นาที • 3. รีดผ้า 15 นาที • 4. ส่งผ้า 15 นาที

  4. Pipeline กับ ร้านซักรีด

  5. Pipeline กับ ร้านซักรีด

  6. ข้อดี-ข้อเสียของไปป์ลายน์ข้อดี-ข้อเสียของไปป์ลายน์ • ข้อดี • งานเสร็จเร็วขึ้น • ข้อเสีย • ต้องใช้ทรัพยากรในระบบมากขึ้น

  7. Pipeline กับโพรเซสเซอร์ • โพรเซสเซอร์ที่เราเรียนมาในบทที่ 3 ใช้เวลาในการทำงานหลาย clock ต่อ 1 คำสั่ง • เทคนิคไปป์ลายน์ ใช้เพื่อลดจำนวนคล๊อกต่อ 1 คำสั่งลงเหลือแค่ 1 clock ต่อ 1 คำสั่ง

  8. Instruction Execution • Step Action • 1 PCout, MARin, Read, Select4, Add, Zin • 2 Zout, PCin, Yin, WMFC • 3 MDRout, IRin • 4 Offset-field-of-IRout, ADD, Zin, if N=0 then End • 5 Zout, PCin, End 5 steps require 5 clock cycles to complete operation

  9. Processor Execution • Divide operations of processor into 4 steps • 1. Fetch • 2. Decode • 3. Execute • 4. WriteBack

  10. 4-stage pipeline processor

  11. Flow of Instructions through pipeline

  12. Flow of Instructions through pipeline

  13. Flow of Instructions through pipeline

  14. Flow of Instructions through pipeline

  15. Flow of Instructions through pipeline

  16. Flow of Instructions through pipeline

  17. Flow of Instructions through pipeline

  18. Flow of Instructions through pipeline

  19. Flow of Instructions through pipeline

  20. Flow of Instructions through pipeline

  21. Number of pipeline stages

  22. 4-stage pipeline

  23. 2-stage pipeline

  24. Problem of pipelining technique • Pipeline Hazard • Structural Hazard • Data hazard

  25. Structural hazard • Memory does not allow read program and data simultaneously • Solution : Using Harvard architecture

  26. Harvard architecture

  27. Data hazard

  28. Data hazard: operand forwarding

  29. Pentium4 pipeline • 20 stages

  30. Datapath of the Pipelined-8051 Microprocessor

  31. Flow of Instructions through pipeline

  32. Flow of DIV AB instruction through pipeline

  33. Superscalar

  34. Superscalar

  35. Pentium architecture

  36. Superscalar VS VLIW • Superscalar • Hardware detects potential parallelism between instructions • Hardware tries to issue as many instructions as possible in parallel. • The more execution unit, the more speed without recompilation • Hardware dispatch unit is Very complex • VLIW • Instruction level parallelism • The more execution unit, the more speed needs recompilation • Very simple hardware dispatch unit

  37. What is out-of-order execution • OOO stands for Out-Of-Order execution • OOO is the way that the processor can execute instructions in any order that does not change the result of program • OOO provides much better performance than in-order execution

  38. Execution time of in-order execution From paper titled “Cheap Out-of-Order Execution using Delayed Issue”, J.P. Grossman

  39. Execution of program in a pipelined CPU

  40. Execution of program in a pipelined CPU

  41. Execution of program in a pipelined CPU

  42. Execution of program in a pipelined CPU

  43. Execution of program in a pipelined CPU

  44. Execution of program in a pipelined CPU

  45. Execution of program in a pipelined CPU

  46. Execution of program in a pipelined CPU

  47. Execution of program in a pipelined CPU 9 clock cycles 4 instructions

  48. Assume the CPU can fetch multiple instructions a time

  49. Out-of-order executionin a pipelined CPU 7 clock cycles 4 instructions

More Related