Subcircuits
Turn part of a circuit into a block, open it, and reuse it; edits update every copy.
A subcircuit, or block, wraps part of a circuit into one symbol with pins. Use blocks to keep big designs readable, and to reuse a stage several times.
Create a block from a selection#
- Select the parts that make the stage.
- Choose Circuit › Create Subcircuit… (⌥⌘K), or Control-click › Create Subcircuit….
- Give it a Name, and turn on Save to My Blocks if you want it in other circuits too.
- Click Create.
The selection becomes one instance, X1. Every net that left the selection becomes a pin, named after a port inside it, a port outside it, or P1, P2 and so on.
Make a page a block#
Draw the stage on its own page with ports for its connections, then choose Circuit › Make Page a Block. Its ports become the block’s pins. Place it with Circuit › Place Block.
Open a block#
Double-click an instance, or select it and choose Circuit › Open Block (⌘↓). The inside opens in a tab with a jump bar showing where you are, such as Amplifier › X1 Filter. Circuit › Back to Enclosing Circuit (⌘↑) goes back.
Edit the inside and every instance updates, including its symbol, and the circuit runs again if it has been run.
Running and probing inside#
Press Run inside a block and Coppa runs the circuit you opened it from. Probes inside read that instance’s values, logic parts show their levels, and parts appear in the Log as X1.R3.
Tips#
- Grounds and power rails are shared with the circuit around the block; ports inside are local.
- A block can’t contain itself.
- Blocks are saved in the .coppa file, so it opens anywhere.
Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.