Hi I discovered a bug in the partslist[1-3] backend for gnetlist when processing hierarchical designs. It strips the refdes of sub-schematic symbols from the sub-schematic components meaning you end up with duplicate refdes's. I've attached a patch which should fix this issue.
To reproduce the problem: Create master schematic with symbol 'S1', attach 'source' attribute pointing to another schematic; also add a resistor 'R1'. In the other schematic add a resistor 'R1'. Run the master schematic through gnetlist with the 'partslist1' backend and there are two instances of 'R1' present. I would expect the resistor in the sub-schematic to have the refdes 'S1/R1'. Thanks Richard
diff --git a/gnetlist/scheme/gnet-partslist-common.scm b/gnetlist/scheme/gnet-partslist-common.scm index 943b28e..eac539e 100644 --- a/gnetlist/scheme/gnet-partslist-common.scm +++ b/gnetlist/scheme/gnet-partslist-common.scm @@ -21,7 +21,7 @@ (let ((package (car packages))) (if (string=? (get-device package) "include") (get-parts-table (cdr packages)) - (cons (list (gnetlist:get-package-attribute package "refdes") + (cons (list package (get-device package) (get-value package) (gnetlist:get-package-attribute package "footprint")) ;; sdb change
_______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user