8.2 Pipelining Flashcards
Describe the laundy pipelining example
What are the 4 stages of the fetch-execute cycle
What does FDEW pipelining look like (instruction pipelining)
What is the problem with long-latency instructions (pipelining)
Slowest operation determines throughput
Often specialised approximation hardware for square roots
What is CPI (cycles per instruction)
1 instruction ie fetch-decode-execute-writeback
What is a hazard (pipelining)
Something which causes the instruction pipeline to stall
What are the main 3 types of pipelining hazards
What is the RAW (read after write) data dependency
True data dependency (v1 used in s2)
What is the WAR (write after read) data dependency
Need to make sure they are executed sequentially (ie problem for concurrency)
What is the WAW (write-after-write) data dependency
Need to make sure they are executed sequentially (ie problem for concurrency). Last overwrites first.
What are some methods to deal with data dependencies
How do conditional branch instructions affect pipelining
“Undo” wrongly executed instructions.
How is spectre / meltdown related to pipelining