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/Parameters.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 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/Branch_Target_Buffer/Branch_Target_Buffer_Register/src/Parameters.cpp
r81 r88 30 30 uint32_t nb_inst_predict, 31 31 uint32_t nb_inst_decod , 32 uint32_t nb_inst_update ) 32 uint32_t nb_inst_update , 33 bool is_toplevel) 33 34 { 34 35 log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"Begin"); … … 38 39 _size_buffer = size_buffer ; 39 40 _associativity = associativity ; 40 _size_address = size_address ;41 41 _size_counter = size_counter ; 42 42 _nb_inst_predict = nb_inst_predict; … … 45 45 46 46 _size_bank = size_buffer/associativity; 47 _size_context_id = log2(nb_context);48 47 _size_victim = log2(associativity); 49 48 50 _have_port_context_id = (_size_context_id > 0);51 49 _have_port_victim = (_size_victim > 0); 52 50 … … 81 79 test(); 82 80 81 if (is_toplevel) 82 { 83 _size_instruction_address = size_address ; 84 _size_context_id = log2(nb_context); 85 _have_port_context_id = (_size_context_id > 0); 86 87 copy (); 88 } 89 83 90 log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"End"); 84 91 }; … … 101 108 }; 102 109 110 #undef FUNCTION 111 #define FUNCTION "Branch_Target_Buffer_Register::copy" 112 void Parameters::copy () 113 { 114 log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"Begin"); 115 log_printf(FUNC,Branch_Target_Buffer_Register,FUNCTION,"End"); 116 }; 117 103 118 }; // end namespace branch_target_buffer_register 104 119 }; // end namespace branch_target_buffer
Note: See TracChangeset
for help on using the changeset viewer.