source:
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_signal_name.cpp
@
43
Last change on this file since 43 was 40, checked in by , 17 years ago | |
---|---|
File size: 946 bytes |
Line | |
---|---|
1 | /* |
2 | * $Id$ |
3 | * |
4 | * [ Description ] |
5 | * |
6 | */ |
7 | |
8 | #include "Behavioural/include/Interface.h" |
9 | #include "Include/ChangeCase.h" |
10 | |
11 | namespace morpheo { |
12 | namespace behavioural { |
13 | |
14 | string Interface::signal_name (string name_interface, |
15 | string name_signal , |
16 | direction_t direction ) |
17 | { |
18 | log_printf(FUNC,Behavioural,"signal_name","Begin"); |
19 | |
20 | string str_direction = toString(direction); |
21 | string str_interface = name_interface; |
22 | string str_signal = name_signal; |
23 | |
24 | LowerCase(str_direction); |
25 | UpperCase(str_interface); |
26 | UpperCase(str_signal ); |
27 | |
28 | string signame = str_direction; |
29 | if (str_interface != "") |
30 | signame += "_"+str_interface; |
31 | if (str_signal != "") |
32 | signame += "_"+str_signal; |
33 | |
34 | log_printf(FUNC,Behavioural,"signal_name","End"); |
35 | |
36 | return signame; |
37 | }; |
38 | |
39 | }; // end namespace behavioural |
40 | }; // end namespace morpheo |
Note: See TracBrowser
for help on using the repository browser.