source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/src/Pattern_History_Table_deallocation.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.8 KB
Line 
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
11namespace morpheo                    {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16namespace two_level_branch_predictor {
17namespace 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       {
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_HIT     [i];
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;
51    delete  in_BRANCH_COMPLETE_HIT    ;
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
Note: See TracBrowser for help on using the repository browser.