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

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

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 1.4 KB
Line 
1/*
2 * $Id$
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 & 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.