bcarso
Well-known member
xmvlk said:There are some categories, where SPICE LIES much.Svart said:spice LIES.
- OP amp filters in A.C. analysis - A.C. analysis get result while circuit is unstable.
=> try to simulate filter with transient analysis with strong signal input (with zero signal SPICE
does not look for unstability)
-Spice is based on parasitics. Try to simulate simple "behavioral logic" sequential circuit
and You will get error report instead of result.
=> add simple small RC integrator into !digital! signal path and SPICE then converges up.
Spice also Lies in noise simulation via nonrespecting 1/f noises.
For nontrivial circuit SPICE simulation is not valid and sample must be builded. But SPICE can
help while debugging of real circuit, if its malfunction is fatal. But maybe for future - next
NON-SPICE simulator will be based on the graph theory rather than network matrices and
will be much better. Remember: SPICE is program from 1970-ies!!!
A new smarter analog simulator is overdue, indeed.
I agree that one should not rely on Spice if at all possible in the early days. I was a very late adopter and I think it helped me immensely.
Recently I've had the experience of going between simulator and bench while debugging and optimizing a class D amplifier. What is fun is when I tweak the spice model to get the bench results, then change the model and go back to the bench. After a while and with a lot of tricks they get to agree pretty well. But I think even more fun is when it is much faster to make physical circuit changes on the bench and look at the performance results---the simulator even with lots of fast memory and a 3GHz pentium class machine takes far longer---if the step sizes are made small enough to give accurate results. For example, I may have a run for 500uS or longer with 1ns step sizes and many nodes, and be doing fourier analysis along with the usual transient analysis. And don't get me started on the stupid plotting routine, which is hard disk intensive and takes often longer than the simulation itself.
But as I say I was a late adopter. As xmvlk points out, the symbolic calculations that spice does for the frequency domain go way wrong when the circuit is in fact oscillatory. This was brought home and induced me, ironically, to finally succumb to using simulators: a very bright guy had done a whole lot of work coming up with a whole bank of Friend-Delyannis general biquad filters. He had a nearly thesis-like publication to accompany the work, including wonderful amounts of math as to how he derived the values and why they were optimal. Trouble was, he made one critical sign error early on!
I confidently handed the values to a tech and he put some of the filters together. They oscillated like banshees. I suspected he had done something wrong, and he said "Well, I plugged some of these into the simulator and they all oscillate!" Despite that, the Bode plots looked like the desired amplitude domain results.
We took this information back to the designer, who had also skipped the transient response simulator verification. Red-faced (and he was just leaving the company, which made things worse-looking---this was to have been one of his parting shots and his great triumph), he found his mistake and generated a new set of values, which worked.
And I decided it was time to learn the damn program.