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

Last change on this file since 113 was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1/*
2 * $Id: Interface_signal_name.cpp 113 2009-04-14 18:39:12Z rosiere $
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 = (direction==INTERNAL)?"":toString(direction);
20    std::string str_interface = name_interface;
21    std::string str_signal    = name_signal;
22
23//     LowerCase(str_direction);   
24//     LowerCase(str_interface);
25//     LowerCase(str_signal   );
26   
27    std::string signame = "";
28    bool need_underscore = false;
29
30    if (str_direction != "")
31      {
32        signame +=                            str_direction;
33        need_underscore = true;
34      }
35    if (str_interface != "")
36      {
37        signame += ((need_underscore)?"_":"")+str_interface;
38        need_underscore = true;
39      }
40    if (str_signal != "")
41      {
42        signame += ((need_underscore)?"_":"")+str_signal;
43//      need_underscore = true;
44      }
45
46    log_printf(FUNC,Behavioural,"signal_name","End");
47
48    return signame;
49  };
50
51}; // end namespace behavioural         
52}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.