Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (14 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp

    r88 r137  
    77
    88#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h"
     9#include "Common/include/Log2.h"
    910
    1011namespace morpheo {
     
    1718  Parameters::Parameters (uint32_t nb_entity       ,
    1819                          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)
    2421  {
    2522    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
    2629    test();
    2730    log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
Note: See TracChangeset for help on using the changeset viewer.