X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=87dXALuy9sPYC5pwNKCOyJIto36oQxESmRW+zrTdpZQ=; b=XU0fc9dwMMU1nOmF8/WlM4PJyfblIKQuFs2Xuk31pADp4JQobZ0xDvuIGqTbVobRQG HXZMc+JC7CmO/bbv6bZQnf/WkbFPYBJCsLZzK01oOqgMbGPqc0hn2DjddcDHG6MVAZC9 8L/sKDmt4k6yO7qhqJLc9jsNOfwrWy6PvXm/KkepgQN5q4Jiu1X0ldu5G/Qfrwr3WDDa hUYJSzB/jEIjYMqkFoe0+c5AzYgMy5C9NntZmQiWk0e/Hy+UJXaIavxJQ88qj0HHVqsi LK5IfIlFdaE/PskIRjodMlHGs2JHGyW05YDSRvtc+8pqq4/zp3OYJxWV+zP+nS51QCaj CwkQ== MIME-Version: 1.0 X-Received: by 10.195.12.202 with SMTP id es10mr52913470wjd.17.1375334151498; Wed, 31 Jul 2013 22:15:51 -0700 (PDT) Date: Thu, 1 Aug 2013 01:15:51 -0400 Message-ID: Subject: [geda-user] spice/subcircuit/pin order From: Nathan Stewart To: "geda-user AT delorie DOT com" Content-Type: multipart/alternative; boundary=047d7bb04b408c324204e2dbef5d Reply-To: geda-user AT delorie DOT com --047d7bb04b408c324204e2dbef5d Content-Type: text/plain; charset=ISO-8859-1 I'm trying to use the following model in circuit: http://www.onsemi.com/pub_link/Collateral/NDF02N60Z.SP3.TXT I don't see any errors, the netlister hooks it up. The simulation runs, But the pins are wrong, Gate is Drain, behaves as you'd expect it to given the wiring. (except for the part about exploding or punching the gate insulation :) I've swapped the pins in the symbol. I've swapped them in the model. But nothing appears to actually cause any behavior change. One thing I do notice however, is in the netlist, it looks like: 132 : ux3 7 drive 0 ndf02n60z It's refdes is X3, not UX3. All my other subcricuits with a refdes X look like this: 95 : .subckt opamp_3v3 1 2 81 The subcircuits which work don't appear to require any DEVICE attribute, but for some reason it gets treated incorrectly. With verbose turned on, the netlister says: Make second pass through design and write out a SPICE card for each component found. --- checking package = X3 device = SUBCIRCUIT Found subcircuit. Refdes = X3 Found .MODEL with model-file and model-name for X3 Checking prefix. Package prefix =X correct prefix =U nomunge mode = #f different-prefix=#t We'll handle the file contents later . . . Now oddly enough, the two identical(symbol, the models are copies of one another and differ only by an internal Vcc) opamp subcircuits appear to work but work differently. Found subcircuit. Refdes = X1.2 Found .SUBCKT with model-file and model-name for X1.2 Checking prefix. Package prefix =X correct prefix =X nomunge mode = #f different-prefix=#f We'll handle the file contents later . . . --- checking package = X2 device = unknown Found subcircuit. Refdes = X2 Model info not found in model file list. No model attribute either. Just write what we know. Can anyone shed some light on the different handling of these three subcircuits? --047d7bb04b408c324204e2dbef5d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm trying to = use the following model in circuit:
http://www.onsemi.com/pub_link/Collater= al/NDF02N60Z.SP3.TXT

I don't see any errors, the netlister hooks it up. The simula= tion runs, But the pins are wrong, Gate is Drain, behaves as you'd expe= ct it to given the wiring. (except for the part about exploding or punching= the gate insulation :)

I've swapped the pins in the symbol. I've swapped them in= the model. But nothing appears to actually cause any behavior change.
<= br>
One thing I do notice however, is in the netlist, it looks like:
=A0=A0 132 : ux3 7 drive 0 ndf02n60z

It's refdes is X3= , not UX3. All my other subcricuits with a refdes X look like this:

= =A095 : .subckt opamp_3v3 1 2 81

The subcircuits which work do= n't appear to require any DEVICE attribute, but for some reason it gets= treated incorrectly. With verbose turned on, the netlister says:

Make second pass through design and write out a SPICE card for each com= ponent found.
--- checking package =3D X3
=A0=A0=A0 device =3D SUBCIR= CUIT
Found subcircuit.=A0 Refdes =3D X3
Found .MODEL with model-file = and model-name for X3
Checking prefix.=A0 Package prefix =3DX
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 correct prefix =3DU
=A0=A0 nomunge mode =3D #f
= =A0 different-prefix=3D#t
We'll handle the file contents later . . .=


Now oddly enough, the two identical(symbol, the models ar= e copies of one another and differ only by an internal Vcc)=A0 opamp subcir= cuits appear to work but work differently.

Found subcircuit.=A0 Refdes =3D X1.2
Found .SUBCKT with model-= file and model-name for X1.2
Checking prefix.=A0 Package prefix =3DX
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 correct prefix =3DX
= =A0=A0 nomunge mode =3D #f
=A0 different-prefix=3D#f
We'll handle the file contents later . . .

--- checking package = =3D X2
=A0=A0=A0 device =3D unknown
Found subcircuit.=A0 Refdes =3D X= 2
Model info not found in model file list.=A0 No model attribute either.= =A0 Just write what we know.


Can anyone shed some light on the different handling of these= three subcircuits?


--047d7bb04b408c324204e2dbef5d--