source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/src/Branch_History_Table_deallocation.cpp @ 23

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

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

File size: 1.7 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/Branch_History_Table/include/Branch_History_Table.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16namespace two_level_branch_predictor {
17namespace branch_history_table {
18
19  void Branch_History_Table::deallocation (void)
20  {
21    delete in_CLOCK;
22    delete in_NRESET;
23
24    for (uint32_t i=0; i<_param._nb_prediction; i++)
25      {
26        delete  in_PREDICT_VAL     [i];
27        delete out_PREDICT_ACK     [i];
28        delete  in_PREDICT_ADDRESS [i];
29        delete out_PREDICT_HISTORY [i];
30      }
31
32    delete  in_PREDICT_VAL    ;
33    delete out_PREDICT_ACK    ;
34    delete  in_PREDICT_ADDRESS;
35    delete out_PREDICT_HISTORY;
36
37     for (uint32_t i=0; i<_param._nb_branch_complete; i++)
38       {
39         delete  in_BRANCH_COMPLETE_VAL     [i];
40         delete out_BRANCH_COMPLETE_ACK     [i];
41         delete  in_BRANCH_COMPLETE_ADDRESS [i];
42         delete  in_BRANCH_COMPLETE_HISTORY [i];
43         delete  in_BRANCH_COMPLETE_DIRECTION[i];
44       }
45    delete  in_BRANCH_COMPLETE_VAL    ;
46    delete out_BRANCH_COMPLETE_ACK    ;
47    delete  in_BRANCH_COMPLETE_ADDRESS;
48    delete  in_BRANCH_COMPLETE_HISTORY;
49    delete  in_BRANCH_COMPLETE_DIRECTION;
50
51     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
52    delete component_Shifter;
53    delete component_RegisterFile;
54  };
55
56}; // end namespace branch_history_table
57}; // end namespace two_level_branch_predictor
58}; // end namespace meta_predictor
59}; // end namespace predictor
60}; // end namespace stage_1_ifetch
61}; // end namespace behavioural
62}; // end namespace morpheo             
63#endif
Note: See TracBrowser for help on using the repository browser.