yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TraceMonitor Struct Reference
+ Inheritance diagram for TraceMonitor:
+ Collaboration diagram for TraceMonitor:

Public Member Functions

virtual void notify_module_add (RTLIL::Module *module) YS_OVERRIDE
 
virtual void notify_module_del (RTLIL::Module *module) YS_OVERRIDE
 
virtual void notify_connect (RTLIL::Cell *cell, const RTLIL::IdString &port, const RTLIL::SigSpec &old_sig, RTLIL::SigSpec &sig) YS_OVERRIDE
 
virtual void notify_connect (RTLIL::Module *module, const RTLIL::SigSig &sigsig) YS_OVERRIDE
 
virtual void notify_connect (RTLIL::Module *module, const std::vector< RTLIL::SigSig > &sigsig_vec) YS_OVERRIDE
 
virtual void notify_blackout (RTLIL::Module *module) YS_OVERRIDE
 
virtual void notify_connect (RTLIL::Module *, const std::vector< RTLIL::SigSig > &)
 

Detailed Description

Definition at line 26 of file trace.cc.

Member Function Documentation

virtual void TraceMonitor::notify_blackout ( RTLIL::Module module)
inlinevirtual

Reimplemented from RTLIL::Monitor.

Definition at line 55 of file trace.cc.

56  {
57  log("#TRACE# Blackout in module %s:\n", log_id(module));
58  }
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283

+ Here is the call graph for this function:

virtual void TraceMonitor::notify_connect ( RTLIL::Cell cell,
const RTLIL::IdString port,
const RTLIL::SigSpec old_sig,
RTLIL::SigSpec sig 
)
inlinevirtual

Reimplemented from RTLIL::Monitor.

Definition at line 38 of file trace.cc.

39  {
40  log("#TRACE# Cell connect: %s.%s.%s = %s (was: %s)\n", log_id(cell->module), log_id(cell), log_id(port), log_signal(sig), log_signal(old_sig));
41  }
const char * log_signal(const RTLIL::SigSpec &sig, bool autoint)
Definition: log.cc:269
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283
RTLIL::Module * module
Definition: rtlil.h:852

+ Here is the call graph for this function:

virtual void TraceMonitor::notify_connect ( RTLIL::Module module,
const RTLIL::SigSig sigsig 
)
inlinevirtual

Reimplemented from RTLIL::Monitor.

Definition at line 43 of file trace.cc.

44  {
45  log("#TRACE# Connection in module %s: %s = %s\n", log_id(module), log_signal(sigsig.first), log_signal(sigsig.second));
46  }
const char * log_signal(const RTLIL::SigSpec &sig, bool autoint)
Definition: log.cc:269
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283

+ Here is the call graph for this function:

virtual void TraceMonitor::notify_connect ( RTLIL::Module module,
const std::vector< RTLIL::SigSig > &  sigsig_vec 
)
inlinevirtual

Definition at line 48 of file trace.cc.

49  {
50  log("#TRACE# New connections in module %s:\n", log_id(module));
51  for (auto &sigsig : sigsig_vec)
52  log("## %s = %s\n", log_signal(sigsig.first), log_signal(sigsig.second));
53  }
const char * log_signal(const RTLIL::SigSpec &sig, bool autoint)
Definition: log.cc:269
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283

+ Here is the call graph for this function:

virtual void RTLIL::Monitor::notify_connect ( RTLIL::Module ,
const std::vector< RTLIL::SigSig > &   
)
inlinevirtualinherited

Definition at line 497 of file rtlil.h.

497 { }
virtual void TraceMonitor::notify_module_add ( RTLIL::Module module)
inlinevirtual

Reimplemented from RTLIL::Monitor.

Definition at line 28 of file trace.cc.

29  {
30  log("#TRACE# Module add: %s\n", log_id(module));
31  }
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283

+ Here is the call graph for this function:

virtual void TraceMonitor::notify_module_del ( RTLIL::Module module)
inlinevirtual

Reimplemented from RTLIL::Monitor.

Definition at line 33 of file trace.cc.

34  {
35  log("#TRACE# Module delete: %s\n", log_id(module));
36  }
void log(const char *format,...)
Definition: log.cc:180
const char * log_id(RTLIL::IdString str)
Definition: log.cc:283

+ Here is the call graph for this function:


The documentation for this struct was generated from the following file: