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

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

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