simulavr  1.1.0
TraceValueOutput Class Reference

#include <traceval.h>

Inheritance diagram for TraceValueOutput:

Public Member Functions

 TraceValueOutput (const std::string &_name)
 
virtual char VcdBit (int bitNo) const
 
- Public Member Functions inherited from TraceValue
 TraceValue (size_t bits, const std::string &_name, const int __index=-1, const void *shadow=NULL)
 Generate a new unitialized trace value of width bits. More...
 
virtual ~TraceValue ()
 
size_t bits () const
 Give number of bits for this value. Max 32. More...
 
unsigned value () const
 Gives the saved shadow value for this trace value. More...
 
std::string name () const
 Give name (fully qualified), including the index appended if it is >=0. More...
 
std::string barename () const
 Gives the name without the index. More...
 
int index () const
 Gives the index of this member in a memory field (or -1) More...
 
bool enabled () const
 
void enable ()
 Enable tracing. More...
 
void change (unsigned val)
 Log a change on this value. More...
 
void change (unsigned val, unsigned mask)
 
void write (unsigned val)
 Log a write access on this value. More...
 
void read ()
 Log a read access. More...
 
bool written () const
 
void set_written ()
 
void set_written (unsigned val)
 
Atype flags () const
 Gives the current set of flag readings. More...
 
virtual void cycle ()
 Called at least once for each cycle if this trace value is activated. More...
 
virtual void dump (Dumper &d)
 

Additional Inherited Members

- Public Types inherited from TraceValue
enum  Atype { READ =1, WRITE =2, CHANGE =4 }
 Possible access types for a trace value. More...
 
- Protected Member Functions inherited from TraceValue
void clear_flags ()
 Clear all access flags. More...
 

Detailed Description

Definition at line 214 of file traceval.h.

Constructor & Destructor Documentation

◆ TraceValueOutput()

TraceValueOutput::TraceValueOutput ( const std::string &  _name)
inline

Generate a new uninitialized trace value of pin output driver

Definition at line 218 of file traceval.h.

References TraceValue::VcdBit().

Member Function Documentation

◆ VcdBit()

char TraceValueOutput::VcdBit ( int  bitNo) const
virtual

Give back VCD coding of pin output driver

Reimplemented from TraceValue.

Definition at line 156 of file traceval.cpp.

References Pin::HIGH, Pin::LOW, Pin::PULLUP, Pin::TRISTATE, TraceValue::value(), and TraceValue::written().


The documentation for this class was generated from the following files: