source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/src/Victim_deallocation.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 * $Id: Victim_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Victim/include/Victim.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace generic {
13namespace victim {
14
15
16#undef  FUNCTION
17#define FUNCTION "Victim::deallocation"
18  void Victim::deallocation (void)
19  {
20    log_printf(FUNC,Victim,FUNCTION,"Begin");
21
22    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
23    switch (_param->_victim_scheme)
24      {
25//    case VICTIM_RANDOM      : delete _component_victim_random     ; break;
26//    case VICTIM_ROUND_ROBIN : delete _component_victim_round_robin; break;
27//    case VICTIM_NLU         : delete _component_victim_nlu        ; break;
28      case VICTIM_PSEUDO_LRU  : delete _component_victim_pseudo_lru ; break;
29//    case VICTIM_LRU         : delete _component_victim_lru        ; break;
30//    case VICTIM_FIFO        : delete _component_victim_fifo       ; break;
31      default : break;
32      }
33   
34    if (usage_is_set(_usage,USE_SYSTEMC))
35      {
36        delete    in_CLOCK ;
37        delete    in_NRESET;
38
39        delete []  in_ACCESS_VAL    ;
40        delete [] out_ACCESS_ACK    ;
41        if (_param->_have_port_address)
42        delete []  in_ACCESS_ADDRESS;
43        delete []  in_ACCESS_HIT    ;
44        delete []  in_ACCESS_ENTITY ;
45        delete [] out_ACCESS_VICTIM ;
46      }
47
48
49    log_printf(FUNC,Victim,FUNCTION,"End");
50  };
51
52}; // end namespace victim
53}; // end namespace generic
54
55}; // end namespace behavioural
56}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.