[10] | 1 | /* |
---|
| 2 | * $Id: Victim_Pseudo_LRU_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
| 3 | * |
---|
[78] | 4 | * [ Description ] |
---|
[10] | 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" |
---|
[112] | 9 | #include "Behavioural/include/Allocation.h" |
---|
[10] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace victim { |
---|
[15] | 15 | namespace victim_pseudo_lru { |
---|
[10] | 16 | |
---|
[15] | 17 | void Victim_Pseudo_LRU::deallocation (void) |
---|
[10] | 18 | { |
---|
[88] | 19 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 20 | { |
---|
[42] | 21 | delete in_CLOCK; |
---|
| 22 | delete in_NRESET; |
---|
[10] | 23 | |
---|
[112] | 24 | DELETE1_SIGNAL( in_ACCESS_VAL ,_param->_nb_access,1); |
---|
| 25 | DELETE1_SIGNAL(out_ACCESS_ACK ,_param->_nb_access,1); |
---|
| 26 | DELETE1_SIGNAL( in_ACCESS_HIT ,_param->_nb_access,1); |
---|
| 27 | DELETE1_SIGNAL( in_ACCESS_ADDRESS,_param->_nb_access,log2(_param->_size_address)); |
---|
| 28 | DELETE1_SIGNAL( in_ACCESS_ENTITY ,_param->_nb_access,log2(_param->_nb_entity )); |
---|
| 29 | DELETE1_SIGNAL(out_ACCESS_VICTIM ,_param->_nb_access,log2(_param->_nb_entity )); |
---|
| 30 | |
---|
| 31 | DELETE1(reg_TABLE ,_param->_size_table); |
---|
| 32 | DELETE1(internal_ACCESS_ACK ,_param->_nb_access); |
---|
| 33 | DELETE1(internal_ACCESS_VICTIM,_param->_nb_access); |
---|
[88] | 34 | } |
---|
[42] | 35 | |
---|
| 36 | delete _component; |
---|
[10] | 37 | }; |
---|
| 38 | |
---|
[15] | 39 | }; // end namespace victim_pseudo_lru |
---|
[10] | 40 | }; // end namespace victim |
---|
| 41 | }; // end namespace generic |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|