Last change
on this file since 45 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
746 bytes
|
Rev | Line | |
---|
[42] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id$ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | #include <sstream> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
[43] | 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Vhdl::direction_toString" |
---|
[42] | 20 | string Vhdl::direction_toString (direction_t direction) |
---|
| 21 | { |
---|
[43] | 22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 23 | |
---|
| 24 | string _return; |
---|
[42] | 25 | switch (direction) |
---|
| 26 | { |
---|
[43] | 27 | case IN : _return = "in "; break; |
---|
| 28 | case OUT : _return = "out "; break; |
---|
| 29 | default : _return = " "; break; |
---|
[42] | 30 | } |
---|
[43] | 31 | |
---|
| 32 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 33 | return _return; |
---|
[42] | 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace behavioural |
---|
| 37 | }; // end namespace morpheo |
---|
| 38 | |
---|
| 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.