/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h"

namespace morpheo                    {
namespace behavioural {
namespace core {
namespace multi_ooo_engine {
namespace ooo_engine {
namespace rename_unit {
namespace register_translation_unit {
namespace free_list_unit {


#undef  FUNCTION
#define FUNCTION "Free_List_unit::deallocation"
  void Free_List_unit::deallocation (void)
  {
    log_printf(FUNC,Free_List_unit,FUNCTION,"Begin");

    if (_usage & USE_SYSTEMC)
      {
	delete    in_CLOCK ;
	delete    in_NRESET;

	delete []  in_POP_VAL        ;
	delete [] out_POP_ACK        ;
	delete []  in_POP_GPR_VAL    ;
	delete [] out_POP_GPR_NUM_REG;
	delete []  in_POP_SPR_VAL    ;
	delete [] out_POP_SPR_NUM_REG;

	delete []  in_PUSH_GPR_VAL    ;
	delete [] out_PUSH_GPR_ACK    ;
	delete []  in_PUSH_GPR_NUM_REG;

	delete []  in_PUSH_SPR_VAL    ;
	delete [] out_PUSH_SPR_ACK    ;
	delete []  in_PUSH_SPR_NUM_REG;
      }
    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
     delete [] _gpr_list;
     delete [] _spr_list;

     delete [] internal_POP_ACK     ;
     delete [] internal_POP_GPR_BANK;
     delete [] internal_POP_SPR_BANK;

     delete [] internal_PUSH_GPR_ACK ;
     delete [] internal_PUSH_SPR_ACK ;
     delete [] internal_PUSH_GPR_BANK;
     delete [] internal_PUSH_SPR_BANK;

     delete _component;

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

}; // end namespace free_list_unit
}; // end namespace register_translation_unit
}; // end namespace rename_unit
}; // end namespace ooo_engine
}; // end namespace multi_ooo_engine
}; // end namespace core

}; // end namespace behavioural
}; // end namespace morpheo              
