Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-10 Thread evan foss
On Sun, Feb 8, 2009 at 1:13 PM, al davis  wrote:
> On Sunday 08 February 2009, Christoph Lechner wrote:
>> > How can it know?
>>
>> Well, I thought: maybe there's some attribute dedicated to
>> this case ...
>
> The Spice netlister is loaded with special cases, because the
> Spice syntax is loaded with special cases.
>
>>
>> > I recommend that you add the X on the schematic.  Doesn't
>> > the netlister just pass the label through?
>>
>> Not really. If I call the diode XD108, the netlister calls it
>> DXD108.
>
> *&%^(*^Z^^^(^%((%
>
> Like I say  "This is one of the reasons that those in the
> know are pressuring for a shift away from the Spice format."
>
>> Wouldn't it be a work-around to call the diode U108? I'll try
>> that.
>
> No.  Then you will get DU108.

How about a plugin for gschem. It user would flag parts on a schematic
as using subcircuits. There should be a script to go threw and slap an
X before the refdes name or remove them at will?

>
> On Sunday 08 February 2009, al davis wrote:
>>>  I have
>>> been thinking of changing it to ignore the letter when the
>>> model name gives enough information to determine the type.
>
> That does it ..  I guess the only sane thing to do is to make
> the change.  It really makes it easier to ignore the letter,
> considering plugin conflicts.
>
> It is really worse than it looks on the surface.
>
>
> ___
> geda-user mailing list
> geda-user@moria.seul.org
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>



-- 
http://www.coe.neu.edu/~efoss/
http://evanfoss.googlepages.com/


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread Christoph Lechner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stuart Brorson wrote:
>>> I recommend that you add the X on the schematic.  Doesn't the
>>> netlister just pass the label through?
>> Not really. If I call the diode XD108, the netlister calls it DXD108.
>>
>> Wouldn't it be a work-around to call the diode U108?
> 
> I doubt that will work.
You're right. It didn't work :(

> 2. Change the DEVICE attribute of your diode to something other than
> DIODE.  I forget what the desired attribute value should be, but it
> probably doesn't matter if you just give the symbol an X refdes.
That's what I did now. I set the DEVICE attribute to BZX84C18, the name
of the part. The refdes was changed to UD108, so the spice-sdb netlister
now calls the part XUD108.
That's OK for me, although this designator is a little bit ugly.

- - cl

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjzG1Wo2QgtqY4K8RAgpRAJ4oMh0v8j6EnGZYHkFAoI3wgvlGngCfe36Q
GJfn56dJhT7miOyLrJjRSgQ=
=esEE
-END PGP SIGNATURE-


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread al davis
On Sunday 08 February 2009, Christoph Lechner wrote:
> > How can it know?
>
> Well, I thought: maybe there's some attribute dedicated to
> this case ...

The Spice netlister is loaded with special cases, because the 
Spice syntax is loaded with special cases.

>
> > I recommend that you add the X on the schematic.  Doesn't
> > the netlister just pass the label through?
>
> Not really. If I call the diode XD108, the netlister calls it
> DXD108.

*&%^(*^Z^^^(^%((%

Like I say  "This is one of the reasons that those in the 
know are pressuring for a shift away from the Spice format."

> Wouldn't it be a work-around to call the diode U108? I'll try
> that.

No.  Then you will get DU108.

On Sunday 08 February 2009, al davis wrote:
>>  I have
>> been thinking of changing it to ignore the letter when the
>> model name gives enough information to determine the type.

That does it ..  I guess the only sane thing to do is to make 
the change.  It really makes it easier to ignore the letter, 
considering plugin conflicts.

It is really worse than it looks on the surface.


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread Stuart Brorson
>> I recommend that you add the X on the schematic.  Doesn't the
>> netlister just pass the label through?
> Not really. If I call the diode XD108, the netlister calls it DXD108.
>
> Wouldn't it be a work-around to call the diode U108?

I doubt that will work.

IIRC, spice-sdb looks for the DEVICE attribute attached to each symbol
to know what to do.  If your DEVICE attribute is DIODE, then spice-sdb
will emit a D line, whether you want one or not.

I see one of two things you can do:

1. Copy the example presented by the RF amp circuit in the gEDA
examples directory.  Create a top-level symbol showing your diode in a
box (to distinguish it from a real diode), give it refdes X,
create your sub-circuit schematic, and then use the hierarchy
exemplified in that example to link your sub-circuit to the main
circuit.

2. Change the DEVICE attribute of your diode to something other than
DIODE.  I forget what the desired attribute value should be, but it
probably doesn't matter if you just give the symbol an X refdes.

BTW:  If you can't see the DEVICE attribute from withing gschem,
either edit the .sym file with a text editor, or change your gafrc to
promote the DEVICE attribute.

HTH,

Stuart


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread Christoph Lechner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

al davis wrote:
> On Sunday 08 February 2009, Christoph Lechner wrote:
>> Some of the diodes in the circuit are modelled by a SUBCKT,
>> so I have to manually add a X prefix to these diode
>> identifiers in the SPICE netlist (for example D101 => XD101)
>> for the SPICE simulation to work. Because I hate this
>> somewhat:
>> How do I get spice-sdb to add the 'X' prefix automatically
>> like it does for example for ICs? I'm using the file and
>> model-name attributes to say what model to use.
> 
> How can it know?
Well, I thought: maybe there's some attribute dedicated to this case ...
> 
> I recommend that you add the X on the schematic.  Doesn't the 
> netlister just pass the label through?
Not really. If I call the diode XD108, the netlister calls it DXD108.

Wouldn't it be a work-around to call the diode U108? I'll try that.

- - cl

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjx1HWo2QgtqY4K8RAsJQAJ4mKA1aJXP6uPmj9B8pdZTXlNiYqQCff8Ae
JPQM1VTEpuK4pkKiv4kWxxs=
=qHAX
-END PGP SIGNATURE-


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread al davis
On Sunday 08 February 2009, Christoph Lechner wrote:
> Some of the diodes in the circuit are modelled by a SUBCKT,
> so I have to manually add a X prefix to these diode
> identifiers in the SPICE netlist (for example D101 => XD101)
> for the SPICE simulation to work. Because I hate this
> somewhat:
> How do I get spice-sdb to add the 'X' prefix automatically
> like it does for example for ICs? I'm using the file and
> model-name attributes to say what model to use.

How can it know?  You use a diode symbol, which is usually not a 
subckt.  What you see is the way Spice is.

I recommend that you add the X on the schematic.  Doesn't the 
netlister just pass the label through?

This is one of the reasons that those in the know are pressuring 
for a shift away from the Spice format.  If you use Gnucap with 
either Spectre or Verilog format, it doesn't care what the 
first letter is.  

Gnucap in Spice mode follows the Spice rules here, but I have 
been thinking of changing it to ignore the letter when the 
model name gives enough information to determine the type.  I 
don't know whether the change is a good idea or not.  It would 
not break anything.  It would just allow some that are now 
rejected as incorrect.




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: What is the logic in gnetlist/spice-sdb when to add a 'X' prefix to an identifier?

2009-02-08 Thread Christoph Lechner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I'm just doing SPICE simulation of a SMPS.

The schematics are drawn using gschem, the SPICE netlist is generated
using the gnetlist and the spice-sdb backend (I'm still running gEDA 1.4.0).

Some of the diodes in the circuit are modelled by a SUBCKT, so I have to
manually add a X prefix to these diode identifiers in the SPICE netlist
(for example D101 => XD101) for the SPICE simulation to work. Because I
hate this somewhat:
How do I get spice-sdb to add the 'X' prefix automatically like it does
for example for ICs? I'm using the file and model-name attributes to say
what model to use.

- - cl
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjwo3Wo2QgtqY4K8RAvv9AKCPu3mDUAOpK+1y2jS6VaShngz4CwCgvAbc
7CXrFCvC3WkPkE8icoGOSeo=
=X6om
-END PGP SIGNATURE-


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user