source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/src/Direction_Glue_deallocation.cpp @ 88

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1/*
2 * $Id: Direction_Glue_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/include/Direction_Glue.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace prediction_unit {
16namespace direction {
17namespace direction_glue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Direction_Glue::deallocation"
22  void Direction_Glue::deallocation (void)
23  {
24    log_printf(FUNC,Direction_Glue,FUNCTION,"Begin");
25
26    if (usage_is_set(_usage,USE_SYSTEMC))
27      {
28        delete    in_CLOCK ;
29        delete    in_NRESET;
30
31        delete []  in_PREDICT_VAL                  ;
32        delete [] out_PREDICT_ACK                  ;
33        delete []  in_PREDICT_ADDRESS_SRC          ;
34        delete []  in_PREDICT_STATIC               ;
35        delete []  in_PREDICT_LAST_TAKE            ;
36        if (_param->_have_port_history)
37        delete [] out_PREDICT_HISTORY              ;
38        delete [] out_PREDICT_DIRECTION            ;
39        if (_param->_have_component_meta_predictor)
40          {
41        delete [] out_PREDICT_PREDICTOR_VAL        ;
42        delete []  in_PREDICT_PREDICTOR_ACK        ;
43        delete [] out_PREDICT_PREDICTOR_ADDRESS_SRC;
44        if (_param->_have_port_history)
45        delete []  in_PREDICT_PREDICTOR_HISTORY    ;
46        delete []  in_PREDICT_PREDICTOR_DIRECTION  ;
47          }
48        delete []  in_UPDATE_VAL                ;
49        delete [] out_UPDATE_ACK                ;
50        delete []  in_UPDATE_ADDRESS            ;
51        if (_param->_have_port_history)
52        delete []  in_UPDATE_HISTORY            ;
53        delete []  in_UPDATE_DIRECTION          ;
54        if (_param->_have_component_meta_predictor)
55          {
56        delete [] out_UPDATE_PREDICTOR_VAL      ;
57        delete []  in_UPDATE_PREDICTOR_ACK      ;
58        delete [] out_UPDATE_PREDICTOR_ADDRESS  ;
59        if (_param->_have_port_history)
60        delete [] out_UPDATE_PREDICTOR_HISTORY  ;
61        delete [] out_UPDATE_PREDICTOR_DIRECTION;
62          }
63      }
64    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
65
66    delete _component;
67
68    log_printf(FUNC,Direction_Glue,FUNCTION,"End");
69  };
70
71}; // end namespace direction_glue
72}; // end namespace direction
73}; // end namespace prediction_unit
74}; // end namespace front_end
75}; // end namespace multi_front_end
76}; // end namespace core
77
78}; // end namespace behavioural
79}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.