source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Register_translation_unit_deallocation.cpp @ 104

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

Fix Bug :
1) Load Store Unit : check big endian
2) Commit unit & RAT : add retire_event interface

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1/*
2 * $Id: Register_translation_unit_deallocation.cpp 104 2009-01-21 21:53:13Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Register_translation_unit.h"
9#include "Behavioural/include/Allocation.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace register_translation_unit {
18
19
20#undef  FUNCTION
21#define FUNCTION "Register_translation_unit::deallocation"
22  void Register_translation_unit::deallocation (void)
23  {
24    log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin");
25
26    if (usage_is_set(_usage,USE_SYSTEMC))
27      {
28        delete    in_CLOCK ;
29        delete    in_NRESET;
30
31        delete []  in_RENAME_VAL               ;
32        delete [] out_RENAME_ACK               ;
33        if (_param->_have_port_front_end_id)
34        delete []  in_RENAME_FRONT_END_ID      ;
35        if (_param->_have_port_context_id)
36        delete []  in_RENAME_CONTEXT_ID        ;
37        delete []  in_RENAME_READ_RA           ;
38        delete []  in_RENAME_NUM_REG_RA_LOG    ;
39        delete []  in_RENAME_READ_RB           ;
40        delete []  in_RENAME_NUM_REG_RB_LOG    ;
41        delete []  in_RENAME_READ_RC           ;
42        delete []  in_RENAME_NUM_REG_RC_LOG    ;
43        delete []  in_RENAME_WRITE_RD          ;
44        delete []  in_RENAME_NUM_REG_RD_LOG    ;
45        delete []  in_RENAME_WRITE_RE          ;
46        delete []  in_RENAME_NUM_REG_RE_LOG    ;
47
48        delete [] out_INSERT_VAL               ;
49        delete []  in_INSERT_ACK               ;
50        if (_param->_have_port_front_end_id)
51        delete [] out_INSERT_FRONT_END_ID      ;
52        if (_param->_have_port_context_id)
53        delete [] out_INSERT_CONTEXT_ID        ;
54        delete [] out_INSERT_READ_RA           ;
55        delete [] out_INSERT_NUM_REG_RA_LOG    ;
56        delete [] out_INSERT_NUM_REG_RA_PHY    ;
57        delete [] out_INSERT_READ_RB           ;
58        delete [] out_INSERT_NUM_REG_RB_LOG    ;
59        delete [] out_INSERT_NUM_REG_RB_PHY    ;
60        delete [] out_INSERT_READ_RC           ;
61        delete [] out_INSERT_NUM_REG_RC_LOG    ;
62        delete [] out_INSERT_NUM_REG_RC_PHY    ;
63        delete [] out_INSERT_WRITE_RD          ;
64        delete [] out_INSERT_NUM_REG_RD_LOG    ;
65        delete [] out_INSERT_NUM_REG_RD_PHY_OLD;
66        delete [] out_INSERT_NUM_REG_RD_PHY_NEW;
67        delete [] out_INSERT_WRITE_RE          ;
68        delete [] out_INSERT_NUM_REG_RE_LOG    ;
69        delete [] out_INSERT_NUM_REG_RE_PHY_OLD;
70        delete [] out_INSERT_NUM_REG_RE_PHY_NEW;
71
72        delete []  in_RETIRE_VAL               ;
73        delete [] out_RETIRE_ACK               ;
74        if (_param->_have_port_front_end_id)
75        delete []  in_RETIRE_FRONT_END_ID      ;
76        if (_param->_have_port_context_id)
77        delete []  in_RETIRE_CONTEXT_ID        ;
78        delete []  in_RETIRE_READ_RA           ;
79        delete []  in_RETIRE_NUM_REG_RA_PHY    ;
80        delete []  in_RETIRE_READ_RB           ;
81        delete []  in_RETIRE_NUM_REG_RB_PHY    ;
82        delete []  in_RETIRE_READ_RC           ;
83        delete []  in_RETIRE_NUM_REG_RC_PHY    ;
84        delete []  in_RETIRE_WRITE_RD          ;
85        delete []  in_RETIRE_NUM_REG_RD_LOG    ;
86        delete []  in_RETIRE_NUM_REG_RD_PHY_OLD;
87        delete []  in_RETIRE_NUM_REG_RD_PHY_NEW;
88        delete []  in_RETIRE_WRITE_RE          ;
89        delete []  in_RETIRE_NUM_REG_RE_LOG    ;
90        delete []  in_RETIRE_NUM_REG_RE_PHY_OLD;
91        delete []  in_RETIRE_NUM_REG_RE_PHY_NEW;
92
93        DELETE2_SIGNAL( in_RETIRE_EVENT_VAL            ,_param->_nb_front_end, _param->_nb_context[it1],1);
94        DELETE2_SIGNAL(out_RETIRE_EVENT_ACK            ,_param->_nb_front_end, _param->_nb_context[it1],1);
95        DELETE2_SIGNAL( in_RETIRE_EVENT_STATE          ,_param->_nb_front_end, _param->_nb_context[it1],_param->_size_event_state);
96      }
97
98    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
99
100    delete _component_dependency_checking_unit         ;
101    delete _component_free_list_unit                   ;
102    delete _component_register_address_translation_unit;
103    delete _component_stat_list_unit                   ;
104    delete _component_register_translation_unit_glue   ;
105
106    delete _component;
107
108    log_printf(FUNC,Register_translation_unit,FUNCTION,"End");
109  };
110
111}; // end namespace register_translation_unit
112}; // end namespace rename_unit
113}; // end namespace ooo_engine
114}; // end namespace multi_ooo_engine
115}; // end namespace core
116
117}; // end namespace behavioural
118}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.