For PCB design I use the open-source schematic and PCB design software KiCAD. Its a great program and has gotten a lot better recently. It is unlimited in size, components and number of layers and has lots of the features of very expensive professional PCB layout software.

There are times when having just one schematic sheet is not enough space. Also it is useful to break apart the schematic to keep a nice structure and order to the design. This is a post on having multiple sheets within the schematic using KiCAD, which is called “hierarchical sheets”. These are my notes on doing this and any problems encountered.

I found this tutorial:

http://uhaweb.hartford.edu/kmhill/suppnotes/KiCadDia/KiCadHierarchy01/KiCadHierarchy01.pdf

Which was exactly what I needed and guides you through the process of creating a multiple page schematic with hierarchy.

There is also some information (but not a whole tutorial) here:

http://en.wikibooks.org/wiki/Kicad/eeschema/Hierarchical_Sheets

Here are some screen shots and notes for a project I produced with hierarchical sheets:

alt

On your sheet you can place a Hierarchical Sheet from the Place menu – this will bring up a pop-up with the schematic name.

alt

I used more human readable file-names. When I needed to repeat parts of the schematic, I created a sheet and the copied and pasted it within the PCB design folder. You can then create more Hierarchical sheet boxes and point them to the copies of the sheet. This will give you a number of copies of the same schematic, but you will need to clear and then re-run the annotation, as they will have the same part IDs, which will confuse things.

alt

Right-click on the Hierarchical Sheet box and then ‘Enter Sheet’ to produce your schematic.

alt

To link input data into your sheet, you can either use ‘Global’ variable names or you can attach Hierarchical Pins to the sheet. You need to attach one to the Hierarchical Sheet box.

alt

This will bring up a pop-up box and you can choose the name and direction.

alt

To connect to the pin you need to have a ‘Hierarchical Label’ within the Hierarchical sheet. This connects to the pin on the main overview sheet. You must call it by the same name, or else it will not be connected.

alt

alt

Here is an ‘overview’ page which has six heirachical sheets. To see the schematics just right-click and  ‘Enter sheet’.

alt

alt

This shows the schematic within the Hierarchical Sheet box. The red circle shows four of the ‘Hierarchical Labels’ which connect through to ‘Hierarchical Pins’ on the main sheet.

This is a great way to organise my larger schematics and works very well. Please follow the tutorial linked at the beginning of this post, as that was most helpful to me. You do have to be careful with names of labels, but as long as you are logical then this is not so difficult. When you create the Netlist and the board, then double check that everything you think is connected IS actually connected.

This just makes me like KiCAD even more…

 

7 responses to “Multiple Sheet Schematics in KiCAD

  1. Hi!..
    I created multiple schematic sheets and in the end I tried to annotate all the components but the numbers are overlapping i.e., I am getting multiple reference after annotating!..
    Can I know the solution please?

    1. Try selecting “Reset Existing Annotation” on the “Annotate Schematic” dialog.

      Also do the annotation from the root schematic.

  2. Hi.

    Thanks for the tutorial.
    Now that I have created the schematics, is there any way to generate the netlist in this organized way?

    I mean, any manner of avoiding the huge amount of components overlapped in the PCB new and doing a modular routing.

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *