|
SILICON
|
SILICON-aware adapter over the generic FST writer wrapper. More...
#include <siliconFst.hpp>
Public Types | |
| using | NamedBus = std::pair<std::string, Bus> |
| Bus registered under a stable trace signal name. | |
| using | Options = TraceWriter::Options |
| FST file metadata and hierarchy options shared with TraceWriter. | |
Public Member Functions | |
| CircuitWriter (std::string_view fileName, const Circuit &circuit) | |
| CircuitWriter (std::string_view fileName, const Circuit &circuit, Options options) | |
| CircuitWriter (std::string_view fileName, const std::vector< NamedBus > &buses) | |
| CircuitWriter (std::string_view fileName, const std::vector< NamedBus > &buses, Options options) | |
| CircuitWriter (const CircuitWriter &)=delete | |
| CircuitWriter & | operator= (const CircuitWriter &)=delete |
| CircuitWriter (CircuitWriter &&) noexcept=default | |
| CircuitWriter & | operator= (CircuitWriter &&) noexcept=default |
| void | emitSnapshot (uint64_t time) |
| Emits all registered bus states at the given simulation timestamp. | |
| void | flush () |
| Flushes pending FST data so external tools can read recent snapshots. | |
| std::optional< fstHandle > | handleForBus (std::string_view name) const |
| Returns the FST handle associated with a registered bus name, if present. | |
| std::size_t | busCount () const |
| Number of circuit buses registered in the FST hierarchy. | |
Static Public Member Functions | |
| static char | stateToFstValue (State state) |
| Maps SILICON states to VCD/FST scalar symbols. | |
Private Attributes | |
| std::vector< NamedBus > | buses |
| TraceWriter | writer |
SILICON-aware adapter over the generic FST writer wrapper.
The low-level FST wrapper exposes libfst concepts such as scopes, variables, and handles. This class lifts that API to SILICON concepts by registering circuit buses as vector signals and emitting snapshots from the buses' current simulation states.
Definition at line 42 of file siliconFst.hpp.
Bus registered under a stable trace signal name.
Definition at line 47 of file siliconFst.hpp.
| using Options = TraceWriter::Options |
FST file metadata and hierarchy options shared with TraceWriter.
Definition at line 52 of file siliconFst.hpp.
| CircuitWriter | ( | std::string_view | fileName, |
| const Circuit & | circuit ) |
Definition at line 98 of file siliconFst.cpp.
Definition at line 103 of file siliconFst.cpp.
| CircuitWriter | ( | std::string_view | fileName, |
| const std::vector< NamedBus > & | buses ) |
Definition at line 109 of file siliconFst.cpp.
Definition at line 115 of file siliconFst.cpp.
|
delete |
|
defaultnoexcept |
|
inlinenodiscard |
Number of circuit buses registered in the FST hierarchy.
Definition at line 84 of file siliconFst.hpp.
| void emitSnapshot | ( | uint64_t | time | ) |
Emits all registered bus states at the given simulation timestamp.
Definition at line 122 of file siliconFst.cpp.
| void flush | ( | ) |
Flushes pending FST data so external tools can read recent snapshots.
Definition at line 133 of file siliconFst.cpp.
|
nodiscard |
Returns the FST handle associated with a registered bus name, if present.
Definition at line 138 of file siliconFst.cpp.
|
defaultnoexcept |
|
delete |
|
staticnodiscard |
Maps SILICON states to VCD/FST scalar symbols.
Definition at line 143 of file siliconFst.cpp.
|
private |
Definition at line 92 of file siliconFst.hpp.
|
private |
Definition at line 93 of file siliconFst.hpp.