Last change
on this file since 102 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:
959 bytes
|
Rev | Line | |
---|
[40] | 1 | /* |
---|
| 2 | * $Id: Interface_signal_name.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interface.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[75] | 13 | std::string Interface::signal_name (std::string name_interface, |
---|
| 14 | std::string name_signal , |
---|
| 15 | direction_t direction ) |
---|
[40] | 16 | { |
---|
| 17 | log_printf(FUNC,Behavioural,"signal_name","Begin"); |
---|
| 18 | |
---|
[75] | 19 | std::string str_direction = toString(direction); |
---|
| 20 | std::string str_interface = name_interface; |
---|
| 21 | std::string str_signal = name_signal; |
---|
[40] | 22 | |
---|
| 23 | LowerCase(str_direction); |
---|
| 24 | UpperCase(str_interface); |
---|
| 25 | UpperCase(str_signal ); |
---|
| 26 | |
---|
[75] | 27 | std::string signame = str_direction; |
---|
[40] | 28 | if (str_interface != "") |
---|
| 29 | signame += "_"+str_interface; |
---|
| 30 | if (str_signal != "") |
---|
| 31 | signame += "_"+str_signal; |
---|
| 32 | |
---|
| 33 | log_printf(FUNC,Behavioural,"signal_name","End"); |
---|
| 34 | |
---|
| 35 | return signame; |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.