1 | /* |
---|
2 | * $Id: Direction_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/include/Direction.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace prediction_unit { |
---|
17 | namespace direction { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Direction::deallocation" |
---|
22 | void Direction::deallocation (void) |
---|
23 | { |
---|
24 | log_printf(FUNC,Direction,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
27 | { |
---|
28 | delete in_CLOCK ; |
---|
29 | delete in_NRESET; |
---|
30 | |
---|
31 | DELETE1_SIGNAL( in_PREDICT_VAL ,_param->_nb_inst_predict,1); |
---|
32 | DELETE1_SIGNAL(out_PREDICT_ACK ,_param->_nb_inst_predict,1); |
---|
33 | DELETE1_SIGNAL( in_PREDICT_ADDRESS_SRC,_param->_nb_inst_predict,_param->_size_instruction_address); |
---|
34 | DELETE1_SIGNAL( in_PREDICT_STATIC ,_param->_nb_inst_predict,1); |
---|
35 | DELETE1_SIGNAL( in_PREDICT_LAST_TAKE ,_param->_nb_inst_predict,1); |
---|
36 | DELETE1_SIGNAL(out_PREDICT_HISTORY ,_param->_nb_inst_predict,_param->_size_history); |
---|
37 | DELETE1_SIGNAL(out_PREDICT_DIRECTION ,_param->_nb_inst_predict,1); |
---|
38 | |
---|
39 | DELETE1_SIGNAL( in_UPDATE_VAL ,_param->_nb_inst_update,1); |
---|
40 | DELETE1_SIGNAL(out_UPDATE_ACK ,_param->_nb_inst_update,1); |
---|
41 | DELETE1_SIGNAL( in_UPDATE_ADDRESS ,_param->_nb_inst_update,_param->_size_instruction_address); |
---|
42 | DELETE1_SIGNAL( in_UPDATE_HISTORY ,_param->_nb_inst_update,_param->_size_history); |
---|
43 | DELETE1_SIGNAL( in_UPDATE_DIRECTION ,_param->_nb_inst_update,1); |
---|
44 | DELETE1_SIGNAL( in_UPDATE_PREDICTION_IFETCH,_param->_nb_inst_update,1); |
---|
45 | } |
---|
46 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
47 | delete _component_glue; |
---|
48 | if (_param->_have_component_meta_predictor) |
---|
49 | delete _component_meta_predictor; |
---|
50 | delete _component; |
---|
51 | |
---|
52 | log_printf(FUNC,Direction,FUNCTION,"End"); |
---|
53 | }; |
---|
54 | |
---|
55 | }; // end namespace direction |
---|
56 | }; // end namespace prediction_unit |
---|
57 | }; // end namespace front_end |
---|
58 | }; // end namespace multi_front_end |
---|
59 | }; // end namespace core |
---|
60 | |
---|
61 | }; // end namespace behavioural |
---|
62 | }; // end namespace morpheo |
---|