source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/src/Return_Address_Stack_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: 2.4 KB
Line 
1*/*
2 * $Id$
3 *
4 * [ Description ]
5 * 
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/include/Return_Address_Stack.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace prediction_unit {
16namespace return_address_stack {
17
18
19#undef  FUNCTION
20#define FUNCTION "Return_Address_Stack::deallocation"
21  void Return_Address_Stack::deallocation (void)
22  {
23    log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin");
24
25    if (_usage & USE_SYSTEMC)
26      {
27        delete    in_CLOCK ;
28        delete    in_NRESET;
29
30        delete []  in_PREDICT_VAL          ;
31        delete [] out_PREDICT_ACK          ;
32        if (_param->_have_port_context_id)
33        delete []  in_PREDICT_CONTEXT_ID   ; 
34        delete [] out_PREDICT_HIT          ; 
35        delete []  in_PREDICT_PUSH         ;
36        delete []  in_PREDICT_ADDRESS_PUSH ;
37        delete [] out_PREDICT_ADDRESS_POP  ;
38        delete [] out_PREDICT_INDEX        ;
39        delete []  in_DECOD_VAL            ;
40        delete [] out_DECOD_ACK            ;
41        delete []  in_DECOD_PUSH           ;
42        if (_param->_have_port_context_id)
43        delete []  in_DECOD_CONTEXT_ID     ;
44        delete [] out_DECOD_HIT            ;
45        delete []  in_DECOD_ADDRESS_PUSH   ;
46        delete [] out_DECOD_ADDRESS_POP    ;
47        delete [] out_DECOD_INDEX          ;
48        delete []  in_DECOD_MISS_PREDICTION;
49        delete []  in_UPDATE_VAL           ;
50        delete [] out_UPDATE_ACK           ;
51        if (_param->_have_port_context_id)
52        delete []  in_UPDATE_CONTEXT_ID    ;
53        delete []  in_UPDATE_PUSH          ;
54        delete []  in_UPDATE_INDEX         ;
55        delete []  in_UPDATE_ADDRESS       ;
56      }
57
58    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
60    delete [] reg_stack;
61    delete [] reg_TOP;
62    delete [] reg_BOTTOM;
63    delete [] reg_EMPTY;
64    delete [] reg_PREDICT_TOP;
65    delete [] reg_PREDICT_BOTTOM;
66    delete [] reg_PREDICT_EMPTY;
67   
68    delete [] internal_PREDICT_ACK;
69    delete [] internal_PREDICT_HIT;
70    delete [] internal_DECOD_ACK;
71    delete [] internal_DECOD_HIT;
72    delete [] internal_UPDATE_ACK;
73
74    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
75
76    delete _component;
77
78    log_printf(FUNC,Return_Address_Stack,FUNCTION,"End");
79  };
80
81}; // end namespace return_address_stack
82}; // end namespace prediction_unit
83}; // end namespace front_end
84}; // end namespace multi_front_end
85}; // end namespace core
86
87}; // end namespace behavioural
88}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.