Last change
on this file since 127 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
1004 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Counter_deallocation.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Counter/include/Counter.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace counter { |
---|
15 | |
---|
16 | |
---|
17 | void Counter::deallocation (void) |
---|
18 | { |
---|
19 | log_printf(FUNC,Counter,"deallocation","Begin"); |
---|
20 | |
---|
21 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
22 | { |
---|
23 | delete in_CLOCK; |
---|
24 | delete in_NRESET; |
---|
25 | |
---|
26 | DELETE1_SIGNAL( in_COUNTER_DATA , _param->_nb_port,_param->_size_data); |
---|
27 | DELETE1_SIGNAL( in_COUNTER_ADDSUB, _param->_nb_port,1 ); |
---|
28 | DELETE1_SIGNAL(out_COUNTER_DATA , _param->_nb_port,_param->_size_data); |
---|
29 | } |
---|
30 | |
---|
31 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
32 | |
---|
33 | delete _component; |
---|
34 | |
---|
35 | log_printf(FUNC,Counter,"deallocation","End"); |
---|
36 | }; |
---|
37 | |
---|
38 | }; // end namespace counter |
---|
39 | }; // end namespace generic |
---|
40 | |
---|
41 | }; // end namespace behavioural |
---|
42 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.