Implementing Branch History Table, BTAC
Implementing a ‘true’ cache for the BTAC (Branch Target Address Cache) and BHT (Branch History Bits) is too complicated for this assignment
- Simply use an array based on the Program Counter value to store branch targets. This will emulate a ‘perfect’ cache which is OK for the purposes of this assignment.
- Allocate the same number of entries as currently used for the instruction memory within the Fetch module.