[55] | 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 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace core { |
---|
| 17 | namespace multi_execute_loop { |
---|
| 18 | namespace execute_loop { |
---|
| 19 | namespace multi_read_unit { |
---|
| 20 | namespace read_unit { |
---|
| 21 | namespace 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 | |
---|
[88] | 30 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 31 | { |
---|
[55] | 32 | delete in_CLOCK ; |
---|
| 33 | delete in_NRESET; |
---|
| 34 | |
---|
[69] | 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 ; |
---|
[88] | 43 | if (_param->_have_port_rob_ptr) |
---|
[69] | 44 | delete in_INSERT_ROB_ID ; |
---|
| 45 | delete in_INSERT_OPERATION ; |
---|
| 46 | delete in_INSERT_TYPE ; |
---|
[76] | 47 | delete in_INSERT_STORE_QUEUE_PTR_WRITE; |
---|
[78] | 48 | if (_param->_have_port_load_queue_ptr) |
---|
[76] | 49 | delete in_INSERT_LOAD_QUEUE_PTR_WRITE ; |
---|
[69] | 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 ; |
---|
[55] | 68 | |
---|
[69] | 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 ; |
---|
[88] | 77 | if (_param->_have_port_rob_ptr) |
---|
[69] | 78 | delete [] out_RETIRE_ROB_ID ; |
---|
| 79 | delete [] out_RETIRE_OPERATION ; |
---|
| 80 | delete [] out_RETIRE_TYPE ; |
---|
[76] | 81 | delete [] out_RETIRE_STORE_QUEUE_PTR_WRITE; |
---|
[78] | 82 | if (_param->_have_port_load_queue_ptr) |
---|
[76] | 83 | delete [] out_RETIRE_LOAD_QUEUE_PTR_WRITE ; |
---|
[69] | 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 ; |
---|
[55] | 93 | |
---|
[69] | 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 ; |
---|
[55] | 99 | |
---|
| 100 | delete [] in_SPR_WRITE_VAL ; |
---|
[69] | 101 | if (_param->_have_port_ooo_engine_id) |
---|
| 102 | delete [] in_SPR_WRITE_OOO_ENGINE_ID; |
---|
[55] | 103 | delete [] in_SPR_WRITE_NUM_REG ; |
---|
| 104 | delete [] in_SPR_WRITE_DATA ; |
---|
| 105 | |
---|
[69] | 106 | if (_param->_have_port_ooo_engine_id) |
---|
| 107 | delete [] in_BYPASS_WRITE_OOO_ENGINE_ID; |
---|
[55] | 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 ; |
---|
[69] | 116 | if (_param->_have_port_ooo_engine_id) |
---|
| 117 | delete [] in_BYPASS_MEMORY_OOO_ENGINE_ID; |
---|
[55] | 118 | delete [] in_BYPASS_MEMORY_NUM_REG ; |
---|
| 119 | delete [] in_BYPASS_MEMORY_DATA ; |
---|
| 120 | |
---|
| 121 | // ~~~~~[ internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[69] | 122 | delete [] internal_RETIRE_VAL; |
---|
[88] | 123 | delete [] internal_RETIRE_SLOT; |
---|
| 124 | } |
---|
[55] | 125 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 126 | |
---|
| 127 | delete _component; |
---|
[69] | 128 | #ifdef SYSTEMC_VHDL_COMPATIBILITY |
---|
| 129 | delete [] _queue_valid ; |
---|
| 130 | #else |
---|
[55] | 131 | delete _queue_control; |
---|
[69] | 132 | #endif |
---|
[55] | 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 |
---|