[78] | 1 | /* |
---|
| 2 | * $Id: Direction_Glue_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/include/Direction_Glue.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_front_end { |
---|
| 14 | namespace front_end { |
---|
| 15 | namespace prediction_unit { |
---|
| 16 | namespace direction { |
---|
| 17 | namespace direction_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Direction_Glue::deallocation" |
---|
| 22 | void Direction_Glue::deallocation (void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Direction_Glue,FUNCTION,"Begin"); |
---|
| 25 | |
---|
| 26 | if (_usage & USE_SYSTEMC) |
---|
| 27 | { |
---|
| 28 | delete in_CLOCK ; |
---|
| 29 | delete in_NRESET; |
---|
| 30 | |
---|
| 31 | delete [] in_PREDICT_VAL ; |
---|
| 32 | delete [] out_PREDICT_ACK ; |
---|
| 33 | delete [] in_PREDICT_ADDRESS_SRC ; |
---|
| 34 | delete [] in_PREDICT_STATIC ; |
---|
| 35 | delete [] in_PREDICT_LAST_TAKE ; |
---|
| 36 | if (_param->_have_port_history) |
---|
| 37 | delete [] out_PREDICT_HISTORY ; |
---|
| 38 | delete [] out_PREDICT_DIRECTION ; |
---|
| 39 | if (_param->_have_component_meta_predictor) |
---|
| 40 | { |
---|
| 41 | delete [] out_PREDICT_PREDICTOR_VAL ; |
---|
| 42 | delete [] in_PREDICT_PREDICTOR_ACK ; |
---|
| 43 | delete [] out_PREDICT_PREDICTOR_ADDRESS_SRC; |
---|
| 44 | if (_param->_have_port_history) |
---|
| 45 | delete [] in_PREDICT_PREDICTOR_HISTORY ; |
---|
| 46 | delete [] in_PREDICT_PREDICTOR_DIRECTION ; |
---|
| 47 | } |
---|
| 48 | delete [] in_UPDATE_VAL ; |
---|
| 49 | delete [] out_UPDATE_ACK ; |
---|
| 50 | delete [] in_UPDATE_ADDRESS ; |
---|
| 51 | if (_param->_have_port_history) |
---|
| 52 | delete [] in_UPDATE_HISTORY ; |
---|
| 53 | delete [] in_UPDATE_DIRECTION ; |
---|
| 54 | if (_param->_have_component_meta_predictor) |
---|
| 55 | { |
---|
| 56 | delete [] out_UPDATE_PREDICTOR_VAL ; |
---|
| 57 | delete [] in_UPDATE_PREDICTOR_ACK ; |
---|
| 58 | delete [] out_UPDATE_PREDICTOR_ADDRESS ; |
---|
| 59 | if (_param->_have_port_history) |
---|
| 60 | delete [] out_UPDATE_PREDICTOR_HISTORY ; |
---|
| 61 | delete [] out_UPDATE_PREDICTOR_DIRECTION; |
---|
| 62 | } |
---|
| 63 | } |
---|
| 64 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 65 | |
---|
| 66 | delete _component; |
---|
| 67 | |
---|
| 68 | log_printf(FUNC,Direction_Glue,FUNCTION,"End"); |
---|
| 69 | }; |
---|
| 70 | |
---|
| 71 | }; // end namespace direction_glue |
---|
| 72 | }; // end namespace direction |
---|
| 73 | }; // end namespace prediction_unit |
---|
| 74 | }; // end namespace front_end |
---|
| 75 | }; // end namespace multi_front_end |
---|
| 76 | }; // end namespace core |
---|
| 77 | |
---|
| 78 | }; // end namespace behavioural |
---|
| 79 | }; // end namespace morpheo |
---|