1 | /* |
---|
2 | * $Id: Ifetch_unit_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/Ifetch_unit/include/Ifetch_unit.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 ifetch_unit { |
---|
17 | |
---|
18 | |
---|
19 | #undef FUNCTION |
---|
20 | #define FUNCTION "Ifetch_unit::deallocation" |
---|
21 | void Ifetch_unit::deallocation (void) |
---|
22 | { |
---|
23 | log_printf(FUNC,Ifetch_unit,FUNCTION,"Begin"); |
---|
24 | |
---|
25 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
26 | { |
---|
27 | delete in_CLOCK ; |
---|
28 | delete in_NRESET; |
---|
29 | |
---|
30 | DELETE0_SIGNAL(out_ICACHE_REQ_VAL ,1); |
---|
31 | DELETE0_SIGNAL( in_ICACHE_REQ_ACK ,1); |
---|
32 | // DELETE0_SIGNAL(out_ICACHE_REQ_THREAD_ID,_param->_size_context_id ); |
---|
33 | DELETE0_SIGNAL(out_ICACHE_REQ_PACKET_ID,_param->_size_ifetch_queue_ptr ); |
---|
34 | DELETE0_SIGNAL(out_ICACHE_REQ_ADDRESS ,_param->_size_instruction_address ); |
---|
35 | DELETE0_SIGNAL(out_ICACHE_REQ_TYPE ,_param->_size_icache_type); |
---|
36 | |
---|
37 | DELETE0_SIGNAL( in_ICACHE_RSP_VAL ,1); |
---|
38 | DELETE0_SIGNAL(out_ICACHE_RSP_ACK ,1); |
---|
39 | // DELETE0_SIGNAL( in_ICACHE_RSP_THREAD_ID ,_param->_size_context_id ); |
---|
40 | DELETE0_SIGNAL( in_ICACHE_RSP_PACKET_ID ,_param->_size_ifetch_queue_ptr ); |
---|
41 | DELETE0_SIGNAL( in_ICACHE_RSP_ERROR ,_param->_size_icache_error); |
---|
42 | DELETE1_SIGNAL( in_ICACHE_RSP_INSTRUCTION,_param->_size_instruction,_param->_nb_instruction); |
---|
43 | |
---|
44 | DELETE0_SIGNAL(out_PREDICT_VAL ,1); |
---|
45 | DELETE0_SIGNAL( in_PREDICT_ACK ,1); |
---|
46 | DELETE0_SIGNAL(out_PREDICT_PC_PREVIOUS ,_param->_size_instruction_address); |
---|
47 | DELETE0_SIGNAL(out_PREDICT_PC_CURRENT ,_param->_size_instruction_address); |
---|
48 | DELETE0_SIGNAL(out_PREDICT_PC_CURRENT_IS_DS_TAKE ,1); |
---|
49 | DELETE0_SIGNAL( in_PREDICT_PC_NEXT ,_param->_size_instruction_address); |
---|
50 | DELETE0_SIGNAL( in_PREDICT_PC_NEXT_IS_DS_TAKE ,1); |
---|
51 | DELETE0_SIGNAL( in_PREDICT_INST_IFETCH_PTR ,_param->_size_inst_ifetch_ptr); |
---|
52 | DELETE0_SIGNAL( in_PREDICT_BRANCH_STATE ,_param->_size_branch_state); |
---|
53 | DELETE0_SIGNAL( in_PREDICT_BRANCH_UPDATE_PREDICTION_ID,_param->_size_depth); |
---|
54 | DELETE1_SIGNAL( in_PREDICT_INSTRUCTION_ENABLE ,1,_param->_nb_instruction); |
---|
55 | |
---|
56 | // DELETE0_SIGNAL(out_DECOD_CONTEXT_ID ,_param->_size_context_id); |
---|
57 | DELETE0_SIGNAL(out_DECOD_ADDRESS ,_param->_size_instruction_address); |
---|
58 | DELETE0_SIGNAL(out_DECOD_INST_IFETCH_PTR ,_param->_size_inst_ifetch_ptr); |
---|
59 | DELETE0_SIGNAL(out_DECOD_BRANCH_STATE ,_param->_size_branch_state); |
---|
60 | DELETE0_SIGNAL(out_DECOD_BRANCH_UPDATE_PREDICTION_ID,_param->_size_depth); |
---|
61 | DELETE0_SIGNAL(out_DECOD_EXCEPTION ,_param->_size_exception_ifetch); |
---|
62 | DELETE1_SIGNAL(out_DECOD_VAL ,1,_param->_nb_instruction); |
---|
63 | DELETE1_SIGNAL( in_DECOD_ACK ,1,_param->_nb_instruction); |
---|
64 | DELETE1_SIGNAL(out_DECOD_INSTRUCTION ,_param->_size_instruction,_param->_nb_instruction); |
---|
65 | |
---|
66 | DELETE0_SIGNAL( in_EVENT_VAL ,1); |
---|
67 | DELETE0_SIGNAL(out_EVENT_ACK ,1); |
---|
68 | DELETE0_SIGNAL( in_EVENT_ADDRESS ,_param->_size_instruction_address); |
---|
69 | DELETE0_SIGNAL( in_EVENT_ADDRESS_NEXT ,_param->_size_instruction_address); |
---|
70 | DELETE0_SIGNAL( in_EVENT_ADDRESS_NEXT_VAL ,1); |
---|
71 | DELETE0_SIGNAL( in_EVENT_IS_DS_TAKE ,1); |
---|
72 | } |
---|
73 | |
---|
74 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
75 | delete _component_address_management; |
---|
76 | delete _component_ifetch_queue; |
---|
77 | delete _component_ifetch_unit_glue; |
---|
78 | delete _component; |
---|
79 | |
---|
80 | log_printf(FUNC,Ifetch_unit,FUNCTION,"End"); |
---|
81 | }; |
---|
82 | |
---|
83 | }; // end namespace ifetch_unit |
---|
84 | }; // end namespace front_end |
---|
85 | }; // end namespace multi_front_end |
---|
86 | }; // end namespace core |
---|
87 | |
---|
88 | }; // end namespace behavioural |
---|
89 | }; // end namespace morpheo |
---|