Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_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/Decod_unit/Decod_queue/src/Parameters.cpp
r82 r88 10 10 11 11 namespace morpheo { 12 namespace behavioural {12 namespace behavioural { 13 13 namespace core { 14 14 namespace multi_front_end { … … 24 24 uint32_t size_queue , 25 25 uint32_t size_general_data , 26 uint32_t * nb_branch_speculated) 26 uint32_t * nb_branch_speculated, 27 bool is_toplevel ) 27 28 { 28 29 log_begin(Decod_queue,FUNCTION); … … 31 32 _nb_inst_decod = nb_inst_decod ; 32 33 _size_queue = size_queue ; 33 34 // _size_general_data = size_general_data ; 34 35 _nb_branch_speculated = nb_branch_speculated; 35 36 … … 37 38 _size_bank = _size_queue / _nb_bank; 38 39 39 _size_context_id = log2(nb_context); 40 _size_depth = log2(max<uint32_t>(_nb_branch_speculated,_nb_context)); 41 _size_nb_inst = log2(_size_queue); 40 test(); 42 41 43 _have_port_context_id = (_size_context_id > 0); 44 _have_port_depth = (_size_depth > 0); 45 46 test(); 42 if (is_toplevel) 43 { 44 _size_context_id = log2(nb_context); 45 _size_nb_inst_decod = log2(_size_queue)+1; 46 _size_depth = log2(max<uint32_t>(_nb_branch_speculated,_nb_context)); 47 _size_general_data = size_general_data; 48 49 _have_port_context_id = _size_context_id > 0; 50 _have_port_depth = _size_depth > 0; 51 52 copy (); 53 } 54 47 55 log_end(Decod_queue,FUNCTION); 48 56 }; … … 62 70 { 63 71 log_begin(Decod_queue,FUNCTION); 72 73 log_end(Decod_queue,FUNCTION); 74 }; 75 76 #undef FUNCTION 77 #define FUNCTION "Decod_queue::copy" 78 void Parameters::copy (void) 79 { 80 log_begin(Decod_queue,FUNCTION); 81 64 82 log_end(Decod_queue,FUNCTION); 65 83 };
Note: See TracChangeset
for help on using the changeset viewer.