WiresError, which extends Error.
CircuitError
A structural problem with a definition. The message is prefixed with the circuit name, and relative paths are used for anything inside it. Thrown for:- invalid names, duplicate port names, duplicate or reserved instance names
- a connection in the wrong direction, a port that doesn’t exist, or a port of a foreign instance
- multiple drivers for one sink
- unconnected child inputs and undriven outputs, all reported together
- adding a component that isn’t defined yet (
add()receivedundefined) - wire loops with no driving gate, found during elaboration
- builders that are asynchronous, or used after they finish
SimulationError
A runtime problem:set()with an unknown input or an invalid signal valueread()with an unknown output- invalid
simulate()options - a primitive evaluator that throws (the original error is kept as
cause), returns a non-object, omits an output, returns an unexpected output, or returns an invalid signal
StabilizationError
Thrown byrun() when the circuit hasn’t stabilized after maxTicks ticks in one call.
Up to the 16 most recent transitions, oldest first. Recorded even when tracing is off.
maxTicks: 100: