Mail Archives: geda-user/2018/07/28/10:06:19
Thanks for the quick reply.
On Sat, Jul 28, 2018 at 03:10:07PM +0200, Roland Lutz wrote:
> On Sat, 28 Jul 2018, Chris Green wrote:
> > I'm trying to create sub-circuits and failing miserably, can anyone
> > tell me step by step how to do it please.
>
> I added a detailed explanation here:
> http://wiki.geda-project.org/geda:hierarchy
>
Yes, I read that but still couldn't work out how to do it. I am only
using gschem, I'm not doing any PCB layout or netlist extraction.
> > I gather that the sub-circuit has to be a .sch file with, somewhere, a
> > 'source=name' attribute, or does that have to be an attribute on the
> > parent circuit? That's the problem, I'm very unclear as to where and
> > how one adds the source= attribute.
>
> The source= attribute needs to be added on the component in the parent
> schematic which is to be replaced by the subschematic. The subschematic
> .sch file needs to be in a directory which has been added as a source
> library (via the "source-library" Scheme procedure in gafrc).
>
What sort of 'component in the parent schematic' is needed though?
This is where I'm stuck. Do I just add any old component and then add
a 'source=name' attribute to that?
... ah, I think I have it. What I need to do is create a symbol,
probably just a box with a bit of text on it and add the 'source=name'
to that. Then I need to set up a one-to-one correspondence between
pins on the symbol and in/out connectors on the sub-schematic.
--
Chris Green
- Raw text -