/*
 * $Id: Victim_Pseudo_LRU_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"
#include "Behavioural/include/Allocation.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;

    DELETE1_SIGNAL( in_ACCESS_VAL    ,_param->_nb_access,1);
    DELETE1_SIGNAL(out_ACCESS_ACK    ,_param->_nb_access,1);
    DELETE1_SIGNAL( in_ACCESS_HIT    ,_param->_nb_access,1);
    DELETE1_SIGNAL( in_ACCESS_ADDRESS,_param->_nb_access,log2(_param->_size_address));
    DELETE1_SIGNAL( in_ACCESS_ENTITY ,_param->_nb_access,log2(_param->_nb_entity   ));
    DELETE1_SIGNAL(out_ACCESS_VICTIM ,_param->_nb_access,log2(_param->_nb_entity   ));

    DELETE1(reg_TABLE             ,_param->_size_table);
    DELETE1(internal_ACCESS_ACK   ,_param->_nb_access);
    DELETE1(internal_ACCESS_VICTIM,_param->_nb_access);
      }

    delete _component;
  };

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