Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Subsystem (subsystem)

A reusable group of parts, shown as one block with pins.

subsystem

Component reference · 繁體中文

Group: Custom blocks · Kind: {"definition":"Sub1","kind":"subsystem"}

When to use it

Use it to repeat the same sub-circuit, such as a phase leg or a gate driver, or to tuck detail into a named block.

Model

At compile time, the instance is replaced by a copy of the definition's parts. Their names get the instance name as a prefix, such as U1.R1, and inner nets belong to the instance alone. A net whose name equals a port name joins the matching pin, and ground nets (0, gnd, GND) stay global. Nesting is limited to 16 levels, and a subsystem that contains itself is an error. The instance has no parameters of its own.

Common mistakes

  • Connect every port of the instance to a net of the same kind. A signal port joined to a power net is flagged, and a port left open becomes its own floating net inside.
  • Ground inside a subsystem is the same global ground as outside, so a subsystem cannot hold an isolated ground. A missing definition, or subsystems that contain each other, stop the compile with an error.

Problems rules: pin.domain_mismatch, compile.error

Datasheet and sources

There is no datasheet for the wrapper. Each part inside takes its numbers from its own datasheet, and values shared by several instances belong in circuit variables.

Example

Open the example with the command file.openExample and the name demo:subsystem.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.