Changeset 128 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer
- Timestamp:
- Jun 26, 2009, 10:43:23 AM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer
- Files:
-
- 6 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_Glue/include/Branch_Target_Buffer_Glue.h
r82 r128 82 82 public : SC_IN (Tcontrol_t ) *** in_PREDICT_REGISTER_IS_ACCURATE ; //[nb_inst_predict][associativity] 83 83 84 public : SC_IN (T ptr_t) ** in_PREDICT_SORT_VAL ; //[nb_inst_predict]84 public : SC_IN (Tcontrol_t ) ** in_PREDICT_SORT_VAL ; //[nb_inst_predict] 85 85 public : SC_IN (Tptr_t ) ** in_PREDICT_SORT_INDEX ; //[nb_inst_predict] 86 86 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Glue/src/Branch_Target_Buffer_Glue_allocation.cpp
r112 r128 74 74 if (_param->_have_port_victim) 75 75 { 76 ALLOC1_SIGNAL_IN ( in_PREDICT_SORT_VAL ,"sort_val" ,Tptr_t,1);77 ALLOC1_SIGNAL_IN ( in_PREDICT_SORT_INDEX ,"sort_index",Tptr_t,_param->_size_victim);76 ALLOC1_SIGNAL_IN ( in_PREDICT_SORT_VAL , "sort_val" ,Tcontrol_t ,1); 77 ALLOC1_SIGNAL_IN ( in_PREDICT_SORT_INDEX , "sort_index" ,Tptr_t ,_param->_size_victim); 78 78 79 79 ALLOC1_SIGNAL_OUT(out_PREDICT_VICTIM_VAL , "victim_val" ,Tcontrol_t , 1); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Glue/src/Branch_Target_Buffer_Glue_genMealy_predict.cpp
r123 r128 38 38 log_printf(TRACE,Branch_Target_Buffer_Glue,FUNCTION," * val : %d",val ); 39 39 log_printf(TRACE,Branch_Target_Buffer_Glue,FUNCTION," * register_ack : %d",register_ack); 40 log_printf(TRACE,Branch_Target_Buffer_Glue,FUNCTION," * port_victim : %d",_param->_have_port_victim); 40 41 log_printf(TRACE,Branch_Target_Buffer_Glue,FUNCTION," * sort_val : %d",sort_val ); 41 42 log_printf(TRACE,Branch_Target_Buffer_Glue,FUNCTION," * victim_ack : %d",victim_ack ); … … 51 52 52 53 // Multiplexor 54 53 55 PORT_WRITE(out_PREDICT_HIT [i],hit); 54 56 PORT_WRITE(out_PREDICT_ADDRESS_SRC [i],address_src); … … 64 66 victim_ack 65 67 )); 68 66 69 PORT_WRITE(out_PREDICT_REGISTER_VAL [i], ( 67 70 val and … … 84 87 PORT_WRITE(out_PREDICT_VICTIM_INDEX [i], index); 85 88 } 89 86 90 } 87 91 } -
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_transition.cpp
r107 r128 29 29 for (uint32_t i=0; i<_param->_size_bank; i++) 30 30 for (uint32_t j=0; j<_param->_associativity; j++) 31 reg_BTB [i][j]._val = false; 31 { 32 reg_BTB [i][j]._val = false; 33 reg_BTB [i][j]._context = 0; // not necessary 34 reg_BTB [i][j]._address_dest_val = 0; // not necessary 35 reg_BTB [i][j]._address_src = 0; // not necessary 36 reg_BTB [i][j]._address_dest = 0; // not necessary 37 reg_BTB [i][j]._condition = 0; // not necessary 38 reg_BTB [i][j]._last_take = 0; // not necessary 39 reg_BTB [i][j]._accurate = 0; // not necessary 40 } 32 41 } 33 42 else -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/src/Branch_Target_Buffer_deallocation.cpp
r115 r128 64 64 { 65 65 for (uint32_t i=0; i<_param->_nb_inst_predict; i++) 66 delete_component_sort [i];66 delete _component_sort [i]; 67 67 delete [] _component_sort; 68 delete _component_victim;68 delete _component_victim; 69 69 } 70 70 delete _component_branch_target_buffer_glue; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/src/Branch_Target_Buffer_statistics_allocation.cpp
r88 r128 35 35 } 36 36 37 //_stat->add_stat(_component_branch_target_buffer_glue ->_stat);37 _stat->add_stat(_component_branch_target_buffer_glue ->_stat); 38 38 _stat->add_stat(_component_branch_target_buffer_register->_stat); 39 39
Note: See TracChangeset
for help on using the changeset viewer.