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