Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Homework - Pipelines

Consider a pipelined execution unit with five stages as described in the class notes. Using ARM instructions
and without reproducing an example from the class notes show a sequence of instructions that:
a) Exhibit a structural hazard (5 points).
Cycles
1
2
3
4
5
6
7
8
9
10
11

IF

ID

EX

MEM

b) Exhibit a delayed branch hazard (5 points).


WB

IF

ID

EX

MEM

IF

ID

EX

MEM

WB

d) Sequence of part c with data forwarding (5


points).

c) Exhibit a data hazard (5 points).


Cycles
1
2
3
4
5
6
7
8
9
10
11

Cycles
1
2
3
4
5
6
7
8
9
10
11

WB
Cycles
1
2
3
4
5
6
7
8
9
10
11

IF

ID

EX

MEM

WB

You might also like