- Timestamp:
- Mar 18, 2009, 11:36:26 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_allocation.cpp
r95 r112 2 2 * $Id$ 3 3 * 4 * [ 4 * [ Description ] 5 5 * 6 6 */ … … 28 28 _interfaces = entity->set_interfaces(); 29 29 30 // ~~~~~[ 30 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 31 { 32 32 Interface_fifo * interface = _interfaces->set_interface("" … … 40 40 } 41 41 42 // ~~~~~[ 42 // ~~~~~[ Interface : "access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 43 43 { 44 ALLOC1_INTERFACE ("access",IN,WEST, "Access", _param->_nb_access);44 ALLOC1_INTERFACE_BEGIN("access",IN,WEST, "Access", _param->_nb_access); 45 45 46 46 ALLOC1_VALACK_IN ( in_ACCESS_VAL ,VAL); … … 50 50 ALLOC1_SIGNAL_IN ( in_ACCESS_ENTITY ,"entity" ,Tentity_t ,log2(_param->_nb_entity )); 51 51 ALLOC1_SIGNAL_OUT(out_ACCESS_VICTIM ,"victim" ,Tentity_t ,log2(_param->_nb_entity )); 52 53 ALLOC1_INTERFACE_END(_param->_nb_access); 52 54 } 53 55 54 56 if (usage_is_set(_usage,USE_SYSTEMC)) 55 57 { 56 // -----[Register ]---------------------------------------------------57 reg_TABLE = new entry_t * [_param->_size_table];58 59 for (uint32_t i=0; i<_param->_size_table; i++)60 reg_TABLE [i] = new entry_t (_param->_nb_entity);61 62 // -----[Internal ]---------------------------------------------------63 internal_ACCESS_ACK = new Tcontrol_t [_param->_nb_access];64 internal_ACCESS_VICTIM = new Tentity_t [_param->_nb_access];58 // -----[ Register ]--------------------------------------------------- 59 reg_TABLE = new entry_t * [_param->_size_table]; 60 61 for (uint32_t i=0; i<_param->_size_table; i++) 62 reg_TABLE [i] = new entry_t (_param->_nb_entity); 63 64 // -----[ Internal ]--------------------------------------------------- 65 ALLOC1(internal_ACCESS_ACK ,Tcontrol_t,_param->_nb_access); 66 ALLOC1(internal_ACCESS_VICTIM,Tentity_t ,_param->_nb_access); 65 67 } 66 68 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_deallocation.cpp
r88 r112 7 7 8 8 #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" 9 #include "Behavioural/include/Allocation.h" 9 10 10 11 namespace morpheo { … … 20 21 delete in_CLOCK; 21 22 delete in_NRESET; 22 // -----[ Interface access ]-------------------------------------------23 delete [] in_ACCESS_VAL ;24 delete [] out_ACCESS_ACK ;25 if (_param->_size_address>1)26 delete [] in_ACCESS_ADDRESS;27 delete [] in_ACCESS_HIT ;28 delete [] in_ACCESS_ENTITY ;29 delete [] out_ACCESS_VICTIM ;30 31 // -----[ Register ]---------------------------------------------------32 delete [] reg_TABLE;33 23 34 // -----[ Internal ]--------------------------------------------------- 35 delete [] internal_ACCESS_ACK ; 36 delete [] internal_ACCESS_VICTIM; 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); 37 34 } 38 35 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/src/Victim_allocation.cpp
r82 r112 31 31 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 32 { 33 __ALLOC _SIGNAL(in_CLOCK ,"in_CLOCK" ,SC_CLOCK );34 __ALLOC _SIGNAL(in_NRESET,"in_NRESET",SC_IN (Tcontrol_t));33 __ALLOC0_SIGNAL(in_CLOCK ,"in_CLOCK" ,SC_CLOCK ); 34 __ALLOC0_SIGNAL(in_NRESET,"in_NRESET",SC_IN (Tcontrol_t)); 35 35 } 36 36 37 37 // ~~~~~[ Interface : "Access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 38 { 39 __ALLOC1_INTERFACE ("ACCESS",_param->_nb_access);39 __ALLOC1_INTERFACE_BEGIN("ACCESS",_param->_nb_access); 40 40 41 41 __ALLOC1_SIGNAL_IN ( in_ACCESS_VAL ,"VAL" ,Tcontrol_t); … … 46 46 __ALLOC1_SIGNAL_IN ( in_ACCESS_ENTITY ,"ENTITY" ,Tentity_t ); 47 47 __ALLOC1_SIGNAL_OUT(out_ACCESS_VICTIM ,"VICTIM" ,Tentity_t ); 48 49 __ALLOC1_INTERFACE_END(_param->_nb_access); 48 50 } 49 51 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/src/Victim_deallocation.cpp
r88 r112 7 7 8 8 #include "Behavioural/Generic/Victim/include/Victim.h" 9 #include "Behavioural/include/Allocation.h" 9 10 10 11 namespace morpheo {
Note: See TracChangeset
for help on using the changeset viewer.