ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/02/13/18:40:02

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Mime-Version: 1.0 (Apple Message framework v1085)
Subject: Re: [geda-user] gnetlist extractor
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <CAB3Sx6eJgJTUzRuxU=xt3X2cp0yufh9bkNyLiv+AKUds3dpdCQ@mail.gmail.com>
Date: Wed, 13 Feb 2013 16:39:42 -0700
Message-Id: <A0C875B9-83D2-4367-9067-A1DDC1D56632@noqsi.com>
References: <CAB3Sx6eJgJTUzRuxU=xt3X2cp0yufh9bkNyLiv+AKUds3dpdCQ AT mail DOT gmail DOT com>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1085)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r1DNdlPE025796
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

On Feb 12, 2013, at 10:31 PM, bsalinux AT gmail DOT com wrote:

> Hello,
> 
> Is gnetlist extractor part of gEDA?

Yes. There are two gnetlist back ends for SPICE that are part of gEDA: "spice" and "spice-sdb". There is some pretty good documentation on spice-sdb at http://www.brorson.com/gEDA/SPICE/intro.html.

I have an experimental SPICE back end under development at https://github.com/noqsi/gnet-spice-noqsi.

> Are there any other extractors available?

Not that I know of.

> 
> I tried to do a gnucap simulation involving BS170 MOSFET and the
> extractor did not extract / interpret four contacts for the MOSFET as
> expected by GNUCAP.
> 
> What was extracted was:
> 
> M1  4 1 0 bs170
> 
> instead of (substrate connected to source)
> 
> M1  4 1 0 0 bs170

The "spice" and "spice-sdb" back ends assume that the SPICE device has the same number of connections as the symbol, so if you use a three terminal symbol, you'll get the result you're seeing. One way to get around this is to have the model-name attribute refer to a three terminal subcircuit in which the four terminal primitive device is embedded. Be sure to use a refdes starting with "X" in this case. Or you can use a four terminal symbol. 

My spice-noqsi back end is more flexible, with a spice-prototype attribute that you can attach to a symbol to give the netlister more detailed instructions. For the nmos-3 symbol, you could use use "spice-prototype=M? #D #G #S #S bs170".

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019