#ifdef SYSTEMC
/*
 * $Id: Rename_select_transition.cpp 88 2008-12-10 18:31:39Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Rename_select.h"

namespace morpheo                    {
namespace behavioural {
namespace core {
namespace multi_ooo_engine {
namespace ooo_engine {
namespace rename_unit {
namespace rename_select {


#undef  FUNCTION
#define FUNCTION "Rename_select::transition"
  void Rename_select::transition (void)
  {
    log_printf(FUNC,Rename_select,FUNCTION,"Begin");

    if (PORT_READ(in_NRESET) == 0)
      {
	_priority->reset();
      }
    else
      {
	_priority->transition();

// #if (DEBUG >= DEBUG_TRACE)
// 	log_printf(TRACE,Rename_select,FUNCTION,"Select priority (front_end, inst_decod)");
// 	for (std::list<select_t>::iterator it=select.begin();
// 	     it != select.end();
// 	     it++)
// 	  log_printf(TRACE,Rename_select,FUNCTION,"  %d %d",it->_front_end, it->_inst_decod);
// #endif
      }
    
#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    end_cycle ();
#endif

    log_printf(FUNC,Rename_select,FUNCTION,"End");
  };

}; // end namespace rename_select
}; // end namespace rename_unit
}; // end namespace ooo_engine
}; // end namespace multi_ooo_engine
}; // end namespace core

}; // end namespace behavioural
}; // end namespace morpheo              
#endif
