Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod.cpp
r81 r88 38 38 log_printf(FUNC,Decod,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Decod == true 41 log_printf(INFO,Decod,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 std::cout << *param << std::endl; 44 #endif 45 40 46 log_printf(INFO,Decod,FUNCTION,"Allocation"); 41 47 … … 47 53 48 54 #ifdef STATISTICS 49 if ( _usage & USE_STATISTICS)55 if (usage_is_set(_usage,USE_STATISTICS)) 50 56 { 51 57 log_printf(INFO,Decod,FUNCTION,"Allocation of statistics"); … … 56 62 57 63 #ifdef VHDL 58 if ( _usage & USE_VHDL)64 if (usage_is_set(_usage,USE_VHDL)) 59 65 { 60 66 // generate the vhdl … … 66 72 67 73 #ifdef SYSTEMC 68 if ( _usage & USE_SYSTEMC)74 if (usage_is_set(_usage,USE_SYSTEMC)) 69 75 { 70 76 log_printf(INFO,Decod,FUNCTION,"Method - transition"); … … 95 101 if (_param->_have_port_context_id) 96 102 sensitive << (*(in_IFETCH_CONTEXT_ID [i])); 97 if (_param->_have_port_ branch_update_prediction_id)103 if (_param->_have_port_depth) 98 104 sensitive << (*(in_IFETCH_BRANCH_UPDATE_PREDICTION_ID [i])); 99 105 if (_param->_have_port_depth) … … 110 116 111 117 # ifdef SYSTEMCASS_SPECIFIC 118 /* 112 119 // List dependency information 113 120 … … 162 169 } 163 170 164 if (_param->_have_port_depth) 165 { 166 for (uint32_t x=0; x<_param->_nb_context; x++) 167 { 171 for (uint32_t x=0; x<_param->_nb_context; x++) 172 { 173 if (_param->_have_port_depth[i]) 174 { 175 168 176 (*(out_DECOD_DEPTH [i])) (*(in_CONTEXT_DECOD_ENABLE [x])); 169 177 (*(out_DECOD_DEPTH [i])) (*(in_CONTEXT_DEPTH [x])); … … 402 410 if (_param->_have_port_context_id) 403 411 (*(out_PREDICT_MATCH_INST_IFETCH_PTR [i])) (*(in_IFETCH_CONTEXT_ID [x])); 404 if (_param->_have_port_inst_ifetch_ptr )412 if (_param->_have_port_inst_ifetch_ptr[i]) 405 413 (*(out_PREDICT_MATCH_INST_IFETCH_PTR [i])) (*(in_IFETCH_INST_IFETCH_PTR [x])); 406 414 for (uint32_t y=0; y<_param->_nb_inst_fetch [x]; y++) … … 601 609 } 602 610 } 603 611 */ 604 612 # endif 605 613 … … 617 625 618 626 #ifdef STATISTICS 619 if ( _usage & USE_STATISTICS)627 if (usage_is_set(_usage,USE_STATISTICS)) 620 628 { 621 629 statistics_deallocation();
Note: See TracChangeset
for help on using the changeset viewer.