Hi Gautam,

When configuring more complex systems, the python run-script tends to spread 
over several to many .py files. In case of Ruby, each protocol PROT has a main 
configuration file: configs/ruby/PROT.py. (It can then use other files like CHI 
that has CHI.py as its configuration entry point and CHI_config.py imported by 
CHI.py). 

The main entry point to these scripts is configs/ruby/Ruby.py, specifically the 
create_system function. The bloc starting with `protocol = buildEnv['PROTOCOL'] 
`is where the magic happens to import the correct PROT.py file.

Then, from your top configuration file:

> `from ruby import Ruby`
>
> `Ruby.create_system(…)`

Et voilà! You have plenty of examples in configs/example/ruby_XXX_test.py

Best,

Gabriel
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to