I would like to have a symbol for an inverter which inside is implemented with a certain arrangement of n/pMOS, but beside creating the symbol, I cannot specify its implementation. Is such feature not available in kicad?
I tried using hierarchical sheets, but they don’t seem to work well with this incapsulation approach.
Hierarchical symbols with underlying schematics is not currently possible in Kicad.
Having said that, I have been working to implement this capability over the last couple of years so that I may use kicad as part of an IC design flow. My interest is system and transistor level circuit simulation using a variety of spice simulators. The pll example schematic I have attached is composed of hierarchical symbols pointing to either underlying schematics or spice netlists within a spice library. Some of the underlying schematics include gates that point to transistor level schematics. I added a custom hierarchical spice netlister to my design framework to make all this work, a significate effort as it turned out. It is fairly far along at this point but still testing.
I think he wants subcircuits that can be wrapped up and used like a symbol. I have wanted those at times. There has been discussion about this in the past, I forget the term used, might be something like “design block”. I’m sure there is a feature request in Gitlab for it.
That looks exactly what I’ve been thinking. I’m not really in the field of analog design, I’ve been curious to learn it tho and was on the look out for a decent schematic editor. Looking at the link posted by @retiredfeline, such feature does not seem to get support anytime soon sadly
You can make this happen with the schematic sheets.
You could have a folder full of logic gates, each one is a kicad_sch that implements the desired logic gate.
It won’t be a symbol library but it will be some kind of library.
Then you can add this sheet to another sheet as instances as they were symbols.
You can use them as blocks, to keep it simple. Or you can play with other features to make it more visual like this…
Now if you are looking to have the simulation working. You can make a symbol exactly was you want, and the attach a spice model to it. This would be easier.
I just create symbols. A rectangle with a number of pins is really easy to do. I’ve made symbols for Arduino boards etc. I find a special symbol is much easier than any hierarchical situation.
I think once you get through the 1st symbol you’ll find it easy for the 2nd.