105 bool erase_prior =
false 145 std::map<VCDSignalHash, VCDSignalValues*>
val_map;
VCDTimeUnit time_units
Timescale of the VCD file.
std::string VCDSignalHash
Compressed hash representation of a signal.
A file for common types and data structures used by the VCD parser.
void add_signal(VCDSignal *s)
Add a new signal to the VCD file.
std::vector< VCDScope * > * get_scopes()
Get a vector of all scopes present in the file.
std::vector< VCDTime > times
Vector of time values present in the VCD file - sorted, asc.
std::map< VCDSignalHash, VCDSignalValues * > val_map
Map of hashes onto vectors of times and signal values.
std::vector< VCDScope * > scopes
Flat mao of all scope objects in the file, keyed by name.
VCDScope * root_scope
Root scope node of the VCD signals.
std::vector< VCDSignal * > * get_signals()
Return a flattened vector of all signals in the file.
Represents a single value found in a VCD File.
A signal value tagged with times.
std::deque< VCDTimedValue * > VCDSignalValues
A vector of tagged time/value pairs, sorted by time values.
Represents a single signal reference within a VCD file.
VCDValue * get_signal_value_at(const VCDSignalHash &hash, VCDTime time, bool erase_prior=false)
Get the value of a particular signal at a specified time.
void add_scope(VCDScope *s)
Add a new scope object to the VCD file.
void add_timestamp(VCDTime time)
Add a new timestamp value to the VCD file.
std::vector< VCDSignal * > signals
Flat vector of all signals in the file.
Represents a scope type, scope name pair and all of it's child signals.
std::string date
Date string of the VCD file.
VCDFile()
Instance a new VCD file container.
std::vector< VCDTime > * get_timestamps()
Return a pointer to the set of timestamp samples present in the VCD file.
std::string version
Version string of the simulator which generated the VCD.
void add_signal_value(VCDTimedValue *time_val, VCDSignalHash hash)
Add a new signal value to the VCD file, tagged by time.
unsigned VCDTimeRes
Specifies the timing resoloution along with VCDTimeUnit.
VCDScope * get_scope(VCDScopeName name)
Return the scope object in the VCD file with this name.
Top level object to represent a single VCD file.
VCDSignalValues * get_signal_values(VCDSignalHash hash)
Get a vector of VCD time values.
std::string comment
Version string of the simulator which generated the VCD.
VCDTimeRes time_resolution
Multiplier of the VCD file time units.
double VCDTime
Represents a single instant in time in a trace.
VCDTimeUnit
Represents the possible time units a VCD file is specified in.
std::string VCDScopeName
Friendly name for a scope.