[110] | 1 | /* |
---|
| 2 | * $Id: Meta_Predictor_deallocation.cpp 128 2009-06-26 08:43:23Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/include/Meta_Predictor.h" |
---|
| 9 | #include "Behavioural/include/Allocation.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | namespace meta_predictor { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Meta_Predictor::deallocation" |
---|
| 23 | void Meta_Predictor::deallocation (void) |
---|
| 24 | { |
---|
| 25 | log_begin(Meta_Predictor,FUNCTION); |
---|
| 26 | |
---|
| 27 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 28 | { |
---|
| 29 | delete in_CLOCK ; |
---|
| 30 | delete in_NRESET; |
---|
[111] | 31 | |
---|
| 32 | DELETE1_SIGNAL( in_PREDICT_VAL ,_param->_nb_inst_predict,1 ); |
---|
| 33 | DELETE1_SIGNAL(out_PREDICT_ACK ,_param->_nb_inst_predict,1 ); |
---|
| 34 | DELETE1_SIGNAL( in_PREDICT_ADDRESS ,_param->_nb_inst_predict,_param->_size_address); |
---|
| 35 | DELETE1_SIGNAL(out_PREDICT_DIRECTION ,_param->_nb_inst_predict,1 ); |
---|
| 36 | DELETE1_SIGNAL(out_PREDICT_HISTORY ,_param->_nb_inst_predict,_param->_size_history); |
---|
| 37 | |
---|
| 38 | DELETE1_SIGNAL( in_UPDATE_VAL ,_param->_nb_inst_update,1 ); |
---|
| 39 | DELETE1_SIGNAL(out_UPDATE_ACK ,_param->_nb_inst_update,1 ); |
---|
| 40 | DELETE1_SIGNAL( in_UPDATE_ADDRESS ,_param->_nb_inst_update,_param->_size_address); |
---|
| 41 | DELETE1_SIGNAL( in_UPDATE_HISTORY ,_param->_nb_inst_update,_param->_size_history); |
---|
[112] | 42 | DELETE1_SIGNAL( in_UPDATE_HISTORY_VAL ,_param->_nb_inst_update,1 ); |
---|
[111] | 43 | DELETE1_SIGNAL( in_UPDATE_DIRECTION ,_param->_nb_inst_update,1 ); |
---|
[110] | 44 | } |
---|
| 45 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 46 | |
---|
[128] | 47 | delete _component_glue; |
---|
| 48 | for (uint32_t i=0; i<_param->_nb_predictor; ++i) |
---|
| 49 | delete _component_two_level_branch_predictor [i]; |
---|
| 50 | delete [] _component_two_level_branch_predictor; |
---|
[111] | 51 | |
---|
[110] | 52 | delete _component; |
---|
| 53 | |
---|
[111] | 54 | |
---|
[110] | 55 | log_end(Meta_Predictor,FUNCTION); |
---|
| 56 | }; |
---|
| 57 | |
---|
| 58 | }; // end namespace meta_predictor |
---|
| 59 | }; // end namespace direction |
---|
| 60 | }; // end namespace prediction_unit |
---|
| 61 | }; // end namespace front_end |
---|
| 62 | }; // end namespace multi_front_end |
---|
| 63 | }; // end namespace core |
---|
| 64 | |
---|
| 65 | }; // end namespace behavioural |
---|
| 66 | }; // end namespace morpheo |
---|