TraceManagementOperators
class TraceManagementOperators
@brief Trace file management operators (Phase 8)
Operators for loading, managing, and querying waveform trace files: - Load/unload trace files (VCD, FST, CSV formats) - Navigate traces (step, set-index, get-index) - Query signal values and metadata - Multi-trace management
Operators (10 total): - load: Load a trace file (VCD, FST, or CSV) - unload: Unload a loaded trace - step: Move all traces forward/backward in time - signal?: Check if a signal exists in current traces - get-signal: Get value of a signal at current or offset index - signal-width: Get bit width of a signal - set-index: Set the current time index - get-index: Get current time index - get-traces: Get list of loaded trace IDs - signal-names: Get all signal names in loaded traces
All implementations are header-only for compiler optimization.
Functions
| Name | Description |
|---|---|
| signal_name_of | A signal name given as a string OR as a symbol. |
| trace_id_of | A trace id given as a string OR as a symbol. |
| register_all | @brief Register all trace management operators |
Function Details
register_all
static void register_all(OperatorRegistry& registry)
@brief Register all trace management operators
signal_name_of
static std::string signal_name_of(const Value& v, const char* who)
A signal name given as a string OR as a symbol.
Upstream writes these quoted, as (signal? 'tb.clk) and
(signal-width 'tb.dut.counter), so demanding a string rejected the spelling
every upstream script uses.
trace_id_of
static std::string trace_id_of(const Value& v, const char* who)
A trace id given as a string OR as a symbol.
The WAL manual types every trace id as symbol?, so (load "t.vcd" 'tr),
(unload 'tr) and (step 'tr 1) are the documented spellings. Demanding a
string rejected all of them.