[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Pattern_History_Table.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace stage_1_ifetch { |
---|
| 14 | namespace predictor { |
---|
| 15 | namespace meta_predictor { |
---|
| 16 | namespace two_level_branch_predictor { |
---|
| 17 | namespace pattern_history_table { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | void Pattern_History_Table::deallocation (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Pattern_History_Table,"deallocation","Begin"); |
---|
| 23 | |
---|
| 24 | delete in_CLOCK; |
---|
| 25 | |
---|
| 26 | for (uint32_t i=0; i<_param._nb_prediction; i++) |
---|
| 27 | { |
---|
| 28 | delete in_PREDICT_VAL [i]; |
---|
| 29 | delete out_PREDICT_ACK [i]; |
---|
| 30 | delete in_PREDICT_ADDRESS [i]; |
---|
| 31 | delete out_PREDICT_HISTORY [i]; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | delete in_PREDICT_VAL ; |
---|
| 35 | delete out_PREDICT_ACK ; |
---|
| 36 | delete in_PREDICT_ADDRESS; |
---|
| 37 | delete out_PREDICT_HISTORY; |
---|
| 38 | |
---|
| 39 | for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
| 40 | { |
---|
[3] | 41 | delete in_BRANCH_COMPLETE_VAL [i]; |
---|
| 42 | delete out_BRANCH_COMPLETE_ACK [i]; |
---|
| 43 | delete in_BRANCH_COMPLETE_ADDRESS [i]; |
---|
| 44 | delete in_BRANCH_COMPLETE_HISTORY [i]; |
---|
| 45 | delete in_BRANCH_COMPLETE_DIRECTION [i]; |
---|
[2] | 46 | } |
---|
| 47 | delete in_BRANCH_COMPLETE_VAL ; |
---|
| 48 | delete out_BRANCH_COMPLETE_ACK ; |
---|
| 49 | delete in_BRANCH_COMPLETE_ADDRESS; |
---|
| 50 | delete in_BRANCH_COMPLETE_HISTORY; |
---|
[3] | 51 | delete in_BRANCH_COMPLETE_DIRECTION; |
---|
[2] | 52 | |
---|
| 53 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 54 | delete component_Counter; |
---|
| 55 | delete component_RegisterFile; |
---|
| 56 | |
---|
| 57 | log_printf(FUNC,Pattern_History_Table,"deallocation","End"); |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | }; // end namespace pattern_history_table |
---|
| 61 | }; // end namespace two_level_branch_predictor |
---|
| 62 | }; // end namespace meta_predictor |
---|
| 63 | }; // end namespace predictor |
---|
| 64 | }; // end namespace stage_1_ifetch |
---|
| 65 | |
---|
| 66 | }; // end namespace behavioural |
---|
| 67 | }; // end namespace morpheo |
---|
| 68 | #endif |
---|