Last change
on this file since 136 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
|
Rev | Line | |
---|
[42] | 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 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
[43] | 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::direction_toString" |
---|
[71] | 19 | std::string Vhdl::direction_toString (direction_t direction) |
---|
[42] | 20 | { |
---|
[43] | 21 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 22 | |
---|
[71] | 23 | std::string _return; |
---|
[42] | 24 | switch (direction) |
---|
| 25 | { |
---|
[43] | 26 | case IN : _return = "in "; break; |
---|
| 27 | case OUT : _return = "out "; break; |
---|
| 28 | default : _return = " "; break; |
---|
[42] | 29 | } |
---|
[43] | 30 | |
---|
| 31 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 32 | return _return; |
---|
[42] | 33 | }; |
---|
| 34 | |
---|
| 35 | }; // end namespace behavioural |
---|
| 36 | }; // end namespace morpheo |
---|
| 37 | |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.