Skip to content

writers

Types

Name Description
CSVWriter CSV (Comma-Separated Values) format writer for human-readable trace files.
FSTWriter FST (Fast Signal Trace) format writer for efficient binary trace storage.
TraceWriter Base interface for all trace format writers.
VCDWriter VCD (Value Change Dump) format trace file writer.

Functions

Name Description
create_writer Factory function to create a writer for a specific format.
detect_format Detect file format from extension.

Function Details

create_writer

std::unique_ptr<TraceWriter> create_writer( const std::string& filename, const std::string& format = "auto" )

Factory function to create a writer for a specific format.

filename
Output file path
format
File format ("vcd", "fst", "csv", or "auto")
Return
Unique pointer to TraceWriter instance @throws std::runtime_error if format is not supported

detect_format

std::string detect_format(const std::string& filename)

Detect file format from extension.

filename
File path to analyze
Return
Format name ("vcd", "fst", "csv", or "unknown")