simulavr
1.1.0
|
Public Member Functions | |
TwiceTV (const std::string &_name, TraceValue *_ref) | |
virtual void | cycle () |
Called at least once for each cycle if this trace value is activated. More... | |
![]() | |
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 | dump (Dumper &d) |
virtual char | VcdBit (int bitNo) const |
Private Attributes | |
TraceValue * | ref |
Additional Inherited Members | |
![]() | |
enum | Atype { READ =1, WRITE =2, CHANGE =4 } |
Possible access types for a trace value. More... | |
![]() | |
void | clear_flags () |
Clear all access flags. More... | |
To ease debugging, also supply the option to have the PC*2 in the trace output file. This is also the format the other normal tracing will output addresses and the format avr-objdump produces disassemblies in.
Definition at line 115 of file avrdevice.cpp.
|
inline |
Definition at line 117 of file avrdevice.cpp.
|
inlinevirtual |
Called at least once for each cycle if this trace value is activated.
This may check for updates to an underlying referenced value etc. and update the flags accordingly.
Reimplemented from TraceValue.
Definition at line 120 of file avrdevice.cpp.
|
private |
Definition at line 125 of file avrdevice.cpp.