www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/07/01/21:44:47

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: [geda-user] gnetlist complains about same component/net in two subsheets
(was Re: [geda-user] how to find sch-sym depenencies for Makefile)
In-reply-to: <alpine.DEB.2.21.2107020011430.5933@nimbus>
References: <20210701152018 DOT F248283D521B AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2107011920230 DOT 3544 AT nimbus> <20210701184511 DOT 1646D83D521B AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2107020011430 DOT 5933 AT nimbus>
Comments: In-reply-to Roland Lutz <rlutz AT hedmen DOT org>
message dated "Fri, 02 Jul 2021 00:12:38 +0200."
Mime-Version: 1.0
Message-Id: <20210702014317.5355E83D521B@turkos.aspodata.se>
Date: Fri, 2 Jul 2021 03:43:17 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
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

Roland Lutz:
> On Thu, 1 Jul 2021, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
...
> > error: refdes conflict across hierarchy: refdes `_M1' is used by package 
> > `M1' on page `_' and by package `M1' on page `_'
> > error: net name conflict across hierarchy: net name `_/GND' is used by 
> > net `GND' on page `_/' and by net `GND' on page `_/'
> 
> > they are supposed to be the same component, so no conflict was intended, 
> > they were intended to be the sam thing, same with the net name.
> 
> I don't think I understand what you are doing here.  Do you have two 
> components called `_' and two components component called `_/'?  Or is it 
> one component each with multiple source schematics?

"_" is about refdes's, "_/" is about nets.

Instead of putting everything in one .sch, I have one top.sch:

$ cat top.sch
v 20210626 2
C 3200 12000 1 0 0 source.sym
{
T 3400 13400 5 12 1 1 0 0 1
source=smarc_iMX8MM_power_connection.sch
T 3300 12100 5 10 1 0 0 0 1
refdes=_
}
C 3200 9200 1 0 0 source.sym
{
T 3400 10600 5 12 1 1 0 0 1
source=smarc_iMX8MM_power.sch
T 3300 9300 5 10 1 0 0 0 1
refdes=_
}

which is about different parts in the design, they are available here:
http://aspodata.se/git/openhw/share/gschem/_design_parts/

Now, some things (the component M1, and the net GND) in the first
subsheet has it in common with the second. To that end booth C's
have the same refdes. Since I cannot have an empty refdes,
I'm using "_" which is somewhat invisible.

Since refdes-attribute-separator="" and the refdes in each subsheet is 
"M1", the final refdes becomes "_M1". For nets, the separator is the 
default "/", the final net becomes "_/GND".

So, this is just me trying to be smart and not have everything in one
giant sch-file.

Regards,
/Karl Hammar

- Raw text -


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