Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Parameters.cpp
r81 r88 30 30 }; 31 31 32 Parameters::Parameters (Parameters & param): 33 _nb_entity (param._nb_entity ), 34 _nb_access (param._nb_access ), 35 // _nb_update (param._nb_update ), 36 _size_table (param._size_table), 37 _table_global(param._table_global), 38 _size_address(param._size_address) 39 { 40 test(); 32 // Parameters::Parameters (Parameters & param): 33 // _nb_entity (param._nb_entity ), 34 // _nb_access (param._nb_access ), 35 // // _nb_update (param._nb_update ), 36 // _size_table (param._size_table), 37 // _table_global(param._table_global), 38 // _size_address(param._size_address) 39 // { 40 // test(); 41 // }; 42 43 Parameters::~Parameters () 44 { 41 45 }; 42 46 43 Parameters::~Parameters () 44 { }; 47 void Parameters::copy (void) 48 { 49 }; 45 50 46 51 }; // end namespace victim_pseudo_lru -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU.cpp
r82 r88 32 32 log_printf(FUNC,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Begin"); 33 33 34 #ifdef SYSTEMC 34 #if DEBUG_Victim_Pseudo_LRU == true 35 log_printf(INFO,Victim_Pseudo_LRU,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 37 std::cout << *param << std::endl; 38 #endif 39 35 40 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Allocation"); 36 41 allocation (); 37 #endif38 42 39 43 #ifdef STATISTICS 40 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Allocation of statistics"); 41 42 // Allocation of statistics 43 statistics_declaration(param_statistics); 44 if (usage_is_set(_usage,USE_STATISTICS)) 45 { 46 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Allocation of statistics"); 47 48 // Allocation of statistics 49 statistics_declaration(param_statistics); 50 } 44 51 #endif 45 52 46 53 #ifdef VHDL 47 // generate the vhdl 48 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Generation of VHDL"); 49 vhdl(); 54 if (usage_is_set(_usage,USE_VHDL)) 55 { 56 // generate the vhdl 57 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Generation of VHDL"); 58 vhdl(); 59 } 50 60 #endif 51 61 52 62 #ifdef SYSTEMC 53 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Definition of sc_method"); 54 SC_METHOD (transition); 55 dont_initialize (); 56 sensitive << (*(in_CLOCK)).pos(); 57 58 SC_METHOD (genMoore); 59 dont_initialize (); 60 sensitive << (*(in_CLOCK)).neg(); 61 62 #ifdef SYSTEMCASS_SPECIFIC 63 #endif 64 63 if (usage_is_set(_usage,USE_SYSTEMC)) 64 { 65 65 // Constant - ack is always at one 66 66 for (uint32_t i=0; i<_param->_nb_access; i++) … … 70 70 } 71 71 72 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Definition of sc_method"); 73 SC_METHOD (transition); 74 dont_initialize (); 75 sensitive << (*(in_CLOCK)).pos(); 76 77 SC_METHOD (genMealy); 78 dont_initialize (); 79 sensitive << (*(in_CLOCK)).neg(); 80 for (uint32_t i=0; i<_param->_nb_access; i++) 81 if (_param->_size_table>1) 82 sensitive << (*(in_ACCESS_ADDRESS[i])); 83 84 #ifdef SYSTEMCASS_SPECIFIC 85 if (_param->_size_table>1) 86 for (uint32_t i=0; i<_param->_nb_access; i++) 87 (*(out_ACCESS_VICTIM[i])) (*(in_ACCESS_ADDRESS[i])); 88 #endif 89 } 72 90 #endif 73 91 log_printf(FUNC,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","End"); … … 77 95 { 78 96 log_printf(FUNC,Victim_Pseudo_LRU,"~Victim_Pseudo_LRU","Begin"); 79 #ifdef SYSTEMC 97 80 98 deallocation (); 81 #endif 99 82 100 83 101 #ifdef STATISTICS 84 delete _stat; 102 if (usage_is_set(_usage,USE_STATISTICS)) 103 delete _stat; 85 104 #endif 86 105 log_printf(FUNC,Victim_Pseudo_LRU,"~Victim_Pseudo_LRU","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_allocation.cpp
r82 r88 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ … … 53 52 } 54 53 54 if (usage_is_set(_usage,USE_SYSTEMC)) 55 { 55 56 // -----[ Register ]--------------------------------------------------- 56 57 reg_TABLE = new entry_t * [_param->_size_table]; … … 62 63 internal_ACCESS_ACK = new Tcontrol_t [_param->_nb_access]; 63 64 internal_ACCESS_VICTIM = new Tentity_t [_param->_nb_access]; 65 } 64 66 65 67 #ifdef POSITION 66 _component->generate_file(); 68 if (usage_is_set(_usage,USE_POSITION)) 69 _component->generate_file(); 67 70 #endif 68 71 }; … … 74 77 }; // end namespace behavioural 75 78 }; // end namespace morpheo 76 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_deallocation.cpp
r81 r88 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ … … 17 16 void Victim_Pseudo_LRU::deallocation (void) 18 17 { 18 if (usage_is_set(_usage,USE_SYSTEMC)) 19 { 19 20 delete in_CLOCK; 20 21 delete in_NRESET; … … 34 35 delete [] internal_ACCESS_ACK ; 35 36 delete [] internal_ACCESS_VICTIM; 37 } 36 38 37 39 delete _component; … … 43 45 }; // end namespace behavioural 44 46 }; // end namespace morpheo 45 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_end_cycle.cpp
r81 r88 22 22 23 23 #ifdef STATISTICS 24 _stat->end_cycle(); 24 if (usage_is_set(_usage,USE_STATISTICS)) 25 _stat->end_cycle(); 25 26 #endif 26 27 … … 28 29 // Evaluation before read the ouput signal 29 30 // sc_start(0); 30 _interfaces->testbench(); 31 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 32 _interfaces->testbench(); 31 33 #endif 32 34 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_genMealy.cpp
r87 r88 15 15 namespace victim_pseudo_lru { 16 16 17 void Victim_Pseudo_LRU::genM oore(void)17 void Victim_Pseudo_LRU::genMealy (void) 18 18 { 19 19 for (uint32_t i=0; i<_param->_nb_access; i++)
Note: See TracChangeset
for help on using the changeset viewer.