Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Parameters.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/Ifetch_unit/Address_management/src/Parameters.cpp
r81 r88 21 21 Parameters::Parameters (uint32_t nb_instruction, 22 22 uint32_t size_address , 23 uint32_t size_branch_update_prediction) 23 uint32_t size_branch_update_prediction, 24 bool is_toplevel) 24 25 { 25 26 log_printf(FUNC,Address_management,FUNCTION,"Begin"); 26 27 27 _nb_instruction = nb_instruction ; 28 _size_address = size_address ; 29 _size_branch_update_prediction = size_branch_update_prediction; 30 31 _size_instruction_ptr = log2(nb_instruction); 32 33 _have_port_instruction_ptr = _size_instruction_ptr > 0; 34 _have_port_branch_update_prediction_id = size_branch_update_prediction > 0; 28 _nb_instruction = nb_instruction ; 35 29 36 30 test(); 31 32 if (is_toplevel) 33 { 34 _size_instruction_address = size_address ; 35 _size_depth = size_branch_update_prediction; 36 _size_inst_ifetch_ptr = log2(nb_instruction); 37 38 _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0; 39 _have_port_depth = _size_depth > 0; 40 41 copy(); 42 } 43 37 44 log_printf(FUNC,Address_management,FUNCTION,"End"); 38 45 }; … … 55 62 }; 56 63 64 #undef FUNCTION 65 #define FUNCTION "Address_management::copy" 66 void Parameters::copy (void) 67 { 68 log_printf(FUNC,Address_management,FUNCTION,"Begin"); 69 log_printf(FUNC,Address_management,FUNCTION,"End"); 70 }; 71 57 72 }; // end namespace address_management 58 73 }; // end namespace ifetch_unit
Note: See TracChangeset
for help on using the changeset viewer.