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

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

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

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