Last change
on this file since 98 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
|
Rev | Line | |
---|
[2] | 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 | { |
---|
[88] | 18 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 19 | { |
---|
[2] | 20 | #if (defined(STATISTICS) || defined (VHDL_TESTBENCH)) |
---|
[42] | 21 | delete in_CLOCK; |
---|
[2] | 22 | #endif |
---|
| 23 | |
---|
[42] | 24 | delete [] in_SHIFTER_DATA ; |
---|
[82] | 25 | if (_param->_shift_value == 0) |
---|
[42] | 26 | delete [] in_SHIFTER_SHIFT ; |
---|
[82] | 27 | if (_param->_direction == external_direction ) |
---|
[42] | 28 | delete [] in_SHIFTER_DIRECTION ; |
---|
[82] | 29 | if (_param->_rotate == external_rotate ) |
---|
[42] | 30 | delete [] in_SHIFTER_TYPE ; |
---|
[82] | 31 | if (_param->_carry == external_carry ) |
---|
[42] | 32 | delete [] in_SHIFTER_CARRY ; |
---|
[82] | 33 | if (_param->_carry == external_completion) |
---|
| 34 | if (_param->_type_completion_bool == true) |
---|
[42] | 35 | delete [] in_SHIFTER_CARRY_IN ; |
---|
| 36 | else |
---|
| 37 | delete [] in_SHIFTER_COMPLETION; |
---|
| 38 | delete [] out_SHIFTER_DATA ; |
---|
[88] | 39 | } |
---|
[42] | 40 | |
---|
| 41 | delete _component; |
---|
| 42 | |
---|
[2] | 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.