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

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

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