X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Thu, 22 Oct 2015 19:32:38 +0200 (CEST) X-X-Sender: igor2 AT igor2priv To: geda-user AT delorie DOT com X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: [geda-user] A lesson from gnet-makefile In-Reply-To: <20151022170259.GA28154@recycle.lbl.gov> Message-ID: References: <201510220112 DOT t9M1Ccfq013731 AT envy DOT delorie DOT com> <201510220136 DOT t9M1a5Uw015222 AT envy DOT delorie DOT com> <201510220149 DOT t9M1nrIe016145 AT envy DOT delorie DOT com> <20151022023002 DOT GA25952 AT recycle DOT lbl DOT gov> <201510221643 DOT t9MGhFfg003310 AT envy DOT delorie DOT com> <20151022170259 DOT GA28154 AT recycle DOT lbl DOT gov> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 Precedence: bulk On Thu, 22 Oct 2015, Larry Doolittle wrote: > DJ - > > On Thu, Oct 22, 2015 at 12:43:15PM -0400, DJ Delorie wrote: >> One of our old problems is "how to tell where a short really is". >> Perhaps that problem and "where is a star ground" are really the same >> problem? We'd just need some way of saying "we expect these nets to >> be shorted". > > No, that's the wrong answer, since it's exactly the same as having > one net. We're looking for a way to say "we expect these nets to be > shorted _in_exactly_one_place". And an acceptable solution involves > specifying where that place is. > I agree. In pcb-rnd I solve the "where the short is" problem using the minimal cut algorithm. It basically says "let's consider combination of cuts that would separate the shorted nets so that the problem is resolved; now let's find the solution(s) with the minimal number of cuts". A cut is a deletion of an object (e.g. a trace or a via). While working on it, I enumerated cases in example inputs and found that there are often more than one solution to the problem. Even using different weights on edges, it's easy to construct symmetrical shorts that will yield two or more equally good solutions. For the star topology this means two equally good looking star points. Even if it is prepared to accept only one short, how the algorithm would decide which one is the good one? I think Larry is right about PCB needs more information on the intention of the designer. I'd go one step further: it would be cool if we could pass generic DRC rules/considerations from the schematics to PCB, e.g. "the distance between this pin and that pin should be less than x" or if we somehow explain the star topology "the distance between the star point and this pin should be less than x". Regards, Igor2