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

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

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
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
23    for (uint32_t i=0; i<_param._nb_prediction; i++)
24      {
25        delete  in_PREDICT_VAL     [i];
26        delete out_PREDICT_ACK     [i];
27        delete  in_PREDICT_ADDRESS [i];
28        delete out_PREDICT_HISTORY [i];
29      }
30
31    delete  in_PREDICT_VAL    ;
32    delete out_PREDICT_ACK    ;
33    delete  in_PREDICT_ADDRESS;
34    delete out_PREDICT_HISTORY;
35
36     for (uint32_t i=0; i<_param._nb_branch_complete; i++)
37       {
38         delete  in_BRANCH_COMPLETE_VAL     [i];
39         delete out_BRANCH_COMPLETE_ACK     [i];
40         delete  in_BRANCH_COMPLETE_ADDRESS [i];
41         delete  in_BRANCH_COMPLETE_HISTORY [i];
42         delete  in_BRANCH_COMPLETE_DIRECTION[i];
43       }
44    delete  in_BRANCH_COMPLETE_VAL    ;
45    delete out_BRANCH_COMPLETE_ACK    ;
46    delete  in_BRANCH_COMPLETE_ADDRESS;
47    delete  in_BRANCH_COMPLETE_HISTORY;
48    delete  in_BRANCH_COMPLETE_DIRECTION;
49
50     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
51    delete component_Shifter;
52    delete component_RegisterFile;
53  };
54
55}; // end namespace branch_history_table
56}; // end namespace two_level_branch_predictor
57}; // end namespace meta_predictor
58}; // end namespace predictor
59}; // end namespace stage_1_ifetch
60}; // end namespace behavioural
61}; // end namespace morpheo             
62#endif
Note: See TracBrowser for help on using the repository browser.