Pipeline Hazards 4-4-2003.

Slides:



Advertisements
Similar presentations
Instruction Level Parallelism and Superscalar Processors
Advertisements

Pipeline Exceptions & ControlCSCE430/830 Pipelining in MIPS MIPS architecture was designed to be pipelined –Simple instruction format (makes IF, ID easy)
Pipeline Computer Organization II 1 Hazards Situations that prevent starting the next instruction in the next cycle Structural hazards – A required resource.
Lecture Objectives: 1)Define pipelining 2)Calculate the speedup achieved by pipelining for a given number of instructions. 3)Define how pipelining improves.
CMPT 334 Computer Organization
10/11: Lecture Topics Slides on starting a program from last time Where we are, where we’re going RISC vs. CISC reprise Execution cycle Pipelining Hazards.
Pipelined Processor II (cont’d) CPSC 321
EECE476: Computer Architecture Lecture 23: Speculative Execution, Dynamic Superscalar (text 6.8 plus more) The University of British ColumbiaEECE 476©
Chapter 6. (1)Long cycle time (2)Idle transistors.
NDG-L39Introduction to ASIC Design1 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  Pipelined.
Computer Architecture - Test A, answers Answer 1 addi$1,$zero,1addi$2,$zero,2 addi$3,$zero,3beq$8,$1,c1 beq$8,$2,c2 bne$8,$3,End addi$6,$6,1j End c1:addi.
Pipelining II Andreas Klappenecker CPSC321 Computer Architecture.
Pipelining III Andreas Klappenecker CPSC321 Computer Architecture.
CIS429.S00: Lec10- 1 Control Hazards Created by branch statements BEQZLOC ADDR1,R2,R3. LOCSUBR1,R2,R3 PC needs to be computed but it happens too late in.
1  2004 Morgan Kaufmann Publishers Chapter Six. 2  2004 Morgan Kaufmann Publishers Pipelining The laundry analogy.
Pipelining Andreas Klappenecker CPSC321 Computer Architecture.
CSCE 212 Quiz 9 – 3/30/11 1.What is the clock cycle time based on for single-cycle and for pipelining? 2.What two actions can be done to resolve data hazards?
Part 5 – Superscalar & Dynamic Pipelining - An Extra Kicker! 5/5/04+ Three major directions that simple pipelines of chapter 6 have been extended If you.
Pipelined Processor II CPSC 321 Andreas Klappenecker.
Computer ArchitectureFall 2007 © October 31, CS-447– Computer Architecture M,W 10-11:20am Lecture 17 Review.
Pipelined Datapath and Control (Lecture #15) ECE 445 – Computer Organization The slides included herein were taken from the materials accompanying Computer.
Pipelining What is it? How does it work? What are the benefits? What could go wrong? By Derek Closson.
RISC:Reduced Instruction Set Computing. Overview What is RISC architecture? How did RISC evolve? How does RISC use instruction pipelining? How does RISC.
W.S Computer System Design Lecture 7 Wannarat Suntiamorntut.
Please see “portrait orientation” PowerPoint file for Chapter 8 Figure 8.1. Basic idea of instruction pipelining.
Memory/Storage Architecture Lab Computer Architecture Pipelining Basics.
Pipelining Enhancing Performance. Datapath as Designed in Ch. 5 Consider execution of: lw $t1,100($t0) lw $t2,200($t0) lw $t3,300($t0) Datapath segments.
Pipeline Hazards. CS5513 Fall Pipeline Hazards Situations that prevent the next instructions in the instruction stream from executing during its.
1 Designing a Pipelined Processor In this Chapter, we will study 1. Pipelined datapath 2. Pipelined control 3. Data Hazards 4. Forwarding 5. Branch Hazards.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Chap 6.1 Computer Architecture Chapter 6 Enhancing Performance with Pipelining.
1  1998 Morgan Kaufmann Publishers Chapter Six. 2  1998 Morgan Kaufmann Publishers Pipelining Improve perfomance by increasing instruction throughput.
MS108 Computer System I Lecture 5 Pipeline Prof. Xiaoyao Liang 2015/3/27 1.
CSE431 L06 Basic MIPS Pipelining.1Irwin, PSU, 2005 MIPS Pipeline Datapath Modifications  What do we need to add/modify in our MIPS datapath? l State registers.
Introduction to Computer Organization Pipelining.
CMPE 421 REVIEW: MIDTERM 1. A MODIFIED FIVE-Stage Pipeline PC A Y R MD1 addr inst Inst Memory Imm Ext add rd1 GPRs rs1 rs2 ws wd rd2 we wdata addr wdata.
PROCESSOR PIPELINING YASSER MOHAMMAD. SINGLE DATAPATH DESIGN.
EECS 370 Discussion 1 Calvin and Hobbes by Bill Watterson.
EECS 370 Discussion smbc-comics.com.
Chapter Six.
CSCI206 - Computer Organization & Programming
Single Clock Datapath With Control
Pipeline Implementation (4.6)
Processor Pipelining Yasser Mohammad.
Team A.W.E.S.O.M.-O 4000 February 27, 2007.
CS 5513 Computer Architecture Pipelining Examples
Pipelining review.
Team A.W.E.S.O.M.-O 4000 February 20, 2007.
Computer Architecture
Lecture 5: Pipelining Basics
Pipelining in more detail
CSCI206 - Computer Organization & Programming
قواعد الاختبارات التحصيلية
CSCI206 - Computer Organization & Programming
Chapter Six.
Chapter Six.
Pipelining Chapter 6.
Test. essai.
MIPS Microarchitecture Pipelined Processor
Pipelining: Basic Concepts
CS 286 Computer Architecture & Organization
Pipelining Chapter 6.
Data Hazard Example (no stalls).
Pipelining Chapter 6.
Seoul National University
CS 3853 Computer Architecture Pipelining Examples
Problem ??: (?? marks) Consider executing the following code on the MIPS pipelined datapath: add $t5, $t6, $t8 add $t9, $t5, $t4 lw $t3, 100($t9) sub $t2,
Computer Architecture
The state in a stored-program digital computer
Need to stall for one cycle.
Presentation transcript:

Pipeline Hazards 4-4-2003

Opening Discussion What did we talk about last class? Have you seen anything interesting in the news? Do pipeline hazards produce a fundamental change in control? If so, what is it?

Example Data Hazard with Forwarding

Fixing the Data Hazard with Forwarding

Simple Pipeline with Forwarding No longer a “hazard”.

Example Data Hazard that Stalls

Fixing the Execution Need to stall one cycle to fix this.

New Datapath

Example Branch Hazard

Branch Hazard Datapath

Minute Essay Consider the computer in front of you. It has a 20 stage pipeline. What is this going to do to the datapath? What are the implications for performance? Next class we will finish up chapter 6.