source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Localisation.h @ 29

Last change on this file since 29 was 29, checked in by rosiere, 17 years ago

Changement de classes de gestions des Interfaces.

-> simplification pour les déclarations de ports, application pour le composant Select_Priority_Fixed.
-> !!! essayer de supprimer la redondance dans les fichierx xxx_vhdl_testbench_transition.cpp

File size: 874 bytes
Line 
1#ifdef VHDL
2
3#ifndef morpheo_behavioural_Localisation_h
4#define morpheo_behavioural_Localisation_h
5
6#include "Include/ToString.h"
7
8namespace morpheo              {
9namespace behavioural          {
10
11  typedef enum {NORTH, SOUTH, EAST, WEST} localisation_t;
12 
13}; // end namespace behavioural         
14 
15  template<>           inline std::string toString<morpheo::behavioural::localisation_t>(const morpheo::behavioural::localisation_t& x)
16  {
17    switch (x)
18      {
19      case morpheo::behavioural::NORTH   : return "north" ; break;
20      case morpheo::behavioural::SOUTH   : return "south" ; break;
21      case morpheo::behavioural::EAST    : return "east"  ; break;
22      case morpheo::behavioural::WEST    : return "west"  ; break;
23      default                            : return ""      ; break;
24      }
25  }
26 
27}; // end namespace morpheo             
28
29#endif
30#endif
Note: See TracBrowser for help on using the repository browser.