source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_deallocation.cpp

Last change on this file was 128, checked in by rosiere, 15 years ago

1) Correct bug in link two signal
2) Fix error detected with valgrind
3) modif distexe script

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1/*
2 * $Id: Victim_Pseudo_LRU_deallocation.cpp 128 2009-06-26 08:43:23Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"
9#include "Behavioural/include/Allocation.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace victim {
15namespace victim_pseudo_lru {
16
17  void Victim_Pseudo_LRU::deallocation (void)
18  {
19    if (usage_is_set(_usage,USE_SYSTEMC))
20      {
21    delete     in_CLOCK;
22    delete     in_NRESET;
23
24    DELETE1_SIGNAL( in_ACCESS_VAL    ,_param->_nb_access,1);
25    DELETE1_SIGNAL(out_ACCESS_ACK    ,_param->_nb_access,1);
26    DELETE1_SIGNAL( in_ACCESS_HIT    ,_param->_nb_access,1);
27    DELETE1_SIGNAL( in_ACCESS_ADDRESS,_param->_nb_access,log2(_param->_size_address));
28    DELETE1_SIGNAL( in_ACCESS_ENTITY ,_param->_nb_access,log2(_param->_nb_entity   ));
29    DELETE1_SIGNAL(out_ACCESS_VICTIM ,_param->_nb_access,log2(_param->_nb_entity   ));
30
31    for (uint32_t i=0; i<_param->_size_table; i++)
32    delete    reg_TABLE [i];
33    delete [] reg_TABLE;
34       
35    DELETE1(internal_ACCESS_ACK   ,_param->_nb_access);
36    DELETE1(internal_ACCESS_VICTIM,_param->_nb_access);
37      }
38
39    delete _component;
40  };
41
42}; // end namespace victim_pseudo_lru
43}; // end namespace victim
44}; // end namespace generic
45}; // end namespace behavioural
46}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.