[2] | 1 | #ifndef morpheo_behavioural_generic_shifter_Parameters_h |
---|
| 2 | #define morpheo_behavioural_generic_shifter_Parameters_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Parameters.h 112 2009-03-18 22:36:26Z 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 | |
---|
[112] | 32 | public : const uint32_t _size_shift ; |
---|
| 33 | |
---|
[2] | 34 | public : const bool _internal_direction; |
---|
| 35 | public : const bool _internal_type ; |
---|
| 36 | public : const bool _internal_carry ; |
---|
| 37 | |
---|
| 38 | public : const bool _have_shift_logic_left ; |
---|
| 39 | public : const bool _have_shift_logic_right ; |
---|
| 40 | public : const bool _have_shift_logic ; |
---|
| 41 | public : const bool _have_shift_arithmetic_left ; |
---|
| 42 | public : const bool _have_shift_arithmetic_right ; |
---|
| 43 | public : const bool _have_shift_arithmetic ; |
---|
| 44 | public : const bool _have_shift ; |
---|
| 45 | public : const bool _have_rotate_left ; |
---|
| 46 | public : const bool _have_rotate_right ; |
---|
| 47 | public : const bool _have_rotate ; |
---|
| 48 | |
---|
| 49 | public : const bool _have_direction_left ; |
---|
| 50 | public : const bool _have_direction_right ; |
---|
| 51 | |
---|
| 52 | //-----[ methods ]----------------------------------------------------------- |
---|
| 53 | public : Parameters (uint32_t size_data , |
---|
| 54 | uint32_t nb_port , |
---|
| 55 | uint32_t shift_value , |
---|
| 56 | rotate_t rotate , |
---|
| 57 | direction_t direction , |
---|
| 58 | carry_t carry , |
---|
| 59 | bool type_completion_bool = false); |
---|
[88] | 60 | // public : Parameters (Parameters & param) ; |
---|
[2] | 61 | public : ~Parameters () ; |
---|
| 62 | |
---|
[88] | 63 | public : void copy (void); |
---|
| 64 | |
---|
[82] | 65 | public : Parameters_test msg_error (void); |
---|
[88] | 66 | |
---|
[82] | 67 | public : std::string print (uint32_t depth); |
---|
| 68 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
| 69 | morpheo::behavioural::generic::shifter::Parameters & x); |
---|
[2] | 70 | }; |
---|
| 71 | |
---|
| 72 | }; // end namespace shifter |
---|
| 73 | }; // end namespace generic |
---|
| 74 | }; // end namespace behavioural |
---|
| 75 | }; // end namespace morpheo |
---|
| 76 | |
---|
| 77 | #endif |
---|