1 | /* |
---|
2 | * $Id: Parameters.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Comparator/include/Parameters.h" |
---|
9 | #include "Common/include/BitManipulation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace comparator { |
---|
15 | |
---|
16 | #undef FUNCTION |
---|
17 | #define FUNCTION "Comparator::Parameters" |
---|
18 | Parameters::Parameters (uint32_t size_data, |
---|
19 | bool is_signed, |
---|
20 | Tcomparator_scheme_t type , |
---|
21 | bool is_toplevel) |
---|
22 | { |
---|
23 | log_begin(Comparator,FUNCTION); |
---|
24 | |
---|
25 | _size_data = size_data; |
---|
26 | _is_signed = is_signed; |
---|
27 | _type = type ; |
---|
28 | |
---|
29 | test(); |
---|
30 | |
---|
31 | _extends = gen_mask_not<int64_t>(_size_data); |
---|
32 | _mask_sign = (1<<(_size_data-1)); |
---|
33 | |
---|
34 | if (is_toplevel) |
---|
35 | { |
---|
36 | copy(); |
---|
37 | } |
---|
38 | |
---|
39 | log_end(Comparator,FUNCTION); |
---|
40 | }; |
---|
41 | |
---|
42 | // #undef FUNCTION |
---|
43 | // #define FUNCTION "Comparator::Parameters (copy)" |
---|
44 | // Parameters::Parameters (Parameters & param) |
---|
45 | // { |
---|
46 | // log_begin(Comparator,FUNCTION); |
---|
47 | // test(); |
---|
48 | // log_end(Comparator,FUNCTION); |
---|
49 | // }; |
---|
50 | |
---|
51 | #undef FUNCTION |
---|
52 | #define FUNCTION "Comparator::~Parameters" |
---|
53 | Parameters::~Parameters (void) |
---|
54 | { |
---|
55 | log_begin(Comparator,FUNCTION); |
---|
56 | log_end(Comparator,FUNCTION); |
---|
57 | }; |
---|
58 | |
---|
59 | #undef FUNCTION |
---|
60 | #define FUNCTION "Comparator::copy" |
---|
61 | void Parameters::copy (void) |
---|
62 | { |
---|
63 | log_begin(Comparator,FUNCTION); |
---|
64 | log_end(Comparator,FUNCTION); |
---|
65 | }; |
---|
66 | |
---|
67 | }; // end namespace comparator |
---|
68 | }; // end namespace generic |
---|
69 | |
---|
70 | }; // end namespace behavioural |
---|
71 | }; // end namespace morpheo |
---|