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 @ 15

Last change on this file since 15 was 15, checked in by rosiere, 17 years ago

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.9 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    delete in_NRESET;
26
27    for (uint32_t i=0; i<_param._nb_prediction; i++)
28      {
29        delete  in_PREDICT_VAL     [i];
30        delete out_PREDICT_ACK     [i];
31        delete  in_PREDICT_ADDRESS [i];
32        delete out_PREDICT_HISTORY [i];
33      }
34
35    delete  in_PREDICT_VAL    ;
36    delete out_PREDICT_ACK    ;
37    delete  in_PREDICT_ADDRESS;
38    delete out_PREDICT_HISTORY;
39
40     for (uint32_t i=0; i<_param._nb_branch_complete; i++)
41       {
42         delete  in_BRANCH_COMPLETE_VAL       [i];
43         delete out_BRANCH_COMPLETE_ACK       [i];
44         delete  in_BRANCH_COMPLETE_ADDRESS   [i];
45         delete  in_BRANCH_COMPLETE_HISTORY   [i];
46         delete  in_BRANCH_COMPLETE_DIRECTION [i];
47       }
48    delete  in_BRANCH_COMPLETE_VAL    ;
49    delete out_BRANCH_COMPLETE_ACK    ;
50    delete  in_BRANCH_COMPLETE_ADDRESS;
51    delete  in_BRANCH_COMPLETE_HISTORY;
52    delete  in_BRANCH_COMPLETE_DIRECTION;
53
54     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
55    delete component_Counter;
56    delete component_RegisterFile;
57
58    log_printf(FUNC,Pattern_History_Table,"deallocation","End");
59  };
60
61}; // end namespace pattern_history_table
62}; // end namespace two_level_branch_predictor
63}; // end namespace meta_predictor
64}; // end namespace predictor
65}; // end namespace stage_1_ifetch
66
67}; // end namespace behavioural
68}; // end namespace morpheo             
69#endif
Note: See TracBrowser for help on using the repository browser.