Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h
r110 r123 91 91 public : SC_IN (Tspecial_address_t) ** in_PUSH_SPR_NUM_REG; 92 92 93 // ~~~~~[ interface : "info" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 #ifdef DEBUG_TEST 95 public : SC_OUT(uint32_t ) * out_INFO_NB_GPR_FREE; 96 public : SC_OUT(uint32_t ) * out_INFO_NB_SPR_FREE; 97 #endif 98 93 99 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 100 private : generic::priority::Priority * _priority_gpr; … … 141 147 #ifdef SYSTEMC 142 148 public : void transition (void); 149 #ifdef DEBUG_TEST 150 public : void genMoore (void); 151 #endif 143 152 public : void genMealy_pop (void); 144 153 public : void genMealy_push_gpr (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit.cpp
r110 r123 39 39 log_printf(FUNC,Free_List_unit,FUNCTION,"Begin"); 40 40 41 #if DEBUG_Free_List_unit == true42 log_printf(INFO,Free_List_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());41 // #if DEBUG_Free_List_unit == true 42 // log_printf(INFO,Free_List_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 43 43 44 std::cout << *param << std::endl;45 #endif44 // std::cout << *param << std::endl; 45 // #endif 46 46 47 47 log_printf(INFO,Free_List_unit,FUNCTION,"Allocation"); … … 85 85 # endif 86 86 87 #ifdef DEBUG_TEST 88 log_printf(INFO,Free_List_unit,FUNCTION,"Method - genMoore"); 89 90 SC_METHOD (genMoore); 91 dont_initialize (); 92 sensitive << (*(in_CLOCK)).neg(); 93 94 # ifdef SYSTEMCASS_SPECIFIC 95 // List dependency information 96 # endif 97 #endif 87 98 log_printf(INFO,Free_List_unit,FUNCTION,"Method - genMealy_pop"); 88 99 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_allocation.cpp
r112 r123 92 92 } 93 93 94 // ~~~~~[ interface : "info" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 95 #ifdef DEBUG_TEST 96 { 97 ALLOC0_INTERFACE_BEGIN("info",OUT, NORTH, _("Information")); 98 99 ALLOC0_SIGNAL_OUT(out_INFO_NB_GPR_FREE,"nb_gpr_free",uint32_t,_param->_size_general_register+1); 100 ALLOC0_SIGNAL_OUT(out_INFO_NB_SPR_FREE,"nb_spr_free",uint32_t,_param->_size_special_register+1); 101 102 ALLOC0_INTERFACE_END(); 103 } 104 #endif 105 94 106 if (usage_is_set(_usage,USE_SYSTEMC)) 95 107 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_deallocation.cpp
r112 r123 45 45 DELETE1_SIGNAL( in_PUSH_SPR_NUM_REG,_param->_nb_push,_param->_size_special_register); 46 46 47 #ifdef DEBUG_TEST 48 DELETE0_SIGNAL(out_INFO_NB_GPR_FREE,_param->_size_general_register+1); 49 DELETE0_SIGNAL(out_INFO_NB_SPR_FREE,_param->_size_special_register+1); 50 #endif 51 47 52 DELETE1(_gpr_list ,_param->_nb_bank); 48 53 DELETE1(_spr_list ,_param->_nb_bank); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_genMealy_pop.cpp
r109 r123 26 26 log_function(Free_List_unit,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 std::list<generic::priority::select_t> * select_gpr = _priority_gpr->select(); 29 31 std::list<generic::priority::select_t>::iterator it_gpr=select_gpr->begin(); … … 32 34 std::list<generic::priority::select_t>::iterator it_spr=select_spr->begin(); 33 35 34 for (uint32_t i=0; i<_param->_nb_pop; i++)36 for (uint32_t i=0; i<_param->_nb_pop; i++) 35 37 { 36 38 log_printf(TRACE,Free_List_unit,FUNCTION," * POP [%d]",i); … … 104 106 105 107 internal_POP_ACK [i] = gpr_ack and spr_ack; 106 PORT_WRITE(out_POP_ACK [i], internal_POP_ACK [i]);107 108 } 108 109 … … 177 178 // PORT_WRITE(out_POP_ACK [i], internal_POP_ACK [i]); 178 179 // } 179 180 } 181 else 182 { 183 for (uint32_t i=0; i<_param->_nb_pop; i++) 184 internal_POP_ACK [i] = 0; 185 } 186 187 for (uint32_t i=0; i<_param->_nb_pop; i++) 188 PORT_WRITE(out_POP_ACK [i], internal_POP_ACK [i]); 189 180 190 181 191 log_end(Free_List_unit,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_genMealy_push_gpr.cpp
r108 r123 26 26 log_function(Free_List_unit,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 // bank conflit 29 31 bool bank_use [_param->_nb_bank]; … … 59 61 60 62 internal_PUSH_GPR_ACK [i] = gpr_ack; 61 PORT_WRITE(out_PUSH_GPR_ACK [i], internal_PUSH_GPR_ACK [i]);62 63 } 64 } 65 else 66 { 67 for (uint32_t i=0; i<_param->_nb_push; i++) 68 internal_PUSH_GPR_ACK [i] = 0; 69 } 70 71 for (uint32_t i=0; i<_param->_nb_push; i++) 72 PORT_WRITE(out_PUSH_GPR_ACK [i], internal_PUSH_GPR_ACK [i]); 63 73 64 74 log_end(Free_List_unit,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Free_List_unit_genMealy_push_spr.cpp
r108 r123 26 26 log_function(Free_List_unit,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 bool bank_use [_param->_nb_bank]; 29 31 for (uint32_t i=0; i<_param->_nb_bank; i++) … … 51 53 52 54 internal_PUSH_SPR_ACK [i] = spr_ack; 53 PORT_WRITE(out_PUSH_SPR_ACK [i], internal_PUSH_SPR_ACK [i]);54 55 } 55 56 } 57 else 58 { 59 for (uint32_t i=0; i<_param->_nb_push; i++) 60 internal_PUSH_SPR_ACK [i] = 0; 61 } 62 63 for (uint32_t i=0; i<_param->_nb_push; i++) 64 PORT_WRITE(out_PUSH_SPR_ACK [i], internal_PUSH_SPR_ACK [i]); 65 56 66 log_end(Free_List_unit,FUNCTION); 57 67 };
Note: See TracChangeset
for help on using the changeset viewer.