# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
#ifdef SYSTEMC
/*
 * $Id: Morpheo_transition.cpp 110 2009-02-19 16:31:47Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "TopLevel/include/Morpheo.h"
#include "Behavioural/include/Simulation.h"

namespace morpheo {

  using namespace behavioural;

#undef  FUNCTION
#define FUNCTION "Morpheo::transition"
  void Morpheo::transition (void)
  {
    log_begin(Morpheo,FUNCTION);
    
    // Re init the alarm
    alarm(debug_idle_time);

#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    end_cycle ();
#endif

    // Test stop condition
    if (simulation_test_end())
      sc_stop();

    log_end(Morpheo,FUNCTION);
  };

}; // end namespace morpheo
# endif
#endif
