ReOrder Buffer Flashcards

1
Q

What are the problems with Tomasulo’s algorithm?

A

Main problem: we are saving state out-of-order, so when we have a problem, it is hard to recover.

  1. Exception handling
  2. Branch mispredictions
  3. Phantom exception - exception thrown from wrong branch path
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we fix the problems in Tomasulo’s algorithm?

A

We need to save values to registers according to program order. Use a reorder buffer (ROB)

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

What is a reorder buffer?

A

Buffer that remembers program order and keeps results of instructions until it is safe to write

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

How is a ROB structured?

A

Table with three values: Register, Value, Done (the value has been written to the buffer, not regs). Has two pointers (issue, commit)

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

What is a unified reservation station? What is its drawback?

A

A reservation station that feeds into different ALUs. This makes the dispatch logic more complicated.

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