Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Architecture

Similar presentations


Presentation on theme: "Computer Architecture"— Presentation transcript:

1 Computer Architecture
Datapath and Control for Data and Control Hazards

2 Data Hazard Example

3 Forwarding Logic

4 Forwarding Example sub $2, $1, $3 and $4, $2, $5 or $4, $4, $2
add $9, $4, $2

5 Forwarding Example

6 Forwarding Example 2 4

7 Forwarding Example

8 Forwarding Example

9 Data Hazard Requiring a Stall

10 Data Hazard Requiring a Stall

11 Stall Logic

12 Stall Example

13 Stall Example

14 Stall Example

15 Stall Example

16 Stall Example

17 Stall Example

18 Control (Branch) Hazard Example

19 Control Hazard Logic

20 Control (Branch) Hazard Example
36 sub $10, $4, $8 40 beq $1, $3, 7 44 and $12, $2, $5 48 or $13, $2, $6 52 add $14, $4, $2 56 slt $15, $6, $7 . . . 72 lw $4, 50($7)

21 Control (Branch) Hazard Example

22 Control (Branch) Hazard Example


Download ppt "Computer Architecture"

Similar presentations


Ads by Google