Dear Zacharias,

I recommend you to generate the phases in Simics by using an automatic script 
so you don't have to do it manually. Place this piece of code into a file and 
then run it inside Simics by using the command "run-command-file 
full_path_to_script_file".

@iter=1

@def ccc_hap_callback(user_arg, cpu, arg):
  global iter
  file="/full_path_to_phases_folder/phase_00"+`iter`+"/simics/phase_00"+`iter`
  SIM_write_configuration_to_file(file)
  iter=iter+1
  SIM_hap_add_callback_obj_index("Core_Cycle_Count", conf.cpu0, 0, 
ccc_hap_callback, None, SIM_cycle_count(conf.cpu0)+2000000000)

@SIM_hap_add_callback_obj_index("Core_Cycle_Count", conf.cpu0, 0, 
ccc_hap_callback, None, SIM_cycle_count(conf.cpu0)+2000000000)

This script as is will start writing checkpoints under the names phase-0, 
phase-1, phase-2, etc. It will write a checkpoint each 2 billion cycles (1 
second of execution time).

Regards,

Javier
________________________________________
From: [email protected] [[email protected]]
Sent: 19 July 2012 16:23
To: <[email protected]>
Subject: Phase generation with run_job script

Hi,

Can you please give me the run_job command for generating phases (not
flexpoints)? I know that I can do it manually by running a number of
cycles and then saving a simics checkpoint. But I think there is a way
to do it with the scripts provided with flexus and I cannot find it.

thanks - Zacharias

Reply via email to