Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/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/Ifetch_queue/src/Parameters.cpp
r81 r88 22 22 uint32_t nb_instruction , 23 23 uint32_t size_branch_update_prediction, 24 uint32_t size_general_data ) 24 uint32_t size_general_data , 25 bool is_toplevel) 25 26 { 26 27 log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); … … 28 29 _size_queue = size_queue ; 29 30 _nb_instruction = nb_instruction ; 30 31 31 // _size_branch_update_prediction = size_branch_update_prediction; 32 // _size_general_data = size_general_data ; 32 33 33 _size_queue_ptr = log2(size_queue); 34 _size_instruction_ptr = log2(nb_instruction); 34 test(); 35 35 36 _have_port_queue_ptr = _size_queue_ptr > 0; 37 _have_port_instruction_ptr = _size_instruction_ptr > 0; 38 _have_port_branch_update_prediction_id = size_branch_update_prediction > 0; 39 40 test(); 36 if (is_toplevel) 37 { 38 _size_instruction_address = size_general_data; 39 _size_ifetch_queue_ptr = log2(size_queue); 40 _size_inst_ifetch_ptr = log2(nb_instruction); 41 _size_depth = size_branch_update_prediction; 42 43 _have_port_ifetch_queue_ptr = _size_ifetch_queue_ptr > 0; 44 _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0; 45 _have_port_depth = _size_depth > 0; 46 47 copy (); 48 } 49 41 50 log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); 42 51 }; … … 59 68 }; 60 69 70 #undef FUNCTION 71 #define FUNCTION "Ifetch_queue::copy" 72 void Parameters::copy (void) 73 { 74 log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); 75 log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); 76 }; 77 61 78 }; // end namespace ifetch_queue 62 79 }; // end namespace ifetch_unit
Note: See TracChangeset
for help on using the changeset viewer.