29 #define IS_VERBOSE_MODE() (Utils::VERBOSE_MODE)
38 bool generate_logfile(
void);
40 enum ManagerToModuleCommands{MANAGER_COMMAND_SCHEDULING, MANAGER_UPDATE_PARAMETER_COMMAND_SCHEDULING};
41 enum ModuleToManagerCommands{MANAGER_UPLINK_TASK_PREEMPTION, MANAGER_UPLINK_TASK_END_COMPUTATION, MANAGER_UPLINK_TASK_CHECK_SOCKET, MANAGER_UPLINK_ALGO_STATE_UPDATE};
42 enum TestbenchToManagerCommands{TB_TO_MANAGER_CHECK_SOCKET, TB_TO_MANAGER_ALGORITHM_COMMAND};
45 const int RECOSIM_SIMULATION_SUCCESS = 0;
46 const int RECOSIM_SIMULATION_FAILED_ERRCODE = 1;
47 const int RECOSIM_NOT_ALL_TASKS_HOSTED_ERRCODE = 2;
48 const int RECOSIM_INTERNAL_ERROR_ERRCODE = 3;
49 const int RECOSIM_TESTBENCH_CHECK_FAILED = 4;
54 static bool VERBOSE_MODE;
56 static int atoi(std::string);
57 static double atod(std::string);
58 static std::string itoa(
int);
59 static std::string ftoa(
float val);
60 static void check_transaction(tlm::tlm_generic_payload& trans);
61 static sc_dt::sc_bigint<TRACE_LV_SIZE> string_to_ascii(std::string str);
62 static sc_core::sc_time maxTime(sc_core::sc_time a, sc_core::sc_time b);