source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_direction_toString.cpp @ 43

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

Modif mineur : ajout d'info de débug

Release non stable

File size: 746 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18#undef  FUNCTION
19#define FUNCTION "Vhdl::direction_toString"
20  string Vhdl::direction_toString (direction_t direction)
21  {
22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
23
24    string _return;
25    switch (direction)
26      {
27      case IN    : _return = "in    "; break;
28      case OUT   : _return = "out   "; break;
29      default    : _return = "      "; break;
30      }
31
32    log_printf(FUNC,Behavioural,FUNCTION,"End");
33    return _return;
34  };
35 
36}; // end namespace behavioural         
37}; // end namespace morpheo             
38
39#endif
Note: See TracBrowser for help on using the repository browser.