Fetch Module (cont).
The fetch module has two BOOLEAN generics:
- STATIC_PREDICTION and PREDICTION, defaults are FALSE.
- If STATIC_PREDICTION = FALSE, then do dynamic branch prediction
- If STATIC_PREDICTION = TRUE
- If PREDICTION = TRUE, predict always taken
- If PREDICTION = FALSE, predict always not taken
- Maintain count of total conditional branchs, and number of mispredicted branches
- Two VHDL configurations (taken_cfg, nottaken_cfg) are supplied which set these flags to the appropriate values for static prediction.