Last change
on this file since 106 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Shifter_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Shifter/include/Shifter.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace generic { |
---|
13 | namespace shifter { |
---|
14 | |
---|
15 | |
---|
16 | void Shifter::deallocation (void) |
---|
17 | { |
---|
18 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
19 | { |
---|
20 | #if (defined(STATISTICS) || defined (VHDL_TESTBENCH)) |
---|
21 | delete in_CLOCK; |
---|
22 | #endif |
---|
23 | |
---|
24 | delete [] in_SHIFTER_DATA ; |
---|
25 | if (_param->_shift_value == 0) |
---|
26 | delete [] in_SHIFTER_SHIFT ; |
---|
27 | if (_param->_direction == external_direction ) |
---|
28 | delete [] in_SHIFTER_DIRECTION ; |
---|
29 | if (_param->_rotate == external_rotate ) |
---|
30 | delete [] in_SHIFTER_TYPE ; |
---|
31 | if (_param->_carry == external_carry ) |
---|
32 | delete [] in_SHIFTER_CARRY ; |
---|
33 | if (_param->_carry == external_completion) |
---|
34 | if (_param->_type_completion_bool == true) |
---|
35 | delete [] in_SHIFTER_CARRY_IN ; |
---|
36 | else |
---|
37 | delete [] in_SHIFTER_COMPLETION; |
---|
38 | delete [] out_SHIFTER_DATA ; |
---|
39 | } |
---|
40 | |
---|
41 | delete _component; |
---|
42 | |
---|
43 | }; |
---|
44 | |
---|
45 | }; // end namespace shifter |
---|
46 | }; // end namespace generic |
---|
47 | |
---|
48 | }; // end namespace behavioural |
---|
49 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.