On Sat, Dec 15, 2012 at 5:15 PM, queeten <[email protected]> wrote:
> Hi, > > I was trying to make the branch predictor > configurable in marss. In branchpred.cpp, > I noticed the following template: > > struct BranchPredictorImplementation: > public CombinedPredictor<65536, 65536, 1, 65536, 16, 1, 1024, 4, 1024> > > I was wondering if this was the default > (fixed) configuration? Is there any caveat > of making those numbers user-configurable? > Thanks! > > Currently there is no way to make them configurable. If you are interested in making it configurable, I can give you some pointers. 1) There is 'config_helper.py' which is used by 'SCons' to read the config files from 'config' folder. You can add a new module type called 'branch_predictor' and add code in this script to read that config. 2) Once the config file is parsed, it is stored in python dictionary and saved into 'build/config' file. 3) Now when a 'module' is compiled, it can read the generated file, and create a header file with static parameters. There is a script in 'ptlsim/tools/config_gen.py' that contains various functions to create header files for core and caches. You can add some more functions there to write constant parameters for branch predictor. Hope this helps!! - Avadh > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
