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

Last change on this file since 88 was 88, checked in by rosiere, 16 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/Sort/include/Parameters.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace generic {
13namespace sort {
14
15
16#undef  FUNCTION
17#define FUNCTION "Sort::Parameters"
18  Parameters::Parameters (uint32_t nb_input           ,
19                          uint32_t nb_output          ,
20                          bool     ascending          ,
21                          uint32_t size_data          ,
22                          bool     have_port_index_out,
23                          bool     have_port_data_out )
24  {
25    log_printf(FUNC,Sort,FUNCTION,"Begin");
26   
27    _nb_input            = nb_input           ;
28    _nb_output           = nb_output          ;
29    _ascending           = ascending          ;
30    _size_data           = size_data          ;
31    _have_port_index_out = have_port_index_out;
32    _have_port_data_out  = have_port_data_out ;
33
34    _size_address        = log2(nb_input);
35
36    test();
37    log_printf(FUNC,Sort,FUNCTION,"End");
38  };
39 
40// #undef  FUNCTION
41// #define FUNCTION "Sort::Parameters (copy)"
42//   Parameters::Parameters (Parameters & param)
43//   {
44//     log_printf(FUNC,Sort,FUNCTION,"Begin");
45//     test();
46//     log_printf(FUNC,Sort,FUNCTION,"End");
47//   };
48
49#undef  FUNCTION
50#define FUNCTION "Sort::~Parameters"
51  Parameters::~Parameters () 
52  {
53    log_printf(FUNC,Sort,FUNCTION,"Begin");
54    log_printf(FUNC,Sort,FUNCTION,"End");
55  };
56
57#undef  FUNCTION
58#define FUNCTION "Sort::copy"
59  void Parameters::copy (void) 
60  {
61    log_printf(FUNC,Sort,FUNCTION,"Begin");
62    log_printf(FUNC,Sort,FUNCTION,"End");
63  };
64
65}; // end namespace sort
66}; // end namespace generic
67
68}; // end namespace behavioural
69}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.