1 | /* |
---|
2 | * $Id: Ifetch_unit_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/include/Ifetch_unit.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_front_end { |
---|
14 | namespace front_end { |
---|
15 | namespace ifetch_unit { |
---|
16 | |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Ifetch_unit::deallocation" |
---|
20 | void Ifetch_unit::deallocation (void) |
---|
21 | { |
---|
22 | log_printf(FUNC,Ifetch_unit,FUNCTION,"Begin"); |
---|
23 | |
---|
24 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
25 | { |
---|
26 | delete in_CLOCK ; |
---|
27 | delete in_NRESET; |
---|
28 | |
---|
29 | delete out_ICACHE_REQ_VAL ; |
---|
30 | delete in_ICACHE_REQ_ACK ; |
---|
31 | //delete out_ICACHE_REQ_THREAD_ID ; |
---|
32 | if (_param->_have_port_ifetch_queue_ptr) |
---|
33 | delete out_ICACHE_REQ_PACKET_ID ; |
---|
34 | delete out_ICACHE_REQ_ADDRESS ; |
---|
35 | delete out_ICACHE_REQ_TYPE ; |
---|
36 | |
---|
37 | delete in_ICACHE_RSP_VAL ; |
---|
38 | delete out_ICACHE_RSP_ACK ; |
---|
39 | //delete in_ICACHE_RSP_THREAD_ID ; |
---|
40 | if (_param->_have_port_ifetch_queue_ptr) |
---|
41 | delete in_ICACHE_RSP_PACKET_ID ; |
---|
42 | delete [] in_ICACHE_RSP_INSTRUCTION ; |
---|
43 | delete in_ICACHE_RSP_ERROR ; |
---|
44 | |
---|
45 | delete out_PREDICT_VAL ; |
---|
46 | delete in_PREDICT_ACK ; |
---|
47 | delete out_PREDICT_PC_PREVIOUS ; |
---|
48 | delete out_PREDICT_PC_CURRENT ; |
---|
49 | delete out_PREDICT_PC_CURRENT_IS_DS_TAKE ; |
---|
50 | delete in_PREDICT_PC_NEXT ; |
---|
51 | delete in_PREDICT_PC_NEXT_IS_DS_TAKE ; |
---|
52 | delete [] in_PREDICT_INSTRUCTION_ENABLE ; |
---|
53 | if (_param->_have_port_inst_ifetch_ptr) |
---|
54 | delete in_PREDICT_INST_IFETCH_PTR ; |
---|
55 | delete in_PREDICT_BRANCH_STATE ; |
---|
56 | if (_param->_have_port_depth) |
---|
57 | delete in_PREDICT_BRANCH_UPDATE_PREDICTION_ID ; |
---|
58 | |
---|
59 | delete [] out_DECOD_VAL ; |
---|
60 | delete [] in_DECOD_ACK ; |
---|
61 | delete [] out_DECOD_INSTRUCTION ; |
---|
62 | //delete out_DECOD_CONTEXT_ID ; |
---|
63 | delete out_DECOD_ADDRESS ; |
---|
64 | if (_param->_have_port_inst_ifetch_ptr) |
---|
65 | delete out_DECOD_INST_IFETCH_PTR ; |
---|
66 | delete out_DECOD_BRANCH_STATE ; |
---|
67 | if (_param->_have_port_depth) |
---|
68 | delete out_DECOD_BRANCH_UPDATE_PREDICTION_ID ; |
---|
69 | delete out_DECOD_EXCEPTION ; |
---|
70 | |
---|
71 | delete in_EVENT_VAL ; |
---|
72 | delete out_EVENT_ACK ; |
---|
73 | delete in_EVENT_ADDRESS ; |
---|
74 | delete in_EVENT_ADDRESS_NEXT ; |
---|
75 | delete in_EVENT_ADDRESS_NEXT_VAL ; |
---|
76 | delete in_EVENT_IS_DS_TAKE ; |
---|
77 | } |
---|
78 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
79 | delete _component_address_management; |
---|
80 | delete _component_ifetch_queue; |
---|
81 | delete _component_ifetch_unit_glue; |
---|
82 | delete _component; |
---|
83 | |
---|
84 | log_printf(FUNC,Ifetch_unit,FUNCTION,"End"); |
---|
85 | }; |
---|
86 | |
---|
87 | }; // end namespace ifetch_unit |
---|
88 | }; // end namespace front_end |
---|
89 | }; // end namespace multi_front_end |
---|
90 | }; // end namespace core |
---|
91 | |
---|
92 | }; // end namespace behavioural |
---|
93 | }; // end namespace morpheo |
---|