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 @ 88

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

Almost complete design
with Test and test platform

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