1 | #ifndef morpheo_behavioural_generic_shifter_Parameters_h |
---|
2 | #define morpheo_behavioural_generic_shifter_Parameters_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Parameters.h 82 2008-05-01 16:48:45Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include "Behavioural/include/Parameters.h" |
---|
12 | #include "Behavioural/Generic/Shifter/include/Types.h" |
---|
13 | #include <math.h> |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | namespace generic { |
---|
18 | namespace shifter { |
---|
19 | |
---|
20 | class Parameters : public morpheo::behavioural::Parameters |
---|
21 | { |
---|
22 | //-----[ fields ]------------------------------------------------------------ |
---|
23 | public : const uint32_t _size_data ; |
---|
24 | public : const uint32_t _nb_port ; |
---|
25 | public : const uint32_t _shift_value ; // 0 = external shifter's value |
---|
26 | public : const rotate_t _rotate ; |
---|
27 | public : const direction_t _direction ; |
---|
28 | public : const carry_t _carry ; |
---|
29 | public : const uint32_t _size_data_completion; |
---|
30 | public : const bool _type_completion_bool; |
---|
31 | |
---|
32 | public : const bool _internal_direction; |
---|
33 | public : const bool _internal_type ; |
---|
34 | public : const bool _internal_carry ; |
---|
35 | |
---|
36 | public : const bool _have_shift_logic_left ; |
---|
37 | public : const bool _have_shift_logic_right ; |
---|
38 | public : const bool _have_shift_logic ; |
---|
39 | public : const bool _have_shift_arithmetic_left ; |
---|
40 | public : const bool _have_shift_arithmetic_right ; |
---|
41 | public : const bool _have_shift_arithmetic ; |
---|
42 | public : const bool _have_shift ; |
---|
43 | public : const bool _have_rotate_left ; |
---|
44 | public : const bool _have_rotate_right ; |
---|
45 | public : const bool _have_rotate ; |
---|
46 | |
---|
47 | public : const bool _have_direction_left ; |
---|
48 | public : const bool _have_direction_right ; |
---|
49 | |
---|
50 | //-----[ methods ]----------------------------------------------------------- |
---|
51 | public : Parameters (uint32_t size_data , |
---|
52 | uint32_t nb_port , |
---|
53 | uint32_t shift_value , |
---|
54 | rotate_t rotate , |
---|
55 | direction_t direction , |
---|
56 | carry_t carry , |
---|
57 | bool type_completion_bool = false); |
---|
58 | public : Parameters (Parameters & param) ; |
---|
59 | public : ~Parameters () ; |
---|
60 | |
---|
61 | public : Parameters_test msg_error (void); |
---|
62 | public : std::string print (uint32_t depth); |
---|
63 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
64 | morpheo::behavioural::generic::shifter::Parameters & x); |
---|
65 | }; |
---|
66 | |
---|
67 | }; // end namespace shifter |
---|
68 | }; // end namespace generic |
---|
69 | }; // end namespace behavioural |
---|
70 | }; // end namespace morpheo |
---|
71 | |
---|
72 | #endif |
---|