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

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

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


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

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

// 	delete []  in_RENAME_IN_VAL                ;
// 	delete [] out_RENAME_IN_ACK                ;
	if (_param->_have_port_front_end_id)
	delete []  in_RENAME_IN_FRONT_END_ID       ;
	if (_param->_have_port_context_id)
	delete []  in_RENAME_IN_CONTEXT_ID         ;
	delete []  in_RENAME_IN_READ_RA            ;
	delete []  in_RENAME_IN_NUM_REG_RA_LOG     ;
	delete []  in_RENAME_IN_NUM_REG_RA_PHY     ;
	delete []  in_RENAME_IN_READ_RB            ;
	delete []  in_RENAME_IN_NUM_REG_RB_LOG     ;
	delete []  in_RENAME_IN_NUM_REG_RB_PHY     ;
	delete []  in_RENAME_IN_READ_RC            ;
	delete []  in_RENAME_IN_NUM_REG_RC_LOG     ;
	delete []  in_RENAME_IN_NUM_REG_RC_PHY     ;
	delete []  in_RENAME_IN_WRITE_RD           ;
	delete []  in_RENAME_IN_NUM_REG_RD_LOG     ;
	delete []  in_RENAME_IN_NUM_REG_RD_PHY_OLD ;
	delete []  in_RENAME_IN_NUM_REG_RD_PHY_NEW ;
	delete []  in_RENAME_IN_WRITE_RE           ;
	delete []  in_RENAME_IN_NUM_REG_RE_LOG     ;
	delete []  in_RENAME_IN_NUM_REG_RE_PHY_OLD ;
	delete []  in_RENAME_IN_NUM_REG_RE_PHY_NEW ;

// 	delete [] out_RENAME_OUT_VAL               ;
// 	delete []  in_RENAME_OUT_ACK               ;
	if (_param->_have_port_front_end_id)
	delete [] out_RENAME_OUT_FRONT_END_ID      ;
	if (_param->_have_port_context_id)
	delete [] out_RENAME_OUT_CONTEXT_ID        ;
	delete [] out_RENAME_OUT_READ_RA           ;
	delete [] out_RENAME_OUT_NUM_REG_RA_LOG    ;
	delete [] out_RENAME_OUT_NUM_REG_RA_PHY    ;
	delete [] out_RENAME_OUT_READ_RB           ;
	delete [] out_RENAME_OUT_NUM_REG_RB_LOG    ;
	delete [] out_RENAME_OUT_NUM_REG_RB_PHY    ;
	delete [] out_RENAME_OUT_READ_RC           ;
	delete [] out_RENAME_OUT_NUM_REG_RC_LOG    ;
	delete [] out_RENAME_OUT_NUM_REG_RC_PHY    ;
	delete [] out_RENAME_OUT_WRITE_RD          ;
	delete [] out_RENAME_OUT_NUM_REG_RD_LOG    ;
	delete [] out_RENAME_OUT_NUM_REG_RD_PHY_OLD;
	delete [] out_RENAME_OUT_NUM_REG_RD_PHY_NEW;
	delete [] out_RENAME_OUT_WRITE_RE          ;
	delete [] out_RENAME_OUT_NUM_REG_RE_LOG    ;
	delete [] out_RENAME_OUT_NUM_REG_RE_PHY_OLD;
	delete [] out_RENAME_OUT_NUM_REG_RE_PHY_NEW;
      }
    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    

    delete _component;

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

}; // end namespace dependency_checking_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              
