#ifdef SYSTEMC
/*
 * $Id: Select_Priority_Fixed_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace select {
namespace select_priority_fixed {


  void Select_Priority_Fixed::deallocation (void)
  {
    log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin");

    if (_usage & USE_SYSTEMC)
      {
	delete     in_CLOCK;
	delete     in_NRESET;
	
	delete []  in_VAL;
	if (_param->_encoding_one_hot)
	  delete [] out_ACK;
	
	if (_param->_encoding_compact)
	  {
	    delete    out_ENTITY;
	    delete    out_ENTITY_ACK;
	  }
      }
    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
    
    delete _component;

    log_printf(FUNC,Select_Priority_Fixed,"deallocation","End");
  };

}; // end namespace select_priority_fixed
}; // end namespace select
}; // end namespace generic

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