www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/07/28/10:06:19

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Originating-IP: 84.92.49.234
Date: Sat, 28 Jul 2018 15:04:48 +0100
From: Chris Green <cl AT isbd DOT net>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Hierarchy in gschem - how?
Message-ID: <20180728140448.GA22943@esprimo>
Mail-Followup-To: geda-user AT delorie DOT com
References: <20180728125649 DOT GA22385 AT esprimo>
<alpine DOT DEB DOT 2 DOT 20 DOT 1807281507220 DOT 2636 AT nimbus>
MIME-Version: 1.0
In-Reply-To: <alpine.DEB.2.20.1807281507220.2636@nimbus>
User-Agent: Mutt/1.6.1 (2016-04-27)
X-Spam-Level: *
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019