Electronic – Reusing/linking component groups in kicad schematics

kicad

I just started playing around with KiCad, and still try to get my head around proper hirarchy management.

Let's say I want to create a simple and-gate with transistors, but need to use this gate multiple times in a schematic.

Is there a way to define the and-gate schematic once, and reusing it multiple times?

Ideally including changing of referenced sub-schematics. e.g. if I spot an error in a gate, I can change it once, and it gets fixed everywhere it was used.

It's somewhat like components, but actually using a circut instead of just a single component.

I know I can copy&paste a sub-sheet, but that copies annotations as well and removes the possibility to change a whole schematic later on

Best Answer

Yes, with subsheets.

If you create a subsheet, you are asked for the sheet name, and a file name. The sheet name must be unique in the project, but the same file name can be used multiple times in the same project.

Reference designators are specific to the sheet path, so the "same" component may be named Q1 on one instance and Q2 on another -- use the hierarchy navigator to select which one you wish to edit.