1 | /* |
---|
2 | * $Id: Register_unit_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_execute_loop { |
---|
14 | namespace execute_loop { |
---|
15 | namespace register_unit { |
---|
16 | |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Register_unit::deallocation" |
---|
20 | void Register_unit::deallocation (void) |
---|
21 | { |
---|
22 | log_printf(FUNC,Register_unit,FUNCTION,"Begin"); |
---|
23 | |
---|
24 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
25 | { |
---|
26 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
27 | delete in_CLOCK ; |
---|
28 | //#endif |
---|
29 | delete in_NRESET; |
---|
30 | |
---|
31 | delete [] in_GPR_READ_VAL ; |
---|
32 | delete [] out_GPR_READ_ACK ; |
---|
33 | if (_param->_have_port_ooo_engine_id == true) |
---|
34 | delete [] in_GPR_READ_OOO_ENGINE_ID ; |
---|
35 | delete [] in_GPR_READ_NUM_REG ; |
---|
36 | delete [] out_GPR_READ_DATA ; |
---|
37 | delete [] out_GPR_READ_DATA_VAL ; |
---|
38 | delete [] in_GPR_WRITE_VAL ; |
---|
39 | delete [] out_GPR_WRITE_ACK ; |
---|
40 | if (_param->_have_port_ooo_engine_id == true) |
---|
41 | delete [] in_GPR_WRITE_OOO_ENGINE_ID ; |
---|
42 | delete [] in_GPR_WRITE_NUM_REG ; |
---|
43 | delete [] in_GPR_WRITE_DATA ; |
---|
44 | delete [] in_SPR_READ_VAL ; |
---|
45 | delete [] out_SPR_READ_ACK ; |
---|
46 | if (_param->_have_port_ooo_engine_id == true) |
---|
47 | delete [] in_SPR_READ_OOO_ENGINE_ID ; |
---|
48 | delete [] in_SPR_READ_NUM_REG ; |
---|
49 | delete [] out_SPR_READ_DATA ; |
---|
50 | delete [] out_SPR_READ_DATA_VAL ; |
---|
51 | delete [] in_SPR_WRITE_VAL ; |
---|
52 | delete [] out_SPR_WRITE_ACK ; |
---|
53 | if (_param->_have_port_ooo_engine_id == true) |
---|
54 | delete [] in_SPR_WRITE_OOO_ENGINE_ID ; |
---|
55 | delete [] in_SPR_WRITE_NUM_REG ; |
---|
56 | delete [] in_SPR_WRITE_DATA ; |
---|
57 | delete [] in_INSERT_ROB_VAL ; |
---|
58 | delete [] out_INSERT_ROB_ACK ; |
---|
59 | delete [] in_INSERT_ROB_RD_USE ; |
---|
60 | delete [] in_INSERT_ROB_RD_NUM_REG ; |
---|
61 | delete [] in_INSERT_ROB_RE_USE ; |
---|
62 | delete [] in_INSERT_ROB_RE_NUM_REG ; |
---|
63 | // delete [] in_RETIRE_ROB_VAL ; |
---|
64 | // delete [] out_RETIRE_ROB_ACK ; |
---|
65 | // delete [] in_RETIRE_ROB_RD_OLD_USE ; |
---|
66 | // delete [] in_RETIRE_ROB_RD_OLD_NUM_REG ; |
---|
67 | // delete [] in_RETIRE_ROB_RD_NEW_USE ; |
---|
68 | // delete [] in_RETIRE_ROB_RD_NEW_NUM_REG ; |
---|
69 | // delete [] in_RETIRE_ROB_RE_OLD_USE ; |
---|
70 | // delete [] in_RETIRE_ROB_RE_OLD_NUM_REG ; |
---|
71 | // delete [] in_RETIRE_ROB_RE_NEW_USE ; |
---|
72 | // delete [] in_RETIRE_ROB_RE_NEW_NUM_REG ; |
---|
73 | } |
---|
74 | |
---|
75 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
76 | |
---|
77 | delete [] component_gpr ; |
---|
78 | delete [] component_gpr_status; |
---|
79 | delete [] component_spr ; |
---|
80 | delete [] component_spr_status; |
---|
81 | delete component_glue ; |
---|
82 | |
---|
83 | delete _component; |
---|
84 | |
---|
85 | log_printf(FUNC,Register_unit,FUNCTION,"End"); |
---|
86 | }; |
---|
87 | |
---|
88 | }; // end namespace register_unit |
---|
89 | }; // end namespace execute_loop |
---|
90 | }; // end namespace multi_execute_loop |
---|
91 | }; // end namespace core |
---|
92 | |
---|
93 | }; // end namespace behavioural |
---|
94 | }; // end namespace morpheo |
---|