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