Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/src/Parameters.cpp
- Timestamp:
- May 1, 2008, 6:48:45 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/Prediction_unit_Glue/src/Parameters.cpp
r81 r82 7 7 8 8 #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/include/Parameters.h" 9 #include "Common/include/Max.h" 9 10 10 11 namespace morpheo { … … 19 20 #undef FUNCTION 20 21 #define FUNCTION "Prediction_unit_Glue::Parameters" 21 Parameters::Parameters (uint32_t nb_context , 22 uint32_t size_address , 23 uint32_t * nb_instruction , 24 uint32_t * size_depth , 25 uint32_t nb_inst_predict, 26 uint32_t nb_inst_decod , 27 uint32_t nb_inst_update ) 22 Parameters::Parameters (uint32_t nb_context , 23 uint32_t nb_decod_unit , 24 // uint32_t nb_ooo_engine , 25 uint32_t size_address , 26 uint32_t * nb_instruction , 27 uint32_t * size_depth , 28 uint32_t * nb_inst_decod , 29 // uint32_t * nb_inst_update , 30 uint32_t nb_inst_branch_predict, 31 uint32_t nb_inst_branch_decod , 32 uint32_t nb_inst_branch_update ) 28 33 { 29 34 log_printf(FUNC,Prediction_unit_Glue,FUNCTION,"Begin"); 30 35 31 _nb_context = nb_context ; 32 _size_address = size_address ; 33 _nb_instruction = nb_instruction ; 34 _size_depth = size_depth ; 35 _nb_inst_predict = nb_inst_predict ; 36 _nb_inst_decod = nb_inst_decod ; 37 _nb_inst_update = nb_inst_update ; 38 36 _nb_context = nb_context ; 37 _size_address = size_address ; 38 _nb_instruction = nb_instruction ; 39 _size_depth = size_depth ; 40 _nb_decod_unit = nb_decod_unit ; 41 _nb_inst_decod = nb_inst_decod ; 42 // _nb_ooo_engine = nb_ooo_engine ; 43 // _nb_inst_update = nb_inst_update ; 44 _nb_inst_branch_predict = nb_inst_branch_predict; 45 _nb_inst_branch_decod = nb_inst_branch_decod ; 46 _nb_inst_branch_update = nb_inst_branch_update ; 47 39 48 _size_context_id = log2(_nb_context); 40 49 _size_inst_ifetch_ptr = new uint32_t [_nb_context]; 50 _max_size_depth = max<uint32_t>(_size_depth,_nb_context); 41 51 42 52 _have_port_context_id = (_size_context_id>0); 53 _have_port_max_depth = (_max_size_depth>0); 43 54 _have_port_depth = new bool [_nb_context]; 44 55 _have_port_inst_ifetch_ptr = new bool [_nb_context];
Note: See TracChangeset
for help on using the changeset viewer.