Jump to content

PityOnU

Members
  • Content Count

    3
  • Joined

  • Last visited


Reputation Activity

  1. Like
    PityOnU reacted to ralph.goergen in Restarting Simulation for Batch Runs   
    Hi,
    for me, it is not clear what you want to do.
    Do you want to measure simulation performance (execution time of the simulation)?
    This could be done 'outside' of the actual simulaiton, e.g. in a shell script like
    STARTTIME=$(date +%s)
    run simulation
    ENDTIME=$(date +%s)
    echo $ENDTIME '-' $STARTTIME | bc -l
    Repeat this in a loop as often as you want.
    Or do you want to measure some internals in your model?
    This can be done in the testbench modules, e.g.

    some process in tb/stimulus module { for (int i = 0; i < MAX; ++i) { // run simulation stimulus std::cout << i << and whatever you need << std::endl; } }
  2. Like
    PityOnU reacted to ralph.goergen in Restarting Simulation for Batch Runs   
    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:
    loop X
    run simulation
    rename result files
    end loop
    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:
    loop
    modify configuration file
    loop X
    run simulation
    rename result files
    end loop
    end loop
×