source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_deallocation.cpp @ 42

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

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

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/include/Two_Level_Branch_Predictor.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16namespace two_level_branch_predictor {
17
18  void Two_Level_Branch_Predictor::deallocation (void)
19  {
20    log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","Begin");
21
22    delete in_CLOCK;
23    delete in_NRESET;
24
25    delete []  in_PREDICT_VAL        ;
26    delete [] out_PREDICT_ACK        ;
27    delete []  in_PREDICT_ADDRESS    ;
28    if (_param._have_bht)
29    delete [] out_PREDICT_BHT_HISTORY;
30    if (_param._have_pht)
31    delete [] out_PREDICT_PHT_HISTORY;
32
33    delete []  in_BRANCH_COMPLETE_VAL        ;
34    delete [] out_BRANCH_COMPLETE_ACK        ;
35    delete []  in_BRANCH_COMPLETE_ADDRESS    ;
36    if (_param._have_bht)
37    delete []  in_BRANCH_COMPLETE_BHT_HISTORY;
38    if (_param._have_pht)
39    delete []  in_BRANCH_COMPLETE_PHT_HISTORY;
40    delete []  in_BRANCH_COMPLETE_DIRECTION  ;
41
42    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
43
44    if (_param._have_bht)
45    delete component_Branch_History_Table ;
46    if (_param._have_pht)
47    delete component_Pattern_History_Table;
48    delete component_Two_Level_Branch_Predictor_Glue;
49    delete _component;
50
51    log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","End");
52  };
53
54}; // end namespace two_level_branch_predictor
55}; // end namespace meta_predictor
56}; // end namespace predictor
57}; // end namespace stage_1_ifetch
58
59}; // end namespace behavioural
60}; // end namespace morpheo             
61#endif
Note: See TracBrowser for help on using the repository browser.