Logo Search packages:      
Sourcecode: verilator version File versions  Download package

VerilatedVcd Class Reference

#include <verilated_vcd_c.h>

List of all members.


Detailed Description

Create a SystemPerl VCD dump.

Definition at line 62 of file verilated_vcd_c.h.


Public Member Functions

void addCallback (VerilatedVcdCallback_t init, VerilatedVcdCallback_t full, VerilatedVcdCallback_t change, void *userthis)
 Inside dumping routines, declare callbacks for tracings.
void chgArray (vluint32_t code, const vluint32_t *newval, int bits)
void chgBit (vluint32_t code, const vluint32_t newval)
 Inside dumping routines, dump one signal if it has changed.
void chgBus (vluint32_t code, const vluint32_t newval, int bits)
void chgDouble (vluint32_t code, const double newval)
void chgFloat (vluint32_t code, const float newval)
void chgQuad (vluint32_t code, const vluint64_t newval, int bits)
void chgTriArray (vluint32_t code, const vluint32_t *newvalp, const vluint32_t *newtrip, int bits)
void chgTriBit (vluint32_t code, const vluint32_t newval, const vluint32_t newtri)
void chgTriBus (vluint32_t code, const vluint32_t newval, const vluint32_t newtri, int bits)
void chgTriQuad (vluint32_t code, const vluint64_t newval, const vluint32_t newtri, int bits)
void close ()
 Close the file.
void declArray (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
void declBit (vluint32_t code, const char *name, int arraynum)
 Inside dumping routines, declare a signal.
void declBus (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
void declDouble (vluint32_t code, const char *name, int arraynum)
void declFloat (vluint32_t code, const char *name, int arraynum)
void declQuad (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
void declTriArray (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
void declTriBit (vluint32_t code, const char *name, int arraynum)
void declTriBus (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
void declTriQuad (vluint32_t code, const char *name, int arraynum, int msb, int lsb)
string doubleToTimescale (double value)
void dump (vluint64_t timeui)
 Inside dumping routines, called each cycle to make the dump.
void dumpSeconds (double secs)
 Call dump with a absolute unscaled time in seconds.
void flush ()
 Flush any remaining data.
void fullArray (vluint32_t code, const vluint32_t *newval, int bits)
void fullArrayX (vluint32_t code, int bits)
void fullBit (vluint32_t code, const vluint32_t newval)
 Inside dumping routines, dump one signal.
void fullBitX (vluint32_t code)
void fullBus (vluint32_t code, const vluint32_t newval, int bits)
void fullBusX (vluint32_t code, int bits)
void fullDouble (vluint32_t code, const double newval)
void fullFloat (vluint32_t code, const float newval)
void fullQuad (vluint32_t code, const vluint64_t newval, int bits)
void fullQuadX (vluint32_t code, int bits)
void fullTriArray (vluint32_t code, const vluint32_t *newvalp, const vluint32_t *newtrip, int bits)
void fullTriBit (vluint32_t code, const vluint32_t newval, const vluint32_t newtri)
void fullTriBus (vluint32_t code, const vluint32_t newval, const vluint32_t newtri, int bits)
void fullTriQuad (vluint32_t code, const vluint64_t newval, const vluint32_t newtri, int bits)
bool isOpen () const
 Is file open?
bool isScopeEscape (char c)
 Is this an escape?
void module (const string name)
 Inside dumping routines, declare a module.
vluint32_t nextCode () const
 Inside dumping routines, return next VCD signal code.
void open (const char *filename)
 Open the file; call isOpen() to see if errors.
void openNext (bool incFilename)
 Open next data-only file.
void rolloverMB (vluint64_t rolloverMB)
 Set size in megabytes after which new file should be created.
void scopeEscape (char flag)
 Change character that splits scopes. Note whitespace are ALWAYS escapes.
void set_time_resolution (const string &unit)
void set_time_resolution (const char *unit)
 Set time resolution (s/ms, defaults to ns).
void set_time_unit (const string &unit)
void set_time_unit (const char *unit)
 Set time units (s/ms, defaults to ns).
double timescaleToDouble (const char *unitp)

Static Public Member Functions

static void flush_all ()
 Flush any remaining data from all files.

Protected Member Functions

void evcd (bool flag)

Private Types

typedef map< string, string > NameMap

Private Member Functions

void bufferCheck ()
void bufferFlush ()
size_t bufferInsertSize ()
size_t bufferSize ()
void closeErr ()
void closePrev ()
void declare (vluint32_t code, const char *name, const char *wirep, int arraynum, bool tri, bool bussed, int msb, int lsb)
void dumpDone ()
void dumpFull (vluint64_t timeui)
void dumpHeader ()
void dumpPrep (vluint64_t timeui)
void makeNameMap ()
void openNext ()
void printCode (vluint32_t code)
void printIndent (int levelchange)
void printQuad (vluint64_t n)
void printStr (const char *str)
void printTime (vluint64_t timeui)
string stringCode (vluint32_t code)

Private Attributes

vector< VerilatedVcdCallInfo * > m_callbacks
 Routines to perform dumping.
bool m_evcd
 True for evcd format.
int m_fd
 File descriptor we're writing to.
string m_filename
 Filename we're writing to (if open).
bool m_fullDump
 True indicates dump ignoring if changed.
bool m_isOpen
 True indicates open file.
int m_modDepth
 Depth of module hierarchy.
string m_modName
 Module name being traced now.
NameMap * m_namemapp
 List of names for the header.
vluint32_t m_nextCode
 Next code number to assign.
vluint64_t m_rolloverMB
 MB of file size to rollover at.
char m_scopeEscape
 Character to separate scope components.
vector< VerilatedVcdSigm_sigs
 Pointer to signal information.
vluint32_tm_sigs_oldvalp
 Pointer to old signal values.
vluint64_t m_timeLastDump
 Last time we did a dump.
double m_timeRes
 Time resolution (ns/ms etc).
double m_timeUnit
 Time units (ns/ms etc).
char * m_wrBufp
 Output buffer.
char * m_writep
 Write pointer into output buffer.
vluint64_t m_wroteBytes
 Number of bytes written to this file.

Static Private Attributes

static vector< VerilatedVcd * > s_vcdVecp
 List of all created traces.

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

Generated by  Doxygen 1.6.0   Back to index