X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=e/ys7W+GqQZjwUY/oRw3ECSmPtaSLE+Cu/OCbjE1lSU=; b=sU7QN8BOlVGb4KG7HU2GYzzqGNFSXaTOV4EZfsndjgx+JYhJLH0aTteijWhoury3xX bv01O/2bmhx+Xsu9oDuEziLZWtbe8mp1A5V4irgfcLuKI3EzvfJPcQdf13EwDC2TLe/i Il8+0BXq4lGzeZ39g3nwqA2pHmV43lIfErvjCfeut+AZZQ78nZcG9wOa1x4ksqNuC0cm Hv+yK0/8QriVkoqvcHN4LDDo57wXxrghWvceQ5WgWikwEuHt9yFmehOAMJAfvj9WIuM9 vAlgYWu+s3taXUFYUGVWRdJ+qL4LCRWDQCsEu8GsmlxQswDKVRupZ/ZpyuZyZqOMMZMJ NYrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=e/ys7W+GqQZjwUY/oRw3ECSmPtaSLE+Cu/OCbjE1lSU=; b=XfR4OEbBQsGAgbwmMaTJe2mtQ99sjilt4oX9FYYCvBzq8GuBawr2E9cQnSbkly52aM rc/pjtvVsdCMH68h2MjtqW8RPVcs0IvV434NuIn/rh0DsD5VT9M/fr9d30X/RVSRvPk1 0n9/cTno3M0tI9jhOkvR91WdVUr15VsWNcN2y8uKpT2vLFkh/IHDyLA2V/K0/AFV+k9v VfH0UrSUjCNCPX0zVrV/SjdcQ+sJaGZRxgWFQXaWJUpENsPkSCEfj8jQ31qFKHrsOdcw 269bM7MTGYfMmx4/nOP0QXAr58+yGgUFaogqOe1txL8EBVDGhW9rEFeCIGKx1ghpHb1F r9HA== X-Gm-Message-State: ALyK8tJe8I47CewJCX1mrt6507hOo4yNwOX8bQMAwuvYvaSAJ+4Mc4wOHM3yJUNSWVq0KZwBdQqQzjzUdiCaHg== MIME-Version: 1.0 X-Received: by 10.36.22.130 with SMTP id a124mr4952825ita.58.1464539753091; Sun, 29 May 2016 09:35:53 -0700 (PDT) In-Reply-To: References: <20160528103918 DOT 82b3ae3b0e381a5e72b6b4cb AT gmail DOT com> Date: Sun, 29 May 2016 09:35:53 -0700 Message-ID: Subject: Re: [geda-user] Hierarchial schematics, gnetlist, and attribs From: "Ouabache Designworks (z3qmtr45 AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=001a114453c2be1cc90533fdbbb0 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 --001a114453c2be1cc90533fdbbb0 Content-Type: text/plain; charset=UTF-8 On Sat, May 28, 2016 at 3:14 PM, Shashank Chintalagiri ( shashank DOT chintalagiri AT gmail DOT com) [via geda-user AT delorie DOT com] < geda-user AT delorie DOT com> wrote: > The bom backend also respects the contents of the attribs file - I've > successfully been able to extract all manner of attributes using that > method. > > When traversing the hierarchical schematic, though, there doesn't seem > to be an obvious way to access the attributes of the 'parent'. I will > try to use the hierarchical traversal disabled switch, though I would > like to be able to do it on a per-run basis. i.e., I would first get > bom.net with the bom backend, and then bom-top.net without > hierarchical traversal to get a list of all the sources and associated > refdes's of the symbols of subcircuits. Doing though by changing the > gafrc file seems inappropriate. > > The ideal solution, though I'm not quite sure how to implement it, > would be if when traversing hierarchical schematics, the 'child' > packages inherit all the attributes of the 'parent' - so that any > attributes of the parent which the child does not override, will > trickle through down the hierarchy tree (however deep it may be) and > remain accessible in the final, flattened BOM. > A child should never override anything passed down from it's parent. Each child must define all of its attributes along with a default value. The parent can then override any or all of the child's attributes as needed. If it is not defined in the child then it is not used in the child. This can get complicated, for example I have a VGA Interface module with an attribute to configure as either 8 bit or 24 bit color. This attribute is configured in the top level and passed down into the interface module. The setting of this attribute will affect to bus sizes on the RGB signals so that the intermediate levels will need to get the sizes from the lower level that has decoded them from the top level attribute. The best solution is a new tool that will elaborate the top level design into a "uniquifed" new design that will give you your netlists. John Eaton --001a114453c2be1cc90533fdbbb0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sat, May 28, 2016 at 3:14 PM, Shashank Chintalagiri (shashank DOT chintalagiri AT gmail DOT com) [v= ia geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
The bom backend also respects the contents of the attribs file - I'= ;ve
successfully been able to extract all manner of attributes using that
method.

When traversing the hierarchical schematic, though, there doesn't seem<= br> to be an obvious way to access the attributes of the 'parent'. I wi= ll
try to use the hierarchical traversal disabled switch, though I would
like to be able to do it on a per-run basis. i.e., I would first get
bom.net= with the bom backend, and then bom-top.net without
hierarchical traversal to get a list of all the sources and associated
refdes's of the symbols of subcircuits. Doing though by changing the gafrc file seems inappropriate.

The ideal solution, though I'm not quite sure how to implement it,
would be if when traversing hierarchical schematics, the 'child' packages inherit all the attributes of the 'parent' - so that any attributes of the parent which the child does not override, will
trickle through down the hierarchy tree (however deep it may be) and
remain accessible in the final, flattened BOM.
<= div>
A child should never override anything passed down from = it's parent.

Each child must define all of its attri= butes along with a default value.
The parent can then overri= de any or all of the child's attributes as needed.
If it = is not defined in the child then it is not used in the child.

This can get complicated, for example I have a VGA Interfac= e module with
an attribute to configure as either 8 bit or 24= bit color. This attribute is configured
in the top level and= passed down into the interface module.

The setting of th= is attribute will affect to bus sizes on the RGB signals so that the
intermediate levels will need to get the sizes from the lower level= that has
decoded them from the top level attribute.

=
The best solution is a new tool that will elaborate the top = level design into a
"uniquifed" new design that wil= l give you your netlists.


John Eaton




=C2=A0
--001a114453c2be1cc90533fdbbb0--