Changeset 81 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Parameters.cpp
- Timestamp:
- Apr 15, 2008, 8:40:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Parameters.cpp
-
Property
svn:keywords
set to
Id
r78 r81 7 7 8 8 #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Parameters.h" 9 #include "Common/include/Max.h" 9 10 10 11 namespace morpheo { … … 19 20 #undef FUNCTION 20 21 #define FUNCTION "Update_Prediction_Table::Parameters" 21 Parameters::Parameters () 22 Parameters::Parameters (uint32_t nb_context , 23 uint32_t * size_queue , 24 uint32_t size_address , 25 uint32_t nb_inst_predict , 26 uint32_t nb_inst_decod , 27 uint32_t nb_inst_branch_complete, 28 uint32_t nb_inst_update , 29 uint32_t size_history , 30 uint32_t * size_ras_index ) 22 31 { 23 32 log_printf(FUNC,Update_Prediction_Table,FUNCTION,"Begin"); 33 34 _nb_context = nb_context ; 35 _size_queue = size_queue ; 36 _size_address = size_address ; 37 _nb_inst_predict = nb_inst_predict ; 38 _nb_inst_decod = nb_inst_decod ; 39 _nb_inst_branch_complete = nb_inst_branch_complete; 40 _nb_inst_update = nb_inst_update ; 41 _size_history = size_history ; 42 _size_ras_index = size_ras_index ; 43 44 _size_context_id = log2(nb_context); 45 _size_depth = log2(max<uint32_t>(size_queue,nb_context)); 46 _max_size_ras_index = max<uint32_t>(_size_ras_index,nb_context); 47 48 _have_port_context_id = _size_context_id> 0; 49 _have_port_depth = _size_depth > 0; 50 _have_port_history = _size_history > 0; 51 24 52 test(); 25 53 log_printf(FUNC,Update_Prediction_Table,FUNCTION,"End"); -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.