Last change
on this file since 129 was
116,
checked in by moulu, 15 years ago
|
1) added a generic multiplier (systemC isn't working with 8bits)
2) added a partial functionnal unit vhdl.
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[112] | 1 | /* |
---|
| 2 | * $Id: Multiplier_deallocation.cpp 116 2009-04-30 13:51:41Z moulu $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Multiplier/include/Multiplier.h" |
---|
| 9 | #include "Behavioural/include/Allocation.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace multiplier { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Multiplier::deallocation" |
---|
| 19 | void Multiplier::deallocation (void) |
---|
| 20 | { |
---|
| 21 | log_begin(Multiplier,FUNCTION); |
---|
| 22 | |
---|
| 23 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 24 | { |
---|
| 25 | delete in_CLOCK ; |
---|
| 26 | delete in_NRESET; |
---|
[116] | 27 | |
---|
| 28 | DELETE0_SIGNAL(in_MULTIPLIER_DATA_IN_0,_param->_size_data); |
---|
| 29 | DELETE0_SIGNAL(in_MULTIPLIER_DATA_IN_1,_param->_size_data); |
---|
| 30 | DELETE0_SIGNAL(in_MULTIPLIER_NSTALL ,1); |
---|
| 31 | |
---|
| 32 | DELETE0_SIGNAL(out_MULTIPLIER_DATA_LSB_OUT,_param->_size_data); |
---|
| 33 | DELETE0_SIGNAL(out_MULTIPLIER_DATA_MSB_OUT,_param->_size_data); |
---|
| 34 | |
---|
[112] | 35 | } |
---|
| 36 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[116] | 37 | #ifdef SYSTEMC |
---|
| 38 | if (usage_is_set(_usage,USE_SYSTEMC_BODY)) |
---|
| 39 | { |
---|
| 40 | delete _pipeline; |
---|
| 41 | } |
---|
| 42 | #endif |
---|
[112] | 43 | |
---|
| 44 | delete _component; |
---|
| 45 | |
---|
| 46 | log_end(Multiplier,FUNCTION); |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | }; // end namespace multiplier |
---|
| 50 | }; // end namespace generic |
---|
| 51 | |
---|
| 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.