source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp @ 137

Last change on this file since 137 was 137, checked in by rosiere, 14 years ago

Various modif (add test, and vhdl)

  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[10]1/*
2 * $Id: Parameters.cpp 137 2010-02-16 12:35:48Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
[15]8#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h"
[137]9#include "Common/include/Log2.h"
[10]10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace select {
[15]15namespace select_priority_fixed {
[10]16
17
18  Parameters::Parameters (uint32_t nb_entity       ,
19                          bool     encoding_one_hot,
[137]20                          bool     encoding_compact)
[10]21  {
[15]22    log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin");
[137]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
[10]29    test();
[15]30    log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
[10]31  };
32 
[88]33//   Parameters::Parameters (Parameters & param):
34//     _nb_entity        (param._nb_entity       ),
35//     _encoding_one_hot (param._encoding_one_hot),
36//     _encoding_compact (param._encoding_compact),
37//     _size_entity      (param._size_entity     )
38//   {
39//     log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin");
40//     test();
41//     log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
42//   };
[10]43
44  Parameters::~Parameters () 
45  {
[15]46    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin");
47    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End");
[10]48  };
49
[88]50  void Parameters::copy (void) 
51  {
52    log_printf(FUNC,Select_Priority_Fixed,"copy","Begin");
53    log_printf(FUNC,Select_Priority_Fixed,"copy","End");
54  };
55
[15]56}; // end namespace select_priority_fixed
[10]57}; // end namespace select
58}; // end namespace generic
59
60}; // end namespace behavioural
61}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.