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

Last change on this file since 146 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 735 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_direction_toString.cpp 81 2008-04-15 18:40:01Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::direction_toString"
19  std::string Vhdl::direction_toString (direction_t direction)
20  {
21    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
22
23    std::string _return;
24    switch (direction)
25      {
26      case IN    : _return = "in    "; break;
27      case OUT   : _return = "out   "; break;
28      default    : _return = "      "; break;
29      }
30
31    log_printf(FUNC,Behavioural,FUNCTION,"End");
32    return _return;
33  };
34 
35}; // end namespace behavioural         
36}; // end namespace morpheo             
37
38#endif
Note: See TracBrowser for help on using the repository browser.