source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_signal_name.cpp @ 62

Last change on this file since 62 was 62, checked in by rosiere, 17 years ago

Modification en profondeur de Component-port_map.
Compilation ok pour Register_unit ... a tester (systemC et vhdl)

File size: 914 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interface.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  string Interface::signal_name          (string      name_interface,
14                                          string      name_signal   ,
15                                          direction_t direction     )
16  {
17    log_printf(FUNC,Behavioural,"signal_name","Begin");
18
19    string str_direction = toString(direction);
20    string str_interface = name_interface;
21    string str_signal    = name_signal;
22
23    LowerCase(str_direction);   
24    UpperCase(str_interface);
25    UpperCase(str_signal   );
26   
27    string signame = str_direction;
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.