[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Netlist error



I think I also got caught by this problem.  Attached is a schematic
which shows the problem and a patch which seems to fix the problem
(though I've not extensively tested it).  It seems to be related to the
recent new attrib API changes by Peter.

Relevant output from 'gnetlist -v power.sch' without patch:

.....
component CONNPWR
        pin 2 (2) Vcc
                CONNPWR 2 [1423]
        pin 1 (1) Vcc
                CONNPWR 1 [1458]
        pin 3 (3) GND
                CONNPWR 3 [1469]
.....

with patch:

.....
component CONNPWR
        pin 2 (2) VLED
                CONNPWR 2 [1423]
        pin 1 (1) VCC
                CONNPWR 1 [1458]
        pin 3 (3) GND
                CONNPWR 3 [1469]
.....

Robert


On Wed, Aug 05, 2009 at 11:58:01AM -0700, Gary L. Roach wrote:
> When I run gsch2pcb, the netlist that is generated always ties my 
> +275VDC output to the +275V Return. This shorts all the components tied 
> to the high side to the components tied to ground. I am using the 
> generic Input/Output symbol output-1.sym for both  connections. A drc2 
> check on the schematic says that my input pins aren't marked for pintype 
> (not true) but nothing else. I'm using Debian Lenny distribution.
> 
> I'm not sure what information is needed to make sense of this. So please 
> ask.
> 
> Gary Roach
> 
From e4e79e71eb7cf8fa7c2f8d796a92bba37292e294 Mon Sep 17 00:00:00 2001
From: Robert Fitzsimons <robfitz@xxxxxxxx>
Date: Mon, 10 Aug 2009 15:26:44 +0100
Subject: [PATCH] gnetlist: Fix problem with attached net attribute not being honored.

Seems to be an artifact introduced by the change to use the new
attrib API (b4996e267b5d9696f7e8122c40b31482ef852904).

Signed-off-by: Robert Fitzsimons <robfitz@xxxxxxxx>
---
 gnetlist/src/s_netattrib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gnetlist/src/s_netattrib.c b/gnetlist/src/s_netattrib.c
index b813869..addb9d3 100644
--- a/gnetlist/src/s_netattrib.c
+++ b/gnetlist/src/s_netattrib.c
@@ -279,7 +279,7 @@ char *s_netattrib_net_search (OBJECT * o_current, char *wanted_pin)
 
     start_of_pinlist = char_ptr + 1;
     current_pin = strtok (start_of_pinlist, DELIMITERS);
-    while (current_pin && !return_value) {
+    while (current_pin && return_value) {
       if (strcmp (current_pin, wanted_pin) == 0) {
         g_free (return_value);
         return net_name;
-- 
1.6.3.3

v 20090328 2
C 40000 40000 0 0 0 title-B.sym
C 43300 49000 1 0 0 generic-power.sym
{
T 43500 49250 5 10 1 1 0 3 1
net=VCC:1
}
C 43400 48100 1 0 0 gnd-1.sym
C 43800 48700 1 0 0 generic-power.sym
{
T 44000 48950 5 10 1 1 0 3 1
net=VLED:1
}
C 41300 48200 1 0 0 connector3-1.sym
{
T 43100 49100 5 10 0 0 0 0 1
device=CONNECTOR_3
T 41300 49300 5 10 1 1 0 0 1
refdes=CONNPWR
}
N 43000 49000 43500 49000 4
N 43000 48700 44000 48700 4
N 43000 48400 43500 48400 4

_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user