I'm attempting to do some performance analysis of a network-on-a-chip I've created in SystemC. To do this, I want to automate multiple simulation runs so that I can find max/min/mean/variance of the values I am interested in.
My original idea was to simply wrap my main.cpp (the code that constructs the network out of modules and signals and begins the simulation) in a "for" loop and run through it x number of times. However, I am currently encountering error E113 after running through the "for"
In the accellera simulator, it is not possible to reset the simulation kernel or restart a simulation from the beginning.
Running the same configuration x times can be done by a shell script:
rename result files
If you want to run several configurations automatically, it might help to read the configuration from an external (text/xml/...) file at the beginning of the simulation. Then, you can do it again in a shell skript: