Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/src/Branch_Target_Buffer_Register_genMealy_predict.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/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/src/Branch_Target_Buffer_Register_genMealy_predict.cpp
r81 r88 22 22 void Branch_Target_Buffer_Register::genMealy_predict (void) 23 23 { 24 log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"Begin"); 25 24 log_begin(Branch_Target_Buffer_Register,FUNCTION); 25 log_function(Branch_Target_Buffer_Register,FUNCTION,_name.c_str()); 26 26 27 for (uint32_t i=0; i<_param->_nb_inst_predict; i++) 27 28 { 29 log_printf(TRACE,Branch_Target_Buffer_Register,FUNCTION," * PREDICT [%d]",i); 28 30 Tcontext_t context = (_param->_have_port_context_id)?PORT_READ(in_PREDICT_CONTEXT_ID [i]):0; 29 31 Tgeneral_data_t address = PORT_READ(in_PREDICT_ADDRESS [i]); … … 33 35 Tgeneral_data_t address_offset = (address >> _param->_shift_offset)&_param->_mask_offset; 34 36 35 // log_printf(TRACE,Branch_Target_Buffer_Register,FUNCTION,"address_ (tag, bank, offset) : %.8x %.8x %.8x",address_tag,num_bank, address_offset);37 log_printf(TRACE,Branch_Target_Buffer_Register,FUNCTION," * address_ (tag, bank, offset) : %.8x %.8x %.8x",address_tag,num_bank, address_offset); 36 38 37 39 for (uint32_t j=0; j<_param->_associativity; j++) … … 46 48 (address_src_offset >= address_offset)); 47 49 48 // log_printf(TRACE,Branch_Target_Buffer_Register,FUNCTION,"address_src (tag, bank, offset) : %.8x %.8x %.8x - hit : %d",address_src_tag,num_bank,address_src_offset, hit);50 log_printf(TRACE,Branch_Target_Buffer_Register,FUNCTION," * address_src (tag, bank, offset) : %.8x %.8x %.8x - hit : %d",address_src_tag,num_bank,address_src_offset, hit); 49 51 50 52 // Hit : … … 62 64 } 63 65 64 log_ printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"End");66 log_end(Branch_Target_Buffer_Register,FUNCTION); 65 67 }; 66 68
Note: See TracChangeset
for help on using the changeset viewer.