source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Debug_signal.cpp @ 138

Last change on this file since 138 was 138, checked in by rosiere, 14 years ago

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1/*
2 * $Id: Debug_signal.cpp 138 2010-05-12 17:34:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7#ifdef DEBUG_SIGNAL
8
9#include "Behavioural/include/Debug_signal.h"
10#include "Common/include/Message.h"
11
12namespace morpheo {
13namespace behavioural {
14
15  debug_signal _debug_signal;
16
17  void debug_signal::add (void *      signal,
18                          std::string name)
19  {
20    _signal[signal] = name;
21  }
22
23  void debug_signal::write (void * signal)
24  {
25    std::map <void *,std::string>::iterator it=_signal.find(signal);
26    if (it != _signal.end())
27      _signal_access.push_back(it->second);
28
29// else
30//   msgError("At file %s, in line %d, invalid signal.\n",__FILE__,__LINE__);
31  }
32
33  void debug_signal::end_cycle (void)
34  {
35    _signal_access.clear();
36  }
37
38  void debug_signal::print (void)
39  {
40    msgInformation("List of access signal\n");
41    for (std::list<std::string>::iterator it = _signal_access.begin();
42         it != _signal_access.end();
43         ++ it)
44      {
45        msgInformation(" * %s\n",(*it).c_str());
46      }
47  }
48
49}; // end namespace behavioural         
50}; // end namespace morpheo             
51#endif
Note: See TracBrowser for help on using the repository browser.