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

#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace victim {
namespace victim_pseudo_lru {

  void Victim_Pseudo_LRU::deallocation (void)
  {
    if (usage_is_set(_usage,USE_SYSTEMC))
      {
    delete     in_CLOCK;
    delete     in_NRESET;
    // -----[ Interface access ]-------------------------------------------
    delete []  in_ACCESS_VAL    ;
    delete [] out_ACCESS_ACK    ;
    if (_param->_size_address>1)
    delete []  in_ACCESS_ADDRESS;
    delete []  in_ACCESS_HIT    ;
    delete []  in_ACCESS_ENTITY ;
    delete [] out_ACCESS_VICTIM ;
    
    // -----[ Register ]---------------------------------------------------
    delete [] reg_TABLE;

    // -----[ Internal ]---------------------------------------------------
    delete [] internal_ACCESS_ACK   ;
    delete [] internal_ACCESS_VICTIM;
      }

    delete _component;
  };

}; // end namespace victim_pseudo_lru
}; // end namespace victim
}; // end namespace generic
}; // end namespace behavioural
}; // end namespace morpheo              
