[78] | 1 | /* |
---|
| 2 | * $Id: Victim_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Victim/include/Victim.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace victim { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Victim::deallocation" |
---|
| 18 | void Victim::deallocation (void) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Victim,FUNCTION,"Begin"); |
---|
| 21 | |
---|
| 22 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 23 | switch (_param->_victim_scheme) |
---|
| 24 | { |
---|
| 25 | // case VICTIM_RANDOM : delete _component_victim_random ; break; |
---|
| 26 | // case VICTIM_ROUND_ROBIN : delete _component_victim_round_robin; break; |
---|
| 27 | // case VICTIM_NLU : delete _component_victim_nlu ; break; |
---|
| 28 | case VICTIM_PSEUDO_LRU : delete _component_victim_pseudo_lru ; break; |
---|
| 29 | // case VICTIM_LRU : delete _component_victim_lru ; break; |
---|
| 30 | // case VICTIM_FIFO : delete _component_victim_fifo ; break; |
---|
| 31 | default : break; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | if (_usage & USE_SYSTEMC) |
---|
| 35 | { |
---|
| 36 | delete in_CLOCK ; |
---|
| 37 | delete in_NRESET; |
---|
| 38 | |
---|
| 39 | delete [] in_ACCESS_VAL ; |
---|
| 40 | delete [] out_ACCESS_ACK ; |
---|
| 41 | if (_param->_have_port_address) |
---|
| 42 | delete [] in_ACCESS_ADDRESS; |
---|
| 43 | delete [] in_ACCESS_HIT ; |
---|
| 44 | delete [] in_ACCESS_ENTITY ; |
---|
| 45 | delete [] out_ACCESS_VICTIM ; |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | log_printf(FUNC,Victim,FUNCTION,"End"); |
---|
| 50 | }; |
---|
| 51 | |
---|
| 52 | }; // end namespace victim |
---|
| 53 | }; // end namespace generic |
---|
| 54 | |
---|
| 55 | }; // end namespace behavioural |
---|
| 56 | }; // end namespace morpheo |
---|