source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_deallocation.cpp @ 76

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

Add new component : Read_unit (no tested)
Change functionnal_unit : now use type and operation to execute the good function
Change New_Component's script

File size: 4.6 KB
Line 
1#undef  FUNCTION
2#define FUNCTION "Reservation_station::"
3
4#ifdef SYSTEMC
5/*
6 * $Id$
7 *
8 * [ Description ]
9 *
10 */
11
12#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h"
13
14namespace morpheo                    {
15namespace behavioural {
16namespace core {
17namespace multi_execute_loop {
18namespace execute_loop {
19namespace multi_read_unit {
20namespace read_unit {
21namespace reservation_station {
22
23
24#undef  FUNCTION
25#define FUNCTION "Reservation_station::deallocation"
26  void Reservation_station::deallocation (void)
27  {
28    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
29
30    delete     in_CLOCK ;
31    delete     in_NRESET;
32
33    delete     in_INSERT_VAL           ;
34    delete    out_INSERT_ACK           ;
35    if (_param->_have_port_context_id)
36    delete     in_INSERT_CONTEXT_ID    ;
37    if (_param->_have_port_front_end_id)
38    delete     in_INSERT_FRONT_END_ID  ;
39    if (_param->_have_port_ooo_engine_id)
40    delete     in_INSERT_OOO_ENGINE_ID ;
41    if (_param->_have_port_rob_id)
42    delete     in_INSERT_ROB_ID        ;
43    delete     in_INSERT_OPERATION     ;
44    delete     in_INSERT_TYPE          ;
45    delete     in_INSERT_STORE_QUEUE_PTR_WRITE;
46    delete     in_INSERT_LOAD_QUEUE_PTR_WRITE ;
47    delete     in_INSERT_HAS_IMMEDIAT  ;
48    delete     in_INSERT_IMMEDIAT      ;
49//  delete     in_INSERT_READ_RA       ;
50    delete     in_INSERT_NUM_REG_RA    ;
51    delete     in_INSERT_DATA_RA_VAL   ;
52    delete     in_INSERT_DATA_RA       ;
53//  delete     in_INSERT_READ_RB       ;
54    delete     in_INSERT_NUM_REG_RB    ;
55    delete     in_INSERT_DATA_RB_VAL   ;
56    delete     in_INSERT_DATA_RB       ;
57//  delete     in_INSERT_READ_RC       ;
58    delete     in_INSERT_NUM_REG_RC    ;
59    delete     in_INSERT_DATA_RC_VAL   ;
60    delete     in_INSERT_DATA_RC       ;
61    delete     in_INSERT_WRITE_RD      ;
62    delete     in_INSERT_NUM_REG_RD    ;
63    delete     in_INSERT_WRITE_RE      ;
64    delete     in_INSERT_NUM_REG_RE    ;
65   
66    delete [] out_RETIRE_VAL           ;
67    delete []  in_RETIRE_ACK           ;
68    if (_param->_have_port_context_id)
69    delete [] out_RETIRE_CONTEXT_ID    ;
70    if (_param->_have_port_front_end_id)
71    delete [] out_RETIRE_FRONT_END_ID  ;
72    if (_param->_have_port_ooo_engine_id)
73    delete [] out_RETIRE_OOO_ENGINE_ID ;
74    if (_param->_have_port_rob_id)
75    delete [] out_RETIRE_ROB_ID        ;
76    delete [] out_RETIRE_OPERATION     ;
77    delete [] out_RETIRE_TYPE          ;
78    delete [] out_RETIRE_STORE_QUEUE_PTR_WRITE;
79    delete [] out_RETIRE_LOAD_QUEUE_PTR_WRITE ;
80    delete [] out_RETIRE_HAS_IMMEDIAT  ;
81    delete [] out_RETIRE_IMMEDIAT      ;
82    delete [] out_RETIRE_DATA_RA       ;
83    delete [] out_RETIRE_DATA_RB       ;
84    delete [] out_RETIRE_DATA_RC       ;
85    delete [] out_RETIRE_WRITE_RD      ;
86    delete [] out_RETIRE_NUM_REG_RD    ;
87    delete [] out_RETIRE_WRITE_RE      ;
88    delete [] out_RETIRE_NUM_REG_RE    ;
89   
90    delete []  in_GPR_WRITE_VAL         ;
91    if (_param->_have_port_ooo_engine_id)
92    delete []  in_GPR_WRITE_OOO_ENGINE_ID;
93    delete []  in_GPR_WRITE_NUM_REG     ;
94    delete []  in_GPR_WRITE_DATA        ;
95   
96    delete []  in_SPR_WRITE_VAL       ;
97    if (_param->_have_port_ooo_engine_id)
98    delete []  in_SPR_WRITE_OOO_ENGINE_ID;
99    delete []  in_SPR_WRITE_NUM_REG   ;
100    delete []  in_SPR_WRITE_DATA      ;
101   
102    if (_param->_have_port_ooo_engine_id)
103    delete []  in_BYPASS_WRITE_OOO_ENGINE_ID;
104    delete []  in_BYPASS_WRITE_GPR_VAL    ;
105    delete []  in_BYPASS_WRITE_GPR_NUM_REG;
106    delete []  in_BYPASS_WRITE_GPR_DATA   ;
107    delete []  in_BYPASS_WRITE_SPR_VAL    ;
108    delete []  in_BYPASS_WRITE_SPR_NUM_REG;
109    delete []  in_BYPASS_WRITE_SPR_DATA   ;
110   
111    delete []  in_BYPASS_MEMORY_VAL       ;
112    if (_param->_have_port_ooo_engine_id)
113    delete []  in_BYPASS_MEMORY_OOO_ENGINE_ID;
114    delete []  in_BYPASS_MEMORY_NUM_REG   ;
115    delete []  in_BYPASS_MEMORY_DATA      ;
116   
117    // ~~~~~[ internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
118    delete []  internal_RETIRE_VAL;
119
120    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
121
122    delete    _component;
123#ifdef  SYSTEMC_VHDL_COMPATIBILITY
124    delete [] _queue_valid  ;
125#else
126    delete    _queue_control;
127#endif
128    delete [] _queue        ;
129
130    log_printf(FUNC,Reservation_station,FUNCTION,"End");
131  };
132
133}; // end namespace reservation_station
134}; // end namespace read_unit
135}; // end namespace multi_read_unit
136}; // end namespace execute_loop
137}; // end namespace multi_execute_loop
138}; // end namespace core
139
140}; // end namespace behavioural
141}; // end namespace morpheo             
142#endif
Note: See TracBrowser for help on using the repository browser.