Mail Archives: geda-user/2013/01/04/19:36:36
--Apple-Mail-24--1065627795
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
On Jan 3, 2013, at 5:55 AM, Abhijit Kshirsagar wrote:
> Hi all,
>=20
> I'm using gschem/gnetlist for creating hierarchical circuits that I =
simulate with ngSPICE. I have the three questions:
>=20
> 1. I don't understand the append/prepend setting. =
(hierarchy-uref-order "append") or (hierarchy-uref-order "prepend")
> Append generates a refdes like U1/R2; and prepend generates R1/U1. =
shouldn't it be the other way around?=20
Well, I suppose it's intended to be like pathnames.
>=20
> 2. The default setting seems to be "append" for geda-gaf 1.6 and =
beyond - but was "prepend" earlier? I can't seem to find if it changed =
anywhere in the source code tree.
I don't think it has changed.
>=20
> 3. Why is "append" the default? To me "prepend" seems to make sense - =
at least for generating spice netlists.
Well, spice-sdb is supposed to fix the prefixes for SPICE. But my own =
approach is to turn hierarchy off in gnetlist. Put (hierarchy-traversal =
"disabled") in your gnetlistrc. Then I netlist subcircuits separately =
and let SPICE do the hierarchy expansion. See =
http://www.brorson.com/gEDA/SPICE/intro.html. Some SPICE dialects, =
including ngspice, have historically had trouble with memory leaks =
provoked by large flat netlists, and it's usually faster to let SPICE do =
the expansion.
>=20
> Best Regards,
> ~Abhijit K
>=20
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail-24--1065627795
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><br><div><div>On Jan 3, 2013, at 5:55 AM, Abhijit Kshirsagar =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">Hi all,<br><br>I'm using gschem/gnetlist for creating =
hierarchical circuits that I simulate with ngSPICE. I have the three =
questions:<br><br>1. I don't understand the append/prepend setting. =
(hierarchy-uref-order "append") or (hierarchy-uref-order "prepend")<br>
Append generates a refdes like U1/R2; and prepend generates R1/U1. =
shouldn't it be the other way around? =
<br></blockquote><div><br></div>Well, I suppose it's intended to be like =
pathnames.</div><div><br><blockquote type=3D"cite">
<br>2. The default setting seems to be "append" for geda-gaf 1.6 and =
beyond - but was "prepend" earlier? I can't seem to find if it changed =
anywhere in the source code tree.<br></blockquote><div><br></div>I don't =
think it has changed.</div><div><br><blockquote type=3D"cite"><br>3. Why =
is "append" the default? To me "prepend" seems to make sense - at least =
for generating spice netlists.<br></blockquote><div><br></div>Well, =
spice-sdb is supposed to fix the prefixes for SPICE. But my own approach =
is to turn hierarchy off in gnetlist. Put (hierarchy-traversal =
"disabled") in your gnetlistrc. Then I netlist subcircuits separately =
and let SPICE do the hierarchy expansion. See <a =
href=3D"http://www.brorson.com/gEDA/SPICE/intro.html">http://www.brorson.c=
om/gEDA/SPICE/intro.html</a>. Some SPICE dialects, including ngspice, =
have historically had trouble with memory leaks provoked by large flat =
netlists, and it's usually faster to let SPICE do the =
expansion.</div><div><br><blockquote type=3D"cite">
<br>Best Regards,<br>~Abhijit K<br><br>
</blockquote></div><br><div>
<span class=3D"Apple-style-span" style=3D"font-size: 12px; "><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">John Doty<span =
class=3D"Apple-converted-space"> <span =
class=3D"Apple-converted-space"> </span><span =
class=3D"Apple-converted-tab"> <span =
class=3D"Apple-converted-space"> </span></span></span>Noqsi =
Aerospace, Ltd.</font></p><p style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><a href=3D"http://www.noqsi.com/">http://www.noqsi.com/</a></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:jpd AT noqsi DOT com">jpd AT noqsi DOT com</a></font></p><br =
class=3D"Apple-interchange-newline"></span>
</div>
<br></body></html>=
--Apple-Mail-24--1065627795--
- Raw text -