RTL Design Patterns/Branch Prediction
Branch Prediction
Saturating counters, global history, and a gshare predictor.
- 1medium
CS450 Timer
Load a 10-bit duration and count down to a sticky terminal-count state.
- 2medium
CS450 Two-Bit Saturating Counter
Implement a two-bit saturating predictor counter with asynchronous reset.
- 3hard
CS450 Branch History Register
Track 32 recent predictions and restore the correct branch history after a misprediction.
- 4hard
CS450 Gshare Branch Predictor
Combine a 7-bit history register with a 128-entry table of two-bit saturating counters.