Changeset 137 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp
- Timestamp:
- Feb 16, 2010, 1:35:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp
r88 r137 7 7 8 8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" 9 #include "Common/include/Log2.h" 9 10 10 11 namespace morpheo { … … 17 18 Parameters::Parameters (uint32_t nb_entity , 18 19 bool encoding_one_hot, 19 bool encoding_compact): 20 _nb_entity (nb_entity ), 21 _encoding_one_hot (encoding_one_hot), 22 _encoding_compact (encoding_compact), 23 _size_entity (static_cast<uint32_t> (ceil(log2(nb_entity)))) 20 bool encoding_compact) 24 21 { 25 22 log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); 23 24 _nb_entity = nb_entity ; 25 _encoding_one_hot = encoding_one_hot; 26 _encoding_compact = encoding_compact; 27 _size_entity = log2(nb_entity); 28 26 29 test(); 27 30 log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
Note: See TracChangeset
for help on using the changeset viewer.