Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/Select/Priority_Fixed/include/Priority_Fixed.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace select { |
---|
15 | namespace priority_fixed { |
---|
16 | |
---|
17 | |
---|
18 | void Priority_Fixed::deallocation (void) |
---|
19 | { |
---|
20 | log_printf(FUNC,Priority_Fixed,"deallocation","Begin"); |
---|
21 | |
---|
22 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
23 | delete in_CLOCK; |
---|
24 | //#endif |
---|
25 | |
---|
26 | for (uint32_t i=0; i<_param._nb_entity; i++) |
---|
27 | { |
---|
28 | delete in_VAL [i]; |
---|
29 | if (_param._encoding_one_hot) |
---|
30 | delete out_ACK [i]; |
---|
31 | } |
---|
32 | |
---|
33 | delete in_VAL; |
---|
34 | if (_param._encoding_one_hot) |
---|
35 | delete out_ACK; |
---|
36 | if (_param._encoding_compact) |
---|
37 | { |
---|
38 | delete out_ENTITY; |
---|
39 | delete out_ENTITY_ACK; |
---|
40 | } |
---|
41 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
42 | |
---|
43 | log_printf(FUNC,Priority_Fixed,"deallocation","End"); |
---|
44 | }; |
---|
45 | |
---|
46 | }; // end namespace priority_fixed |
---|
47 | }; // end namespace select |
---|
48 | }; // end namespace generic |
---|
49 | |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.