How is mcpat integrated with Snipersim ?

188 views
Skip to first unread message

Rohith R

unread,
Sep 3, 2016, 11:04:56 PM9/3/16
to Sniper simulator
Hi,

I want to know how mcpat is integrated with Snipersim. I believe that mcpat requires a Processor Description file which describes in detail the architectural components. So while running Snipersim what Processor description file is used ?

Looking at the code I found that there are some configuration files in the config/ folder which have some specification. My 2nd question is, when we say use nehlam or kngscross config file, does it implicitly mean that its a combination of base.cfg + nehlam.cfg.
My intuition says that a combination is used and some parameters are overridden in the more specific .cfg file. Can anyone please confirm this ?

My 3rd question, are the config files exhaustive in describing the Processor Description files or some defaults Processor description file is used and then the config file is added on top of that ?

Regards,
Rohith R

Rohith R

unread,
Sep 4, 2016, 1:09:05 AM9/4/16
to Sniper simulator
Update :

I found that the file sniper/tools/mcpat.py is using the config file both the base  + specific .cfg files to generate the Processor description files. Also I saw that there are some values that hard-coded in the mcpat.py file that are not available in the .cfg file and are required in the .xml file for mcpat to run.

All my doubts are cleared. I have only only one question : Is there any way to generate the .cfg from the .xml files ? This is the reverse of the process that is happening right now. I ask this because I have some .xml files for ARM-A9 that I wanted to run using snipersim. Currently I have to manually find the key-value pair for the .xml to .xfg and type it down myself.

If there is anything like this, it would be really helpful.

Regards,
Rohith R

Shiva

unread,
Feb 1, 2017, 7:35:45 AM2/1/17
to Sniper simulator
Hi Rohith,

I have used SniperSim for one of my assignments during a course here at TU/e, Netherlands but it is on X86 that I have worked on and there is some information available, which you can find here: Snipersim. By the way, I saw that you were trying to implemet snipersim for ARM processor, I would like to know if you were successful in getting that worked?

Regards,
Shiva
Reply all
Reply to author
Forward
0 new messages