source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/src/Branch_Target_Buffer_Register_deallocation.cpp @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 3.0 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/include/Branch_Target_Buffer_Register.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace prediction_unit {
16namespace branch_target_buffer {
17namespace branch_target_buffer_register {
18
19
20#undef  FUNCTION
21#define FUNCTION "Branch_Target_Buffer_Register::deallocation"
22  void Branch_Target_Buffer_Register::deallocation (void)
23  {
24    log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"Begin");
25
26    if (_usage & USE_SYSTEMC)
27      {
28        delete    in_CLOCK ;
29        delete    in_NRESET;
30
31        delete []  in_PREDICT_VAL           ;
32        delete [] out_PREDICT_ACK           ;
33        if (_param->_have_port_context_id)
34        delete []  in_PREDICT_CONTEXT_ID    ;
35        delete []  in_PREDICT_ADDRESS       ;
36        delete [] out_PREDICT_HIT           ;
37        delete [] out_PREDICT_ADDRESS_SRC   ;
38        delete [] out_PREDICT_ADDRESS_DEST  ;
39        delete [] out_PREDICT_CONDITION     ;
40        delete [] out_PREDICT_LAST_TAKE     ;
41        delete [] out_PREDICT_IS_ACCURATE   ;
42        delete []  in_DECOD_VAL             ;
43        delete [] out_DECOD_ACK             ;
44        delete [] out_DECOD_HIT             ;
45        if (_param->_have_port_victim)
46        delete [] out_DECOD_HIT_INDEX       ;
47        if (_param->_have_port_victim)
48        delete []  in_DECOD_VICTIM          ;
49        if (_param->_have_port_context_id)
50        delete []  in_DECOD_CONTEXT_ID      ;
51        delete []  in_DECOD_ADDRESS_SRC     ;
52        delete []  in_DECOD_ADDRESS_DEST    ;
53        delete []  in_DECOD_CONDITION       ;
54        delete []  in_DECOD_LAST_TAKE       ;
55        delete []  in_DECOD_MISS_PREDICTION ;
56        delete []  in_UPDATE_VAL            ;
57        delete [] out_UPDATE_ACK            ;
58        delete [] out_UPDATE_HIT            ;
59        if (_param->_have_port_victim)
60        delete [] out_UPDATE_HIT_INDEX      ;
61        if (_param->_have_port_victim)
62        delete []  in_UPDATE_VICTIM         ;
63        if (_param->_have_port_context_id)
64        delete []  in_UPDATE_CONTEXT_ID     ;
65        delete []  in_UPDATE_ADDRESS_SRC    ;
66        delete []  in_UPDATE_ADDRESS_DEST   ;
67        delete []  in_UPDATE_CONDITION      ;
68        delete []  in_UPDATE_LAST_TAKE      ;
69        delete []  in_UPDATE_MISS_PREDICTION;
70
71        delete [] reg_BTB;
72
73        delete [] internal_DECOD_ACK       ;
74        delete [] internal_DECOD_HIT       ;
75        delete [] internal_DECOD_NUM_BANK  ;
76        delete [] internal_DECOD_NUM_ENTRY ;
77
78        delete [] internal_UPDATE_ACK      ;
79        delete [] internal_UPDATE_HIT      ;
80        delete [] internal_UPDATE_NUM_BANK ;
81        delete [] internal_UPDATE_NUM_ENTRY;
82      }
83
84    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
85
86    delete _component;
87
88    log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"End");
89  };
90
91}; // end namespace branch_target_buffer_register
92}; // end namespace branch_target_buffer
93}; // end namespace prediction_unit
94}; // end namespace front_end
95}; // end namespace multi_front_end
96}; // end namespace core
97
98}; // end namespace behavioural
99}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.