Skip to main content
Returns the flattened, deeply frozen and serializable graph that the simulator runs. Results are cached per definition. Throws CircuitError if the definition can’t be elaborated, for example because of a wire loop with no gate in it.

Netlist

string
Always "root".
string
The name of the elaborated definition.
Record<string, string>
External input name to wire id.
Record<string, string>
External output name to wire id.
WireInfo[]
Every wire, sorted by id. A wire is one driver plus every port connected to it.
GateInfo[]
Every primitive gate, sorted by path.
string[]
Every port path in the hierarchy, in hierarchical (declaration) order. This is the same key order as inspect().signals.
Record<string, string>
Port path to wire id.

Example