source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/include/Types.h @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

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 "Include/Types.h"
13
14namespace morpheo {
15namespace behavioural {
16namespace generic {
17namespace 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.