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 @ 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: 4.7 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    if (_param->_have_port_load_queue_ptr)
47    delete     in_INSERT_LOAD_QUEUE_PTR_WRITE ;
48    delete     in_INSERT_HAS_IMMEDIAT  ;
49    delete     in_INSERT_IMMEDIAT      ;
50//  delete     in_INSERT_READ_RA       ;
51    delete     in_INSERT_NUM_REG_RA    ;
52    delete     in_INSERT_DATA_RA_VAL   ;
53    delete     in_INSERT_DATA_RA       ;
54//  delete     in_INSERT_READ_RB       ;
55    delete     in_INSERT_NUM_REG_RB    ;
56    delete     in_INSERT_DATA_RB_VAL   ;
57    delete     in_INSERT_DATA_RB       ;
58//  delete     in_INSERT_READ_RC       ;
59    delete     in_INSERT_NUM_REG_RC    ;
60    delete     in_INSERT_DATA_RC_VAL   ;
61    delete     in_INSERT_DATA_RC       ;
62    delete     in_INSERT_WRITE_RD      ;
63    delete     in_INSERT_NUM_REG_RD    ;
64    delete     in_INSERT_WRITE_RE      ;
65    delete     in_INSERT_NUM_REG_RE    ;
66   
67    delete [] out_RETIRE_VAL           ;
68    delete []  in_RETIRE_ACK           ;
69    if (_param->_have_port_context_id)
70    delete [] out_RETIRE_CONTEXT_ID    ;
71    if (_param->_have_port_front_end_id)
72    delete [] out_RETIRE_FRONT_END_ID  ;
73    if (_param->_have_port_ooo_engine_id)
74    delete [] out_RETIRE_OOO_ENGINE_ID ;
75    if (_param->_have_port_rob_id)
76    delete [] out_RETIRE_ROB_ID        ;
77    delete [] out_RETIRE_OPERATION     ;
78    delete [] out_RETIRE_TYPE          ;
79    delete [] out_RETIRE_STORE_QUEUE_PTR_WRITE;
80    if (_param->_have_port_load_queue_ptr)
81    delete [] out_RETIRE_LOAD_QUEUE_PTR_WRITE ;
82    delete [] out_RETIRE_HAS_IMMEDIAT  ;
83    delete [] out_RETIRE_IMMEDIAT      ;
84    delete [] out_RETIRE_DATA_RA       ;
85    delete [] out_RETIRE_DATA_RB       ;
86    delete [] out_RETIRE_DATA_RC       ;
87    delete [] out_RETIRE_WRITE_RD      ;
88    delete [] out_RETIRE_NUM_REG_RD    ;
89    delete [] out_RETIRE_WRITE_RE      ;
90    delete [] out_RETIRE_NUM_REG_RE    ;
91   
92    delete []  in_GPR_WRITE_VAL         ;
93    if (_param->_have_port_ooo_engine_id)
94    delete []  in_GPR_WRITE_OOO_ENGINE_ID;
95    delete []  in_GPR_WRITE_NUM_REG     ;
96    delete []  in_GPR_WRITE_DATA        ;
97   
98    delete []  in_SPR_WRITE_VAL       ;
99    if (_param->_have_port_ooo_engine_id)
100    delete []  in_SPR_WRITE_OOO_ENGINE_ID;
101    delete []  in_SPR_WRITE_NUM_REG   ;
102    delete []  in_SPR_WRITE_DATA      ;
103   
104    if (_param->_have_port_ooo_engine_id)
105    delete []  in_BYPASS_WRITE_OOO_ENGINE_ID;
106    delete []  in_BYPASS_WRITE_GPR_VAL    ;
107    delete []  in_BYPASS_WRITE_GPR_NUM_REG;
108    delete []  in_BYPASS_WRITE_GPR_DATA   ;
109    delete []  in_BYPASS_WRITE_SPR_VAL    ;
110    delete []  in_BYPASS_WRITE_SPR_NUM_REG;
111    delete []  in_BYPASS_WRITE_SPR_DATA   ;
112   
113    delete []  in_BYPASS_MEMORY_VAL       ;
114    if (_param->_have_port_ooo_engine_id)
115    delete []  in_BYPASS_MEMORY_OOO_ENGINE_ID;
116    delete []  in_BYPASS_MEMORY_NUM_REG   ;
117    delete []  in_BYPASS_MEMORY_DATA      ;
118   
119    // ~~~~~[ internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
120    delete []  internal_RETIRE_VAL;
121
122    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
123
124    delete    _component;
125#ifdef  SYSTEMC_VHDL_COMPATIBILITY
126    delete [] _queue_valid  ;
127#else
128    delete    _queue_control;
129#endif
130    delete [] _queue        ;
131
132    log_printf(FUNC,Reservation_station,FUNCTION,"End");
133  };
134
135}; // end namespace reservation_station
136}; // end namespace read_unit
137}; // end namespace multi_read_unit
138}; // end namespace execute_loop
139}; // end namespace multi_execute_loop
140}; // end namespace core
141
142}; // end namespace behavioural
143}; // end namespace morpheo             
144#endif
Note: See TracBrowser for help on using the repository browser.