Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsElectronicsBasicsRepairDesignCADComponentsEquipmentElectrical Engineering
ElectronicsKB.com
Contact UsLink To UsSearch & Site Map

Electronics Forum / CAD / September 2003



Tip: Looking for answers? Try searching our database.

HSpice to PSpice Library Converter Added to Webpage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Thompson - 24 Sep 2003 02:29 GMT
An HSpice to PSpice CMOS Library Converter has been added to the Tool
page of my website.  (Courtesy of Brian Hirasuna of the Cadence PSpice
Support Team.)

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Active8 - 24 Sep 2003 23:00 GMT
> An HSpice to PSpice CMOS Library Converter has been added to the Tool
> page of my website.  (Courtesy of Brian Hirasuna of the Cadence PSpice
> Support Team.)
>
>                                         ...Jim Thompson

they threw you a bone to draw your attention away from those bug reports
you submitted?

;-)

mike
Jim Thompson - 24 Sep 2003 23:28 GMT
>> An HSpice to PSpice CMOS Library Converter has been added to the Tool
>> page of my website.  (Courtesy of Brian Hirasuna of the Cadence PSpice
[quoted text clipped - 8 lines]
>
>mike

No, no, Brian (and Charlie) are neat guys... the villain is Cadence,
the cretin corporation.

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Spehro Pefhany - 24 Sep 2003 23:40 GMT
>No, no, Brian (and Charlie) are neat guys... the villain is Cadence,
>the cretin corporation.

Did you see their CEO Bingham(?) on CNBC Squawk Box this morning?
Painful.

Best regards,
Spehro Pefhany
Signature

"it's the network..."                          "The Journey is the reward"
speff@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com

Jim Thompson - 25 Sep 2003 00:34 GMT
>>No, no, Brian (and Charlie) are neat guys... the villain is Cadence,
>>the cretin corporation.
[quoted text clipped - 4 lines]
>Best regards,
>Spehro Pefhany

I watch FOX (actually listen, the set is *behind* me) all day long so
I missed the CNBC thingy.  Please elaborate.

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Spehro Pefhany - 25 Sep 2003 01:08 GMT
>I watch FOX (actually listen, the set is *behind* me) all day long so
>I missed the CNBC thingy.  Please elaborate.

Oh, the interviewer (Mark Haines) had no idea what EDA software was,
and the CEO pretty much left a mushy impression that it had a lot to
do with manufacturing cell phones and PDAs. I really didn't hear words
from the CEO that indicated a crisp focus on anything.

Best regards,
Spehro Pefhany
Signature

"it's the network..."                          "The Journey is the reward"
speff@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com

Active8 - 25 Sep 2003 14:28 GMT
> >I watch FOX (actually listen, the set is *behind* me) all day long so
> >I missed the CNBC thingy.  Please elaborate.
[quoted text clipped - 6 lines]
> Best regards,
> Spehro Pefhany

i wouldn't expect much from a big company CEO. except rising stock
values. how some CEOs manage that without having strong product knowlege
can only be explained by underlings who do know what's up.

mike
Greg Pierce - 25 Sep 2003 04:11 GMT
> An HSpice to PSpice CMOS Library Converter has been added to the Tool
> page of my website.  (Courtesy of Brian Hirasuna of the Cadence PSpice
> Support Team.)
>
>                                         ...Jim Thompson

I miss my beloved HSpice.. maybe the next time I decide to buy a new
car I will instead spend the cash on a single-seat license. ;-)

Signature

Greg

 --The software said it requires Win2000 or better, so I installed Linux.

Paul Burridge - 25 Sep 2003 10:36 GMT
>I miss my beloved HSpice.. maybe the next time I decide to buy a new
>car I will instead spend the cash on a single-seat license. ;-)

Why spend anything at all? LT Spice is a great simulator and it's
free.
:-/

--

"I believe history will be kind to me, since I intend
to write it." - Winston Churchill
Greg Pierce - 25 Sep 2003 20:40 GMT
>>I miss my beloved HSpice.. maybe the next time I decide to buy a new
>>car I will instead spend the cash on a single-seat license. ;-)
>
> Why spend anything at all? LT Spice is a great simulator and it's
> free.
> :-/

That being the case, ask Jim why he pays for a seat of Pspice, including
the yearly maintenence fees - there IS a reason.

Signature

Greg

 --The software said it requires Win2000 or better, so I installed Linux.

Paul Burridge - 25 Sep 2003 21:12 GMT
>>>I miss my beloved HSpice.. maybe the next time I decide to buy a new
>>>car I will instead spend the cash on a single-seat license. ;-)
[quoted text clipped - 5 lines]
>That being the case, ask Jim why he pays for a seat of Pspice, including
>the yearly maintenence fees - there IS a reason.

Jim's very set in his ways, having used PS for some 80 years now, plus
ISTR he doesn't have much regard for Mike Engleheart for some
inexplicable reason. ;-)

--

"I believe history will be kind to me, since I intend
to write it." - Winston Churchill
Jim Thompson - 25 Sep 2003 22:20 GMT
>>>>I miss my beloved HSpice.. maybe the next time I decide to buy a new
>>>>car I will instead spend the cash on a single-seat license. ;-)
[quoted text clipped - 9 lines]
>ISTR he doesn't have much regard for Mike Engleheart for some
>inexplicable reason. ;-)

Not so.  I've only used PSpice for about 17 years.  Sheeeesh!  My
father is only 85 ;-)

I like PSpice (at least with Schematics as a front-end) because it is
butt-easy to use, is reliable, and has the industry-standard
back-end... Probe.

Drop by sometime and I'll show you what a *real* simulator is like.

My beef with Mikey is not with LTSpice, but his incessant Kevin-like
harping about the bugs in PSpice... like that will improve his seat
count ?:-)

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Paul Burridge - 25 Sep 2003 23:04 GMT
>Not so.  I've only used PSpice for about 17 years.  Sheeeesh!  My
>father is only 85 ;-)

My apologies. :-)

>I like PSpice (at least with Schematics as a front-end) because it is
>butt-easy to use, is reliable, and has the industry-standard
>back-end... Probe.

Which does what, exactly? You can drop something that looks rather
like a probe onto nodes in LT and examine currents and voltages
present. Isn't that the same thing?

>Drop by sometime and I'll show you what a *real* simulator is like.

Well, that's mighty neighbourly of you, Jim. However, as an English
chap I expect certain standards as your guest. A properly-made cup of
tea, for example (tea-pot, loose-leaf tea, semi-skimmed milk and a
digestive biscuit). And that's before I get stuck into your legendary
wine cellar... :-)

>My beef with Mikey is not with LTSpice, but his incessant Kevin-like
>harping about the bugs in PSpice... like that will improve his seat
>count ?:-)

The comparison with Kev is a little unkind, Jim. I'm sure Mike can at
least be reasoned with. ;->

--

"I believe history will be kind to me, since I intend
to write it." - Winston Churchill
Jim Thompson - 25 Sep 2003 23:27 GMT
>>Not so.  I've only used PSpice for about 17 years.  Sheeeesh!  My
>>father is only 85 ;-)
[quoted text clipped - 8 lines]
>like a probe onto nodes in LT and examine currents and voltages
>present. Isn't that the same thing?

Ease of use.

>>Drop by sometime and I'll show you what a *real* simulator is like.
>
[quoted text clipped - 3 lines]
>digestive biscuit). And that's before I get stuck into your legendary
>wine cellar... :-)

What's tea?  Oh, yes, that stuff you get in Chinese restaurants ;-)

Actually we have several varieties of loose tea in the pantry... the
wife drinks it on occasion.  I drink coffee (black), wine and an
occasional Drambuie, Sambuca or Jack Daniels.

>>My beef with Mikey is not with LTSpice, but his incessant Kevin-like
>>harping about the bugs in PSpice... like that will improve his seat
>>count ?:-)
>
>The comparison with Kev is a little unkind, Jim. I'm sure Mike can at
>least be reasoned with. ;->

Eh?

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Mike Engelhardt - 25 Sep 2003 23:57 GMT
Jim,

> My beef with Mikey is not with LTSpice, but his incessant Kevin-like
> harping about the bugs in PSpice...

Yes, I've noticed you feel threatened whenever I identify a bug in
PSpice, but not when someone else does, as if you feel threatened
at the possibility that you've bet at the wrong horse.  Perhaps you
feel you can't join the LTspice crowd without looking stupid because
you've bet against it.

I've had a weak beef with you(but it always dies away pretty quickly)
because I've felt that you are unjustly insultive to me.  For example,
you've accused me of not knowing how to even run PSpice, but it's you
that has had trouble.  For example, you sent a bench mark of an Xtal
oscillator circuit to various SPICE people.  LTspice immediately
showed the correct solution that it has a 300MHz spurious oscillation.
PSpice showed it faithfully oscillating at the XTal's 14MHz.  While it
was possible to cause LTspice to do the same simulation(except 3x
faster) by setting the integration mode to Gear, it was extremely
difficult to get the correct answer out of PSpice.  I had to show
youhow to run PSpice buy showing you how to watch the solution converge
to the correct anser as the maximum allowed timestep was reduced.  But,
I don't harbor a resent toward you even though you've twice accussed me
in this public forum that I don't know how to run PSpice, a patently
stupid statement.

> ... like that will improve his seat count ?:-)

Jim, I'd never accuse you of being a socialist, in fact, you'd
probably be an OK guy if you weren't so darn liberal.  But where is
your entrepreneurial spirit.  Why would seat count interest me when
it's a free simulator?  If I thought selling licenses was the
best means to develop the best SPICE program in the most
profitable manner, then I'd run the biggest EDA/software company
and do that.

--Mike
Jim Thompson - 26 Sep 2003 00:07 GMT
>Jim,

[snip]

>Jim, I'd never accuse you of being a socialist, in fact, you'd
>probably be an OK guy if you weren't so darn liberal.  But where is
[quoted text clipped - 5 lines]
>
>--Mike

Now *that's* a first.  I've never been called a liberal before ;-)

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Jens Tingleff - 26 Sep 2003 09:52 GMT
>>Jim,
>>
>[snip]
>>
>>Jim, I'd never accuse you of being a socialist, in fact, you'd
>>probably be an OK guy if you weren't so darn liberal.  
[..]
>>--Mike
>
>Now *that's* a first.  I've never been called a liberal before ;-)

ROTL!

Mike, in the US "liberal" means "communist."

Jim, in Europe, "liberal" means "fascist."

(Oh, both meanings above as used by opponents of the respective ideologies;
people who would describe themselves as "liberal" in the US would be describing
themselves as "left-wing" in Europe and be opposed to "liberals" and
conversely.)

Regards

   Jens

Key ID 0x09723C12, j.tingleff@ieee.org/jens_tingleff@yahoo.com
    Analogue filtering / HIPERLAN / Mdk Linux / odds and ends
http://www.imaginet.fr/~jensting/        +44 1223 211 585
 "I don't think you *can* dig your way off a planet.." D Adams
Kevin Aylward - 26 Sep 2003 12:17 GMT
>>> Jim,
>>>
[quoted text clipped - 12 lines]
>
> Jim, in Europe, "liberal" means "fascist."

Cant say I agree with this in the slightest. The "Liberal" party in the
UK is neither, and I have never associated that word with anything like
the negatives that you suggest here.

Cambridge online dictionary.
Definition
liberal (POLITICS)   [Show phonetics]
adjective
(of a political party or a country) believing in or allowing more
personal freedom and a development towards a fairer sharing of wealth
and power within society

Definition
liberal (GENEROUS)   [Show phonetics]
adjective FORMAL
giving or given in a generous way:
He was very liberal with the wine.

Definition
liberal (SOCIETY)   [Show phonetics]
adjective
respecting and allowing many different types of beliefs or behaviour:
a liberal society/attitude

Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.
Jens Tingleff - 26 Sep 2003 14:18 GMT
>>>> Jim,
>>>>
[quoted text clipped - 16 lines]
>UK is neither, and I have never associated that word with anything like
>the negatives that you suggest here.

Kevin,

1) Quite, so. I was using "Europe" where I should have used "continental
Europe". The Uk usage is indeed different from the continental usage. Somewhere
in between, I would say ;-)

2) As for the words I used, please insert ";-)" liberally (sorry!) into my
original message - if that makes it easier to accept. If not, don't.

Regards

  Jens

Key ID 0x09723C12, j.tingleff@ieee.org/jens_tingleff@yahoo.com
    Analogue filtering / HIPERLAN / Mdk Linux / odds and ends
http://www.imaginet.fr/~jensting/        +44 1223 211 585
 "I don't think you *can* dig your way off a planet.." D Adams
Paul Burridge - 26 Sep 2003 17:34 GMT
>>Jim,
>>
[quoted text clipped - 11 lines]
>
>Now *that's* a first.  I've never been called a liberal before

I nearly fainted at this point!
:-D
--

"I believe history will be kind to me, since I intend
to write it." - Winston Churchill
Greg Pierce - 26 Sep 2003 06:53 GMT
>>>>>I miss my beloved HSpice.. maybe the next time I decide to buy a new
>>>>>car I will instead spend the cash on a single-seat license. ;-)
[quoted text clipped - 18 lines]
>
> Drop by sometime and I'll show you what a *real* simulator is like.

A real simulator? I didn't know you own a seat of HSPICE ;-)

> My beef with Mikey is not with LTSpice, but his incessant Kevin-like
> harping about the bugs in PSpice... like that will improve his seat
> count ?:-)

I personally haven't used LTSpice for one simple reason - Linear Tech
hasn't ported it to Linux. They could at least port their SPICE engine;
that shouldn't be difficult at all, unless it is hopelessly intertwined
with their GUI (which would be a hopelessly stupid mistake on their
part). A command-line driven engine for Linux would be perfectly fine
as far as I am concerned.

Signature

Greg

 --The software said it requires Win2000 or better, so I installed Linux.

Mark Jones - 26 Sep 2003 08:27 GMT
>>>>>> I miss my beloved HSpice.. maybe the next time I decide
>>>>>> to buy a new car I will instead spend the cash on a
[quoted text clipped - 37 lines]
>  A command-line driven engine for Linux would be perfectly
> fine as far as I am concerned.

I've seen some very strange things with the proteus VSM simulator I use.
Besides the (all-too-frequent) convergence problems, I've noticed that zener
diodes do not like to bias like they should, and diode drop is not correct
for the various types of bipolar devices. I'm not sure if it is just an
issue with the stock library or a fault of the simulator (it says it is
based from the Berkeley 3F5 core, which you'd think should be pretty
good...)  :)
Mike Engelhardt - 26 Sep 2003 16:11 GMT
Mark,

> ...I've seen some very strange things with the proteus VSM simulator
> I use.  Besides the (all-too-frequent) convergence problems, I've
> noticed that zener diodes do not like to bias like they should...

Make sure you specify Ibv.  Berkeley SPICE defaults to 1mA but
PSpice(and LTspice) defaults to 1e-10A.  I see more PSpice-targeted
models than Berkeley SPICE and this difference in anticipated
default breakdown current effectively moves the zener voltage on
unmodifed Berkeley sources.  If you specify ibv, the model should
breakdown similarly on all SPICE's, though the exact breakdown
function used does differ between the PSpice and LTspice breakdown
vs the Berkeley SPICE in the interest of handling a discontinuity
in the Berkeley version.

--Mike
Mark Jones - 28 Sep 2003 08:43 GMT
> Mark,
>
[quoted text clipped - 17 lines]
>
> --Mike

Interesting, thanks for the heads-up. :)
Mike Engelhardt - 26 Sep 2003 15:58 GMT
Greg.

> I personally haven't used LTSpice for one simple reason - Linear Tech
> hasn't ported it to Linux. They could at least port their SPICE engine;
> that shouldn't be difficult at all, unless it is hopelessly intertwined
> with their GUI (which would be a hopelessly stupid mistake on their
> part). A command-line driven engine for Linux would be perfectly fine
> as far as I am concerned.

This is the relevant part of the FAQ from the
help system regarding Linux/WINE:

Q.  Do you have a version of LTspice for Linux?
A.  Not a separate edition, but it does run under
   WINE.  The program has been tested on Linux
   RedHat 8.0 with WINE version 20030219.

Q.  OK, I've never used WINE, how do I install that
   on my Linux box?
A.  1. Check with www.winehq.com to find the current
      version of WINE for your system.  At the time
      of this writing, for RedHat 8.0, this points
      to http://mecano.gme.usherb.ca/~vberon/wine
   2. Copy the appropriate .rpm file to your machine
      and open it from nautilus.
   3. Get the file swcadiii.exe from www.linear.com.
      In an xterm, execute "wine swcadiii.exe" to
      install LTspice.
   4. There will now be a Linear Technology Logo on
      your gnome desktop.  Double click it to start
      or type "wine scad3.exe" from an xterm to
      start the program.  That's it!

Q.  The schematic fonts don't scale as smoothly under
   WINE as Windows.  Why is that?
A.  WINE is doing the best best it can with the fonts
   it finds.  It will do better if you tell it how
   to find the files arial.ttf and cour.ttf from
   your Windows system.

Q.  The PWL additional point editor doesn't look
   right under WINE?
A.  Try using the native Windows .dll from your
   Windows system.  The command line to then invoke
   LTspice from WINE is:
      wine -dll commctrl,comctl32=n scad3.exe.

Q.  It seems LTspice is running slightly differently
   under WINE/Linux than windows.  Why is that?
A.  LTspice detects whether or not it's running under
   WINE.  If so, it works around a few WINE issues.
   You can force LTspice to think it's running under
   WINE with the command line switch -wine.  You can
   force it to think it's not with the command line
   switch -nowine in case you're interesting in
   debugging WINE.

Q.  Under Windows, LTspice extends the virtual
   address space for waveform viewing to 64 bits.
   Does that work under WINE?
A.  Yes.  It has been tested on waveform files over
   5 Gigabytes in size.

Q.  Under Linux, does it support unlimited component
   count and depth of schematic hierarchy?
A.  Yes.  Opps, no.  The maximum depth of hierarchy
   is 64 levels but that limit is just there to
   allow detection of infinite subcircuit recursion.
   (Most "unlimited" SPICE's "limit" you to about 21
   levels.)  LTspice has no limit on node or
   component count either per page or for the
   entire circuit.

Q.  Does cross-probing while simulation work with
   those slick marching waveforms while running
   under Linux?
A.  Yes.

Q.  So from what version on is LTspice supported
   under WINE?
A.  2.01g.

--Mike
Greg Pierce - 27 Sep 2003 03:08 GMT
> Greg.
>
[quoted text clipped - 7 lines]
> This is the relevant part of the FAQ from the
> help system regarding Linux/WINE:

<snip FAQ>

So, instead of having to run the substandard OS, I need only run an
interface layer for the substandard OS.. cool... now, is their a FAQ for
running it in batch mode?

Signature

Greg

 --The software said it requires Win2000 or better, so I installed Linux.

Mike Engelhardt - 27 Sep 2003 17:05 GMT
Greg,

> > This is the relevant part of the FAQ from the
> > help system regarding Linux/WINE:
[quoted text clipped - 5 lines]
> OS.. cool... now, is their a FAQ for
> running it in batch mode?

I think batch mode is mentioned in the help.  I know
it's been documented a few times in the users'
group http://groups.yahoo.com/group/LTspice.  Basically
you just do "scad3.exe -b file.cir"  The data will be
in file.raw, and warnings, errors, and accounting
information will be in file.log.  When you run the
LTspice executable in this manner, then it never
becomes a MS Windows program, i.e., it never creates
a window or starts the message pump.

But I recommend just running it under WINE.  The
program is designed to work properly under WINE.
There's no speed/performance penalty for simulation.
There's a slight graphics speed penalty but, as
LTspice uses direct screen writes, most of that
penalty comes from the poorer graphics performance
of the X Windows System, not WINE.

However, the MS Windows help system doesn't work
under WINE, you can get a .pdf of the help from
http://LTspice.linear-tech.com/software/scad3.pdf.

--Mike
Greg Pierce - 28 Sep 2003 00:15 GMT
> Greg,

<extra snippage>

> But I recommend just running it under WINE.  The
> program is designed to work properly under WINE.
[quoted text clipped - 3 lines]
> penalty comes from the poorer graphics performance
> of the X Windows System, not WINE.

Of course, the performance penalty wouldn't be there if it was using the
proper Xv calls and such ;-)

Signature

Greg

 --The software said it requires Win2000 or better, so I installed Linux.

Russell Shaw - 27 Sep 2003 07:18 GMT
> Greg.
>
[quoted text clipped - 7 lines]
> This is the relevant part of the FAQ from the
> help system regarding Linux/WINE:

But it doesn't give anyone any warm fuzzies on linux
knowing they have to use something derived from a total
retard swiss cheez OS.
Michael A. Terrell - 27 Sep 2003 08:02 GMT
> > Greg.
> >
[quoted text clipped - 11 lines]
> knowing they have to use something derived from a total
> retard swiss cheez OS.

  Then write your own software, and keep it strickly for Linux.
Signature


Michael A. Terrell
Central Florida

Russell Shaw - 27 Sep 2003 11:05 GMT
>>>Greg.
>>>
[quoted text clipped - 13 lines]
>
>    Then write your own software, and keep it strickly for Linux.

That's what i'm doing. It's not so hard to write a spice
from scratch. It takes more to figure out the parser and
lexical analyser tools/methods. The actual guts of most
numerical analysis programs is very easy. A lot of pictorial
imagination helps in devising new algorithms.
Steve Hamm - 27 Sep 2003 22:16 GMT
>That's what i'm doing. It's not so hard to write a spice
>from scratch. It takes more to figure out the parser and
>lexical analyser tools/methods. The actual guts of most
>numerical analysis programs is very easy. A lot of pictorial
>imagination helps in devising new algorithms.

Hmmm. I'm looking forward to seeing what you come up with. My guess is
that you don't have very much experience with circuit simulation if
you consider the parser more of a problem than solving nonlinear
equations, differential-algebraic equations, and sparse matrices...

--Steve
Russell Shaw - 28 Sep 2003 05:03 GMT
>>That's what i'm doing. It's not so hard to write a spice
>
[quoted text clipped - 8 lines]
> you consider the parser more of a problem than solving nonlinear
> equations, differential-algebraic equations, and sparse matrices...

I've made optimizer programs that fit ladder LC filters and pulse
shaping filters to fit a goal pulse response, optimizers for
frequency and phase equalizers, etc. Also made curve fitting
programs to fit gummel-poon and mosfet spice model parameters
(DC and capacitance measurements).
To do that, i had to implement my own transistor models,
confirm that they agreed with pspice, then make the 4th-order
runge-kutta analysis program to calculate the DC response in
an assumed circuit. Goal convergence was done using mostly
steepest descent or conjugate gradient methods.
Spice literature is full of cruft on gaussian elimination
and sparse matrices. The first is easily eliminated due to
properties of the second. Ill conditioning is not in my
vocabulary. Numerical mathematics is a walk in the park.
However, spice clones are a low priority because with
enough experience you only need simulation to verify some
small circuit block you can't get grips of, or to verify
a mathematically intense design such as a filter. Other
areas of cad are more useful to me...
Stuart Brorson - 28 Sep 2003 13:13 GMT
In sci.electronics.cad Russell Shaw <rjshaw@iprimus.com.au> wrote:

:>>That's what i'm doing. It's not so hard to write a spice
:>>from scratch. It takes more to figure out the parser and
:>>lexical analyser tools/methods. The actual guts of most
:>>numerical analysis programs is very easy. A lot of pictorial
:>>imagination helps in devising new algorithms.
[ . . . . . . . .]
: Numerical mathematics is a walk in the park.
: However, spice clones are a low priority because with
: enough experience you only need simulation to verify some
: small circuit block you can't get grips of, or to verify
: a mathematically intense design such as a filter. Other
: areas of cad are more useful to me...

It sounds like  you know something about numerical work, or at
least can spout the buzz-words correctly.   Therefore my suggestion
would be to join one of the existing free-software projects like
tclspice, ngspice or Gnucap and help out with bringing those apps to
the next level instead of re-inventing the wheel.

<soapbox>

One problem with the free software world is that there is a propensity
amongst developers to start new projects rather than helping with
pre-existing ones.  This may be due to hubris, lack of knowledge about
other projects, or something else.  However, it leads to the problem
that there are lots of similar packages out there which implement
4/5ths of a task, but are never finished.   (Of course, there are
plenty of wonderful -- fully featured -- free software projects too,
so don't assume that all are like that.)  Since a couple of
fully-featured apps are better than lots of unfinished ones, why not
join a pre-existing project if you want to make a contribution?

</soapbox>

Stuart
Russell Shaw - 28 Sep 2003 16:34 GMT
> In sci.electronics.cad Russell Shaw <rjshaw@iprimus.com.au> wrote:
> :>
[quoted text clipped - 31 lines]
>
> </soapbox>

There would be too much throwing out of code if i was to do the schematic
editor in geda. It is *far* too modal. A keystroke to set a mode is needed
before any little action, and the graphics was hopelessly slow last time
i tried it (DRI on my new video card might help). It doesn't work well when
a newbie comes along to a communal project and obsoletes half the code that
was recently written.
  The library management in *every* commercial
and free schematic editor i've seen is just complete crap. *Decent* hierarchial
libraries and schematics are only available in software for many $$$, and even
then, there's a ton of beauracratic bull in generating new library components in
many cases.
  Many projects get abandoned half done because they're hobby efforts
done by someone until they get interested in something else. The things *i* do
are absolutely required for my own use, and could be released if it makes sense.
I have saved a certain amount of time by tracing thru some existing drawing
programs, but that was only to get a general idea of the techniques involved
in drawing programs and how the graphics toolkits were used. The biggest
problems with cad software are that they're written primarily by softwarers.
And anyway, i've asked tough questions on the lists of some projects and
the answers you get are few if any.
  The only way to get anywhere is to
master the relevant toolkits (such as GTK2+, QT, etc) by writing something
first, then you can anticipate the workings of other projects and improve
them and trace bugs much easier, getting ideas along the way for your own
code. Three different programs for the same thing is better than one,
because more ideas are put into the separate projects that can be copied
between each other and into other programs in completely different fields.
That availability of ideas to look and copy is why open source is much
better than closed source. No more vendor lock-in of proprietory cad formats.
  I find most open-source cad projects are still too immature and i wouldn't
use any at this point.
Mike Engelhardt - 27 Sep 2003 17:14 GMT
Russell,

> > > I personally haven't used LTSpice for one simple
> > > reason - Linear Tech hasn't ported it to Linux.
[quoted text clipped - 6 lines]
> knowing they have to use something derived from a total
> retard swiss cheez OS.

You might try it before dwelling on OS flame war issues.
As I explained in my other post, there's no simulation
speed penalty.  The only performance penalty deals
with the relatively poorer performance of X graphics
verses the simpler MS Windows graphics.  BTW, I believe
LTspice is the only SPICE on Linux that uses a 64 bit
address space for waveform data on 32 bit processors.
The virtual memory extension I wrote for Windows was
also ported to Linux/WINE.

--Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.