X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: [geda-user] gnetlist extractor From: John Doty In-Reply-To: Date: Wed, 13 Feb 2013 16:39:42 -0700 Message-Id: References: To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1085) Content-Transfer-Encoding: 8bit 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 Precedence: bulk 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