Datorteknik DataHazard bild 1 Data Hazards 0x30 sub $6 $0 $1 0x34 add $7 $6 $1......

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Advanced Piloting Cruise Plot.
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
2010 fotografiert von Jürgen Roßberg © Fr 1 Sa 2 So 3 Mo 4 Di 5 Mi 6 Do 7 Fr 8 Sa 9 So 10 Mo 11 Di 12 Mi 13 Do 14 Fr 15 Sa 16 So 17 Mo 18 Di 19.
ZMQS ZMQS
Solve Multi-step Equations
Richmond House, Liverpool (1) 26 th January 2004.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
ABC Technology Project
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
2 |SharePoint Saturday New York City
Green Eggs and Ham.
VOORBLAD.
15. Oktober Oktober Oktober 2012.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
H to shape fully developed personality to shape fully developed personality for successful application in life for successful.
Datorteknik TopologicalSort bild 1 To verify the structure Easy to hook together combinationals and flip-flops Harder to make it do what you want.
Januar MDMDFSSMDMDFSSS
Week 1.
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
PSSA Preparation.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
Datorteknik TopologicalSort bild 1 To verify the structure Easy to hook together combinationals and flip-flops Harder to make it do what you want.
Immunobiology: The Immune System in Health & Disease Sixth Edition
CpSc 3220 Designing a Database
Datorteknik DelayedBranch bild 1 Delayed Branch All problems solved? NO, what will happen if b loop add $4 $6 $1... loop sub.
Datorteknik DelayedLoad bild 1 Delayed Load. Datorteknik DelayedLoad bild 2 All problems solved? NO, what will happen if lw $6 $0($1) add $4 $6.
Datorteknik Pipelining bild 1 Acceleration How to improve speed? At what costs?
Delayed Load What will happen if lw $6 $0($1) add $4 $6 $1
Presentation transcript:

Datorteknik DataHazard bild 1 Data Hazards 0x30 sub $6 $0 $1 0x34 add $7 $6 $

Datorteknik DataHazard bild 2 IM Reg DMReg Step 3, we calculate $0 - $1 IM Reg DMReg 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 ! ! ! HAZARD ! ! ! OLD VALUE OF $6

Datorteknik DataHazard bild 3 IM Reg DMReg Step 4, we calculate $1 + $6 IM Reg DMReg 0x30 sub $6 $0 $1 0x34 add $7 $6 $1

Datorteknik DataHazard bild 4 IM Reg DMReg Step 5, Now we write $6 IM Reg DMReg 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 HAZARD OVER NEW VALUE OF $6 WRITTEN TO REGFILE

Datorteknik DataHazard bild 5 IM Reg DMReg Step 2, nop IM Reg DMReg 0x30 sub $6 $0 $1 0x34 nop IM Reg DMReg IM Reg DMReg

Datorteknik DataHazard bild 6 IM Reg DMReg Step 3, nop IM Reg DMReg IM Reg DMReg IM Reg DMReg 0x30 sub $6 $0 $1 0x34 nop 0x38 nop

Datorteknik DataHazard bild 7 IM Reg DMReg Step 4, add $7 $6 $1 IM Reg DMReg IM Reg DMReg IM Reg DMReg 0x3C add $7 $6 $1 0x30 sub $6 $0 $1 0x34 nop 0x38 nop

Datorteknik DataHazard bild 8 IM Reg DMReg Step 5, new $6 used IM Reg DMReg IM Reg DMReg IM Reg DMReg 0x3C add $7 $6 $1 0x30 sub $6 $0 $1 0x34 nop 0x38 nop

Datorteknik DataHazard bild 9 Data Hazards Read After Write Solved by inserting “nop” operations (bubbles) or by hardware “stalling” the pipe

Datorteknik DataHazard bild 10 Cost? + Hardware inexpensive - Performance (throughput)

Datorteknik DataHazard bild 11 Data Hazards sub $6 $0 $1 add $7 $6 $1 add $7 $7 $6...

Datorteknik DataHazard bild 12 IM Reg DMReg We calculate $0 - $1 IM Reg DMReg 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 ! ! ! HAZARD ! ! ! OLD VALUE OF $6

Datorteknik DataHazard bild 13 IM Reg DMReg We “forward” the new result IM Reg DMReg 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 HAZARD SOLVED BY “FORWARDING”

Datorteknik DataHazard bild 14 Branch logic Sgn/Ze extend Zero ext. ALU A B HERE IS THE RESULT 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 > 0x38 add $7 $7 $1.....

Datorteknik DataHazard bild 15 Branch logic Sgn/Ze extend Zero ext. ALU A B WE NEED IT HERE 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 > 0x38 add $7 $7 $1.....

Datorteknik DataHazard bild 16 A B 0 DATA WORD 0x30 sub $6 $0 $1 > 0x34 add $7 $6 $ sub $6 $0 $1 add $7 $6 $1

Datorteknik DataHazard bild 17 = A B 0 REG NR sub $6 $0 $1 add $7 $6 $1 0x30 sub $6 $0 $1 > 0x34 add $7 $6 $1.....

Datorteknik DataHazard bild 18 Branch logic Sgn/Ze extend Zero ext. ALU A B x30 sub $6 $0 $1 0x34 add $7 $6 $1 0x38 add $7 $7 $6 > 0x3C sw $5 4($0)

Datorteknik DataHazard bild 19 ALU A B 0 = = 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 > 0x38 add $7 $7 $ sub $6 $0 $1 add $7 $6 $1add $7 $7 $6

Datorteknik DataHazard bild 20 ALU A B 0 = = = = 0x30 sub $6 $0 $1 0x34 add $7 $6 $1 > 0x38 add $7 $7 $ sub $6 $0 $1 add $7 $6 $1add $7 $7 $6

Datorteknik DataHazard bild 21 Data Hazards sub $6 $0 $1 add $6 $6 $1 add $7 $6 $1...

Datorteknik DataHazard bild 22 ALU A B 0 = = = = 0x30 sub $6 $0 $1 0x34 add $6 $6 $1 > 0x38 add $7 $6 $ sub $6 $0 $1 add $6 $6 $1add $7 $6 $1

Datorteknik DataHazard bild 23 Performance No “Bubbles” or “Stalls” –increased throughput But did we change the critical path? –Topological sort –Static timing analysis

Datorteknik DataHazard bild 24 Branch logic Sgn/Ze extend Zero ext. ALU A B = = = =

Datorteknik DataHazard bild 25 = = Forwarding Logic & W Reg # & >=1 W DRD/DWT DATA

Datorteknik DataHazard bild 26 Branch logic Sgn/Ze extend Zero ext. ALU A B = = = = Critical path ALU?

Datorteknik DataHazard bild 27 Branch logic Sgn/Ze extend Zero ext. ALU A B = = = = Critical path DATA MEMORY?

Datorteknik DataHazard bild 28 All problems solved? NO, what will happen if lw $6 $0($1) add $4 $6 $1 add $7 $6 $2

Datorteknik DataHazard bild 29 IM Reg DMReg OK, “DM” to “DE” IM Reg DMReg IM Reg DMReg 0x30 lw $6 $0($1) 0x34 add $4 $6 $1 0x38 add $7 $6 $2

Datorteknik DataHazard bild 30 IM Reg DMReg “DM” to “EX” ? IM Reg DMReg IM Reg DMReg 0x30 lw $6 $0($1) 0x34 add $4 $6 $1 0x38 add $7 $6 $2