Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/SelfTest/src/test.cpp
r113 r131 23 23 morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,50); 24 24 #endif 25 26 _model.set_model(MODEL_SYSTEMC, true); 25 27 26 28 Tusage_t _usage = USE_ALL; … … 180 182 TEST(Tcontrol_t, out_EVENT_ACK->read() , true ); // can receveive an event 181 183 184 #ifdef SELFTEST 182 185 uint32_t jump = 7 ;// packet 183 186 uint32_t nb_packet = 1; … … 412 415 413 416 SC_START(1); 414 415 417 } 418 #else 419 SC_START(100); 420 #endif // SELFTEST 416 421 417 422 /******************************************************** -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Address_management.h
r101 r131 167 167 168 168 #ifdef SYSTEMC 169 public : void constant (void); 169 170 public : void transition (void); 170 171 public : void genMoore (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Address_management.cpp
r123 r131 74 74 if (usage_is_set(_usage,USE_SYSTEMC)) 75 75 { 76 // Affect output constant 77 internal_EVENT_ACK = 1; 78 PORT_WRITE(out_EVENT_ACK, internal_EVENT_ACK); 76 #ifdef SYSTEMCASS_SPECIFIC 77 constant(); 78 #else 79 log_printf(INFO,Address_management,FUNCTION,"Method - constant"); 80 81 SC_METHOD (constant); 82 // dont_initialize (); 83 84 # ifdef SYSTEMCASS_SPECIFIC 85 // List dependency information 86 # endif 87 #endif 79 88 80 89 log_printf(INFO,Address_management,FUNCTION,"Method - transition"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/SelfTest/src/test.cpp
r113 r131 107 107 ALLOC0_SC_SIGNAL(out_DECOD_BRANCH_STATE ,"out_DECOD_BRANCH_STATE ",Tbranch_state_t ); 108 108 ALLOC0_SC_SIGNAL(out_DECOD_BRANCH_UPDATE_PREDICTION_ID ,"out_DECOD_BRANCH_UPDATE_PREDICTION_ID ",Tprediction_ptr_t ); 109 ALLOC0_SC_SIGNAL(out_DECOD_EXCEPTION ,"out_DECOD_EXCEPTION ",T prediction_ptr_t);109 ALLOC0_SC_SIGNAL(out_DECOD_EXCEPTION ,"out_DECOD_EXCEPTION ",Texception_t ); 110 110 ALLOC0_SC_SIGNAL( in_ICACHE_RSP_VAL ," in_ICACHE_RSP_VAL ",Tcontrol_t ); 111 111 ALLOC0_SC_SIGNAL(out_ICACHE_RSP_ACK ,"out_ICACHE_RSP_ACK ",Tcontrol_t ); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h
r82 r131 145 145 146 146 #ifdef SYSTEMC 147 public : void constant (void); 147 148 public : void transition (void); 148 149 public : void genMoore (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue.cpp
r123 r131 74 74 if (usage_is_set(_usage,USE_SYSTEMC)) 75 75 { 76 // constant output 77 internal_ICACHE_RSP_ACK = 1; 78 internal_EVENT_RESET_ACK = 1; 76 log_printf(INFO,Ifetch_queue,FUNCTION,_("<%s> Method - constant"),_name.c_str()); 79 77 80 PORT_WRITE(out_ICACHE_RSP_ACK , internal_ICACHE_RSP_ACK ); 81 PORT_WRITE(out_EVENT_RESET_ACK, internal_EVENT_RESET_ACK); 78 SC_METHOD (constant); 79 // dont_initialize (); 80 81 # ifdef SYSTEMCASS_SPECIFIC 82 // List dependency information 83 # endif 82 84 83 85 log_printf(INFO,Ifetch_queue,FUNCTION,_("<%s> Method - transition"),_name.c_str()); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/include/Ifetch_unit_Glue.h
r85 r131 123 123 124 124 #ifdef SYSTEMC 125 public : void constant (void); 125 126 # if defined(STATISTICS) or defined(VHDL_TESTBENCH) 126 127 public : void transition (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue.cpp
r123 r131 74 74 if (usage_is_set(_usage,USE_SYSTEMC)) 75 75 { 76 // Write constant 77 PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD); 76 #ifdef SYSTEMCASS_SPECIFIC 77 constant(); 78 #else 79 log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Method - constant"); 80 81 SC_METHOD (constant); 82 // dont_initialize (); 83 84 # ifdef SYSTEMCASS_SPECIFIC 85 // List dependency information 86 # endif 87 #endif 78 88 79 89 # if defined(STATISTICS) or defined(VHDL_TESTBENCH) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/src/Ifetch_unit_allocation.cpp
r112 r131 156 156 { 157 157 name = _name+"_address_management"; 158 log_printf(I fetch_unit,Core,FUNCTION,_("Create : %s"),name.c_str());159 158 log_printf(INFO,Ifetch_unit,FUNCTION,_("Create : %s"),name.c_str()); 159 160 160 _component_address_management = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::address_management::Address_management 161 161 (name.c_str() … … 165 165 ,_param->_param_address_management 166 166 ,_usage); 167 167 168 168 _component->set_component (_component_address_management->_component 169 169 #ifdef POSITION … … 175 175 { 176 176 name = _name+"_ifetch_queue"; 177 log_printf(I fetch_unit,Core,FUNCTION,_("Create : %s"),name.c_str());178 177 log_printf(INFO,Ifetch_unit,FUNCTION,_("Create : %s"),name.c_str()); 178 179 179 _component_ifetch_queue = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::ifetch_queue::Ifetch_queue 180 180 (name.c_str() … … 184 184 ,_param->_param_ifetch_queue 185 185 ,_usage); 186 186 187 187 _component->set_component (_component_ifetch_queue->_component 188 188 #ifdef POSITION … … 194 194 { 195 195 name = _name+"_ifetch_unit_glue"; 196 log_printf(I fetch_unit,Core,FUNCTION,_("Create : %s"),name.c_str());197 196 log_printf(INFO,Ifetch_unit,FUNCTION,_("Create : %s"),name.c_str()); 197 198 198 _component_ifetch_unit_glue = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::ifetch_unit_glue::Ifetch_unit_Glue 199 199 (name.c_str() … … 203 203 ,_param->_param_ifetch_unit_glue 204 204 ,_usage); 205 205 206 206 _component->set_component (_component_ifetch_unit_glue->_component 207 207 #ifdef POSITION … … 219 219 { 220 220 src = _name+"_address_management"; 221 log_printf(INFO, Core,FUNCTION,_("Instance : %s"),src.c_str());221 log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str()); 222 222 223 223 { … … 337 337 { 338 338 src = _name+"_ifetch_queue"; 339 log_printf(INFO, Core,FUNCTION,_("Instance : %s"),src.c_str());339 log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str()); 340 340 341 341 { … … 459 459 { 460 460 src = _name+"_ifetch_unit_glue"; 461 log_printf(INFO, Core,FUNCTION,_("Instance : %s"),src.c_str());461 log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str()); 462 462 463 463 {
Note: See TracChangeset
for help on using the changeset viewer.