From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 17:40:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B30E71C for ; Sun, 28 Oct 2012 17:40:22 +0000 (UTC) (envelope-from russo@bogodyn.org) Received: from bogodyn.org (mail.bogodyn.org [69.49.164.40]) by mx1.freebsd.org (Postfix) with ESMTP id AF3498FC0A for ; Sun, 28 Oct 2012 17:40:21 +0000 (UTC) Received: from bogodyn.org (localhost [127.0.0.1]) by bogodyn.org (8.14.5/8.14.5) with ESMTP id q9SHeHfm098783; Sun, 28 Oct 2012 11:40:17 -0600 (MDT) (envelope-from russo@bogodyn.org) Received: (from russo@localhost) by bogodyn.org (8.14.5/8.14.5/Submit) id q9SHeHH8098782; Sun, 28 Oct 2012 11:40:17 -0600 (MDT) (envelope-from russo) Date: Sun, 28 Oct 2012 11:40:17 -0600 From: Tom Russo To: freebsd-questions@freebsd.org Subject: Re: OT: gEDA, SPICE, electronic cad/simulation Message-ID: <20121028174017.GB37922@bogodyn.org> References: <20121028172725.GA37922@bogodyn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121028172725.GA37922@bogodyn.org> Organization: International Institute for Advanced Quantum Bogodynamical Studies User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on bogodyn.org Cc: Da Rock X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: russo@bogodyn.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 17:40:22 -0000 On Sun, Oct 28, 2012 at 11:27:25AM -0600, we recorded a bogon-computron collision of the flavor, containing: > > 3) SPICE (and ng-spice) always uses the first character of a device line to > determine the type of the device. While most designers will draw a > circuit with an IC in it and give the IC a name like "U1", the character > "u" in the first position on a device line means "lossy transmission line" > in spice, not "IC." Thus, in your netlist you're simply telling the > simulator to create a lossy transmission line using nodes "0", "4", "3" > and "+9v" as its four ports, and it's getting confused by all the extra > parameters on the line. My mistake. "U" is the Uniform Lossy RC line, not the lossy transmission line. The URC device takes 3 nodes and a model name, and so it's used 0, 4, and 3 as the nodes, and then gotten confused about the unknown model named "+9v". It then gets confused about the remaining parameters on the line. Point remains the same, you can't specify an IC named "U1" in a spice netlist by calling the device U1. You need to use an X subcircuit instantiation line and an associated .subckt subcircuit definition. -- Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/ Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM "And, isn't sanity really just a one-trick pony anyway? I mean all you get is one trick, rational thinking, but when you're good and crazy, oooh, oooh, oooh, the sky is the limit!" --- The Tick