Login | Register

Software for Engineers

The Software for Engineers Blog is the place for conversation and discussion about the many software applications that engineers use. Here, you'll find a variety of tips, tricks, and troubleshooting techniques. You'll also find valuable information about topics such as professional certifications.

Previous in Blog: Ramping Up for Special Session of Congress   Next in Blog: Fresh Coffee Beans: Java NetBeans, That Is
Close

Comments Format:






Close

Subscribe to Discussion:

CR4 allows you to "subscribe" to a discussion
so that you can be notified of new comments to
the discussion via email.

Close

Rating Vote:







11 comments

SPICE Up Your Models

Posted April 03, 2008 11:08 AM by ITPro

Ever seen a really hot model? No, not that kind of model - the kind of model meant here is the simulation of a circuit with electrical current and dependent voltage running through it.

Developed by the EECS Department of the University of California at Berkeley, SPICE is a simulator designed to analyze linear and non-linear current flow through devices with big-sounding names that range from resistor and uniform distributed RC model to metal-oxide-semiconductor field-effect transistor (MOSFET) and bipolar junction transistor (BJT). Since about 2002 it has been at version 3, aka SPICE3.

So how exactly does it work? Well, it begins with the order of analysis. For the most part, this includes:

  • Direct Current
  • Alternating Current Small-Signal
  • Transient
  • Pole-Zero
  • Distortion
  • Sensitivity
  • Noise

An important facet of SPICE is that Direct Current analysis must take place before transient and AC Small-Signal, because the starting point is with shorted inductors and open capacitors. The AC Small-Signal then takes the information from the first test, and runs a range of frequencies over the linear circuit produced from its programming. The transient analysis determines transient output variables automatically from the DC analysis. The phases continue similarly through the remainder of the analyses as listed above.

The interesting thing to note about SPICE is that the commands utilized in it aren't all that much different from what you would see in a normal programming language. The SPICE3 language has keywords such as Display, Echo, Load and Write; it also has control structures like If Then Else, Goto and Break (think case switching in the that latter one, say in C++ or Java). Interestingly, Spice3 and Nutmeg (interpretative back end and standalone front end, respectively) do their circuit plotting through the X Window System. (Linux, anybody?) It also has pre-named variables, and data types like <= (less than or equal to) and ! (not).

Variations and permutations of SPICE are widely available in today's industry. There's no question you can SPICE up your models utilizing this technology. A Google search is highly recommended to review those companies that provide variations focused toward your assessment and modeling requirements.


Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Commentator

Join Date: Mar 2005
Posts: 76
#1

Re: SPICE Up Your Models

04/03/2008 5:00 PM

Hi ITPro,

Interesting blog. I may add that there are more user friendly electrical and electronic simulators (the type where you can pick up a component from a palette and put it in the working circuit) based on SPICE. Some of them: PSpice, MultiSimm, Circuit Maker, TINA, WEBENCH (online spice simulator), ICAP, and many more. Thousand of Master and PH.D. thesis were developed using SPICE; there are thousand of book; hundred of consulting companies specializing,etc.

Each of these simulators cost thousand of dollars and a consulting session with one of those companies will cost lots of money.

What is sad about this story is the fact that the creator of SPICE was a PH.D. student at Berkeley. His Ph.D. thesis was precisely the creation of the algorithm used by SPICE (very difficult, if you ask me!). Because the sponsors of his studies were Berkeley and the National Science Foundation, this students has never reaped any benefit from his invention because, being an NSF funded grant, the results must be made free for all people. I understand that Berkeley get some monies from licensing SPICE, but not the student!

Abe

Active Contributor

Join Date: Mar 2008
Posts: 22
Good Answers: 1
#2
In reply to #1

Re: SPICE Up Your Models

04/03/2008 6:11 PM

Hi Abe,

Thanks for sharing, and I agree on a number of levels regarding the turns taken in the industry, both from the systems development and costs of consulting. I did not know that about the student and the NSF grants; a very interesting tidbit of history! I much appreciate your comments.

Jon

Power-User
Panama - Member - New Member

Join Date: Dec 2006
Location: Panama
Posts: 391
Good Answers: 12
#3

Re: SPICE Up Your Models

04/03/2008 11:13 PM

My understanding is that SPICE itself is open source. It is the graphical interfaces that cost a lot of money, although there are a variety that can be had as demo versions with limited libraries or circuit size. Furthermore, most semiconductor manufacturers publish SPICE models of their various offerings, in varying degrees of accuracy. I actually use a SPICE simulator for troubleshooting- if I don't understand how a circuit is designed to work, I run a simple SPICE model and compare the expected output with what I see on the oscilloscope. Of course, if the model and the scope don't agree, I first have to determine if the source of disagreement is from a poorly configured model, or a bad component in the circuit...

Commentator

Join Date: Mar 2005
Posts: 76
#5
In reply to #3

Re: SPICE Up Your Models

04/04/2008 8:43 AM

Yes, you are right. SPICE is open source. This is reason anybody can create the GUI and use the SPICE engine for free.

Abe

Power-User
Canada - Member - New Member

Join Date: May 2006
Location: Montreal, Canada
Posts: 480
Good Answers: 4
#4

Re: SPICE Up Your Models

04/04/2008 6:44 AM

LTspice/SwitcherCAD III works well for me. It is free and easy to use.

__________________
''What the hell has my ass got to do with magic?" Don Quixote
Guest
#6
In reply to #4

Re: SPICE Up Your Models

04/04/2008 10:24 AM

Ditto!

Ive lived in LTspice / Switcher CAD for yearz.

It is the best!

Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK, 51º 27' 33.83"N, 1º 0' 21.65"W
Posts: 2122
Good Answers: 29
#8
In reply to #4

Re: SPICE Up Your Models

06/28/2008 7:32 AM

Agreed. Very easy to use, & excellent graphical outputs. Only found it about 7 or 8 months ago, and it's so much easier than the text-based versions I've been messing about with for the past 2 or 3 years.

__________________
No offence intended. E&OE. Don't shoot the messenger.
Power-User
Canada - Member - New Member

Join Date: May 2006
Location: Montreal, Canada
Posts: 480
Good Answers: 4
#9
In reply to #8

Re: SPICE Up Your Models

06/28/2008 6:09 PM

If the price is right, you deserve the best...

__________________
''What the hell has my ass got to do with magic?" Don Quixote
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK, 51º 27' 33.83"N, 1º 0' 21.65"W
Posts: 2122
Good Answers: 29
#10
In reply to #9

Re: SPICE Up Your Models

06/28/2008 7:46 PM

FYI, I'm self-employed, with a very variable income level. I can't really justify shelling out a bean on SPICE for the work I get paid for these days (would have been well worth paying for it about 20 years ago, tho'! (if it existed & computers capable of running it were generally available)) - it comes in more on the 'hobby' or 'R&D for a job that may never come' (during the slack times) side. For my 'real work', I could easily use a spreadsheet to model most things.

Gotta hand it to the guys at LT!

PS - Hope the parenthesis didn't confuse - its late & I'm tired. Also don't want to spend all night at the keyboard; I wanna go fishing in the morning.

__________________
No offence intended. E&OE. Don't shoot the messenger.
Off Topic (Score 5)
Power-User
Canada - Member - New Member

Join Date: May 2006
Location: Montreal, Canada
Posts: 480
Good Answers: 4
#11
In reply to #10

Re: SPICE Up Your Models

06/29/2008 12:03 AM

I am also somewhat self employed, as my company is not yet big or rich.

I seldom need to use it and it would not make sense to purchase a simulation package.

I wanted to do noise and stability analysis on a very high gain photodiode amplification used for laser steering when I found this tool a fiew years ago. Did a top notch job.

Compared to anything else free or cheap, by far the best and usable by non experts. The only wish I have is that schematics could be ported to/from Eagle.

Hope you have a good catch in the morning.

__________________
''What the hell has my ass got to do with magic?" Don Quixote
Off Topic (Score 5)
Active Contributor

Join Date: Oct 2007
Posts: 17
#7

Re: SPICE Up Your Models

04/04/2008 9:58 PM

I like the microcap9 free evaluation program. www.tier-2-innovation.com shows how to use it with 10 simple circuit kit examples.

11 comments
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Copy to Clipboard

Users who posted comments:

amichelen (2), cwarner7_11 (1), Frank12 (1), gigaconcept.com (3), Guest (1), ITPro (1), JohnDG (2)

Previous in Blog: Ramping Up for Special Session of Congress   Next in Blog: Fresh Coffee Beans: Java NetBeans, That Is
You might be interested in: Simulation Software, EDA, ECAD and TCAD Software, CAD/CAM/CAE Software