Last change
on this file since 47 was
44,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | #ifndef morpheo_behavioural_generic_shifter_Type_h |
---|
3 | #define morpheo_behavioural_generic_shifter_Type_h |
---|
4 | |
---|
5 | /* |
---|
6 | * $Id$ |
---|
7 | * |
---|
8 | * [ Description ] |
---|
9 | * |
---|
10 | */ |
---|
11 | |
---|
12 | #include "Common/include/Types.h" |
---|
13 | |
---|
14 | namespace morpheo { |
---|
15 | namespace behavioural { |
---|
16 | namespace generic { |
---|
17 | namespace shifter { |
---|
18 | |
---|
19 | typedef enum { without_rotate , |
---|
20 | internal_rotate , |
---|
21 | external_rotate } rotate_t; |
---|
22 | |
---|
23 | typedef enum { internal_right_shift, |
---|
24 | internal_left_shift , |
---|
25 | external_direction } direction_t; |
---|
26 | |
---|
27 | typedef enum { internal_logic , |
---|
28 | internal_arithmetic , |
---|
29 | external_carry , |
---|
30 | external_completion } carry_t; |
---|
31 | |
---|
32 | typedef uint32_t Tdata_t ; |
---|
33 | typedef uint32_t Tshift_t ; |
---|
34 | typedef bool Tdirection_t; |
---|
35 | typedef bool Ttype_t ; |
---|
36 | typedef bool Tcarry_t ; |
---|
37 | |
---|
38 | // A lot of constant |
---|
39 | const Tdirection_t _right = false; |
---|
40 | const Tdirection_t _left = true ; |
---|
41 | |
---|
42 | const Ttype_t _shift = false; |
---|
43 | const Ttype_t _rotate = true ; |
---|
44 | |
---|
45 | const Tcarry_t _logic = false; |
---|
46 | const Tcarry_t _arithmetic = true ; |
---|
47 | |
---|
48 | }; // end namespace shifter |
---|
49 | }; // end namespace generic |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
52 | |
---|
53 | #endif |
---|
54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.