static void endSimulation(void *nu) { bhmEventHandle finished = bhmGetSystemEvent(BHM_SE_END_OF_SIMULATION); bhmWaitEvent(finished); bhmMessage("I", PREFIX, "Statistics:"); bhmPrintf("Screen updates : %d\n", updates); bhmPrintf("ISA reads : %d\n", ISAreads); bhmPrintf("ISA writes : %d\n", ISAwrites); }
void terminationMonitoringThread(void *user) { bhmWaitEvent(bhmGetSystemEvent(BHM_SE_END_OF_SIMULATION)); info("simulation terminating"); // print the avg current log data printAvgCurrent(); }