Various branch predictors are implemented to demonstrate their output readings. This simulator provides the misprediction done by different branch predictor on different trace files
It contains predictors:
- One Level Branch Predictor:- 1Level.py
- Two Level Global Branch Predictor:- global.py
- Two Level Gshare Branch Predictor :- gshare.py
- Two Level Local Branch Predictor:- local.py
- Two Level Hybrid Branch Predictor:- hybrid.py
- N-bit Gshare Branch Predictor:- nbitgshare.py
- N-bit Local Branch Predictor:- nbitlocal.py
N-bit means the program takes input from users to determine number of levels
To run the n bit python file: Type " python filename numberOfLevels For eg: python nbitgshare.py 4