1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace victim { |
---|
15 | namespace victim_pseudo_lru { |
---|
16 | |
---|
17 | void Victim_Pseudo_LRU::deallocation (void) |
---|
18 | { |
---|
19 | delete in_CLOCK; |
---|
20 | delete in_NRESET; |
---|
21 | // -----[ Interface access ]------------------------------------------- |
---|
22 | for (uint32_t i=0; i<_param._nb_access; i++) |
---|
23 | { |
---|
24 | delete in_ACCESS_VAL [i]; |
---|
25 | delete out_ACCESS_ACK [i]; |
---|
26 | if (_param._size_table>1) |
---|
27 | delete in_ACCESS_ADDRESS [i]; |
---|
28 | delete out_ACCESS_ENTITY [i]; |
---|
29 | } |
---|
30 | |
---|
31 | delete in_ACCESS_VAL ; |
---|
32 | delete out_ACCESS_ACK ; |
---|
33 | if (_param._size_table>1) |
---|
34 | delete in_ACCESS_ADDRESS; |
---|
35 | delete out_ACCESS_ENTITY ; |
---|
36 | |
---|
37 | // -----[ Interface update ]------------------------------------------- |
---|
38 | for (uint32_t i=0; i<_param._nb_update; i++) |
---|
39 | { |
---|
40 | delete in_UPDATE_VAL [i]; |
---|
41 | delete out_UPDATE_ACK [i]; |
---|
42 | if (_param._size_table>1) |
---|
43 | delete in_UPDATE_ADDRESS [i]; |
---|
44 | delete in_UPDATE_ENTITY [i]; |
---|
45 | } |
---|
46 | delete in_UPDATE_VAL ; |
---|
47 | delete out_UPDATE_ACK ; |
---|
48 | if (_param._size_table>1) |
---|
49 | delete in_UPDATE_ADDRESS; |
---|
50 | delete in_UPDATE_ENTITY ; |
---|
51 | |
---|
52 | // -----[ Register ]--------------------------------------------------- |
---|
53 | for (uint32_t i=0; i<_param._size_table; i++) |
---|
54 | { |
---|
55 | delete reg_TABLE [i]; |
---|
56 | } |
---|
57 | delete reg_TABLE; |
---|
58 | |
---|
59 | // -----[ Internal ]--------------------------------------------------- |
---|
60 | delete internal_ACCESS_ENTITY; |
---|
61 | }; |
---|
62 | |
---|
63 | }; // end namespace victim_pseudo_lru |
---|
64 | }; // end namespace victim |
---|
65 | }; // end namespace generic |
---|
66 | }; // end namespace behavioural |
---|
67 | }; // end namespace morpheo |
---|
68 | #endif |
---|