8.2 Pipelining Flashcards

1
Q

Describe the laundy pipelining example

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 4 stages of the fetch-execute cycle

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does FDEW pipelining look like (instruction pipelining)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the problem with long-latency instructions (pipelining)

A

Slowest operation determines throughput

Often specialised approximation hardware for square roots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is CPI (cycles per instruction)

A

1 instruction ie fetch-decode-execute-writeback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a hazard (pipelining)

A

Something which causes the instruction pipeline to stall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the main 3 types of pipelining hazards

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the RAW (read after write) data dependency

A

True data dependency (v1 used in s2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the WAR (write after read) data dependency

A

Need to make sure they are executed sequentially (ie problem for concurrency)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the WAW (write-after-write) data dependency

A

Need to make sure they are executed sequentially (ie problem for concurrency). Last overwrites first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some methods to deal with data dependencies

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do conditional branch instructions affect pipelining

A

“Undo” wrongly executed instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How is spectre / meltdown related to pipelining

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly