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

Last change on this file 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
Line 
1/*
2 * $Id: Parameters.cpp 137 2010-02-16 12:35:48Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h"
9#include "Common/include/Log2.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace select {
15namespace select_priority_fixed {
16
17
18  Parameters::Parameters (uint32_t nb_entity       ,
19                          bool     encoding_one_hot,
20                          bool     encoding_compact)
21  {
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
29    test();
30    log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
31  };
32 
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//   };
43
44  Parameters::~Parameters () 
45  {
46    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin");
47    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End");
48  };
49
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
56}; // end namespace select_priority_fixed
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.