Yes, the vendor-supplied SPICE models can be quite bad. For instance, the MJL3281a model from On Semiconductor has a simulated ft at a DC current of 100 mA that's more than a factor of 6 low from the data sheet curves of ft vs Ic. For more info on this, see this thread: http://www.diyaudio.com/forums/showthread.php?s=&threadid=20460&highlight=
The article you reference refers to one of the known problems with the Boyle op-amp macro model, namely that the simulated power supply current doesn't change as the load current varies. That's just ridiculous, and makes simulating some op-amp-based power amp topologies literally impossible. The Analog Devices op-amp models don't have this problem. See http://www.analog.com/UploadedFiles/Application_Notes/48136144500269408631801016AN138.pdf for more details. If you're using LTSpice, all of the supplied op-amp models have this problem, so you'll need to import some Analog Devices or TI models in order to get accurate supply current simulation data.
Another gotcha - the SPICE level 1, level 2 and level 3 MOSFET models show a constant gate-drain capacitance as the gate-drain voltage varies. This makes them useless for predicting distortion due to gate-drain capacitance variation of vertical power MOSFETs such as the IRFP240 and IRFP9240. LTSpice has the VDMOS model which has a non-constant gate-drain capacitance, but you'll need to learn how to fit the parameters to data sheet values. This requires some nonlinear equation solving software such as MathCad.
There's a lot of misinformation and false assumptions about SPICE that can be found, which not surprisingly often originates from non-users. There are companies out there working on extending SPICE into the millimeter wave region. What changes to the simulator are required? Almost none, with the exception of some quirky numerical precision issues that happen with time steps on the order of picoseconds. The vast majority of the work is in the models.
Also, there are some highly experienced and respected audio designers here who are essentially SPICE naysayers, which might lead one to extrapolate that all highly experienced audio designers hold this view. Turns out that there are some very experienced audio designers who are in effect SPICE cheerleaders as well. See http://www.ampzilla2000.com/thequest1.html. As usual, the truth is likely to be somewhere in between the extreme views.
The article you reference refers to one of the known problems with the Boyle op-amp macro model, namely that the simulated power supply current doesn't change as the load current varies. That's just ridiculous, and makes simulating some op-amp-based power amp topologies literally impossible. The Analog Devices op-amp models don't have this problem. See http://www.analog.com/UploadedFiles/Application_Notes/48136144500269408631801016AN138.pdf for more details. If you're using LTSpice, all of the supplied op-amp models have this problem, so you'll need to import some Analog Devices or TI models in order to get accurate supply current simulation data.
Another gotcha - the SPICE level 1, level 2 and level 3 MOSFET models show a constant gate-drain capacitance as the gate-drain voltage varies. This makes them useless for predicting distortion due to gate-drain capacitance variation of vertical power MOSFETs such as the IRFP240 and IRFP9240. LTSpice has the VDMOS model which has a non-constant gate-drain capacitance, but you'll need to learn how to fit the parameters to data sheet values. This requires some nonlinear equation solving software such as MathCad.
There's a lot of misinformation and false assumptions about SPICE that can be found, which not surprisingly often originates from non-users. There are companies out there working on extending SPICE into the millimeter wave region. What changes to the simulator are required? Almost none, with the exception of some quirky numerical precision issues that happen with time steps on the order of picoseconds. The vast majority of the work is in the models.
Also, there are some highly experienced and respected audio designers here who are essentially SPICE naysayers, which might lead one to extrapolate that all highly experienced audio designers hold this view. Turns out that there are some very experienced audio designers who are in effect SPICE cheerleaders as well. See http://www.ampzilla2000.com/thequest1.html. As usual, the truth is likely to be somewhere in between the extreme views.
Andy,
Very interesting articles (and observation).
It reminds me of a problem I had with simulating a circuit with a floating opamp (bootstrapped supplies). It acted very strange, and I had to give it up. Now I know that the opamp model had internal nodes that were hard referenced to ground....
Jan Didden
Very interesting articles (and observation).
It reminds me of a problem I had with simulating a circuit with a floating opamp (bootstrapped supplies). It acted very strange, and I had to give it up. Now I know that the opamp model had internal nodes that were hard referenced to ground....
Jan Didden
It's interesting how this author analogizes the SPICE software as a high tech razor, especially after Pease's examples of some really flaky convergence problems. You guys can console yourselves with one thing- the tube models are even worse.
i perceived cannot trust in theories or simulators
We have to assemble and hear... and in a controled way....not an easy way, have to control many things, and listen with many people... short time (adaptation) and with different musics...because taste influenced results.
Blameless was the best simulation i already have made... and the worst sound i heard all life.
Carlos
We have to assemble and hear... and in a controled way....not an easy way, have to control many things, and listen with many people... short time (adaptation) and with different musics...because taste influenced results.
Blameless was the best simulation i already have made... and the worst sound i heard all life.
Carlos
SY said:It's interesting how this author analogizes the SPICE software as a high tech razor, especially after Pease's examples of some really flaky convergence problems. You guys can console yourselves with one thing- the tube models are even worse.
Stuart,
Are you or anybody following Graham Maynards series on "Class A imagineering" in EW? He is strong on "first cycle distortion" in amplifiers and there is some criticism that this actually is a Spice artifact.
Jan Didden
Haven't seen this, though I remember the discussion here where the only thing I learned is how difficult Fourier analysis is for most people. Do the articles relate the computer predictions to experiment?
SY,
Well, the series runs for 6 articles (!), no. 4 just came out. I don't wish to bash Graham, it's interesting reading, but very long winded and not easy to pick out the significant content. It takes real discipline to read it through.
Anyway, the core of it (if I correctly summarise it) is that he feels one important characteristic of amps is how they treat the initial cycle of a signal, he calls it "first cycle distortion". Depending on the amp characteristics and the (speaker) load characteristics, this initial cycle is distorted in a way that is not detected if you run a sim over many cycles in a kind of steady state situation.
For example, the combination of output inductor and speaker reactance would, according to his simulations, cause this type of distortion.
Now, there are some questions here. The start of a signal is abrubt: now there is 0V DC, and the next instant there is a rising waveform. This is a discontinuity and there are at least two aspects that make me critical.
Firstly, how does Spice handle this? It is known that Spice needs some time to converge to a steady state, but I don't have enough expertise to judge the significance here. So the "first cycle distortion" may be a Spice artifact;
Secondly, is this discontinuity at the start of the Spice input signal realistic at all? Audio input signals are band-limited anyway, and will not show the sharp start as in Spice. So, the "first cycle distortion" may also be a non-realistic test signal artifact.
To be honest, Graham puts his money where his mouth is and presents some amp designs (the first one published is an adaption of the famous JLH design) to minimise "first cycle distortion".
I'm not sure (yet) what to make of it. Maybe someone else on this forum has a clear and reasoned opinion?
Jan Didden
Well, the series runs for 6 articles (!), no. 4 just came out. I don't wish to bash Graham, it's interesting reading, but very long winded and not easy to pick out the significant content. It takes real discipline to read it through.
Anyway, the core of it (if I correctly summarise it) is that he feels one important characteristic of amps is how they treat the initial cycle of a signal, he calls it "first cycle distortion". Depending on the amp characteristics and the (speaker) load characteristics, this initial cycle is distorted in a way that is not detected if you run a sim over many cycles in a kind of steady state situation.
For example, the combination of output inductor and speaker reactance would, according to his simulations, cause this type of distortion.
Now, there are some questions here. The start of a signal is abrubt: now there is 0V DC, and the next instant there is a rising waveform. This is a discontinuity and there are at least two aspects that make me critical.
Firstly, how does Spice handle this? It is known that Spice needs some time to converge to a steady state, but I don't have enough expertise to judge the significance here. So the "first cycle distortion" may be a Spice artifact;
Secondly, is this discontinuity at the start of the Spice input signal realistic at all? Audio input signals are band-limited anyway, and will not show the sharp start as in Spice. So, the "first cycle distortion" may also be a non-realistic test signal artifact.
To be honest, Graham puts his money where his mouth is and presents some amp designs (the first one published is an adaption of the famous JLH design) to minimise "first cycle distortion".
I'm not sure (yet) what to make of it. Maybe someone else on this forum has a clear and reasoned opinion?
Jan Didden
Well, I'll try to slog through the articles, but a few questions immediately come to mind:
First, what happens in these models if you just bandwidth limit the input signal with a single pole filter at some really high frequency (say, 100-200 kHz)?
Second, in real amps fed real impulse or tone burst signals, do the predicted artifacts appear?
Third, how does the "distortion" compare to what Fourier theory and a "perfect" amp would be predicted to produce?
Fourth, what experimental evidence is used to validate these amp designs?
Fifth, why don't editors do their job? 😉
First, what happens in these models if you just bandwidth limit the input signal with a single pole filter at some really high frequency (say, 100-200 kHz)?
Second, in real amps fed real impulse or tone burst signals, do the predicted artifacts appear?
Third, how does the "distortion" compare to what Fourier theory and a "perfect" amp would be predicted to produce?
Fourth, what experimental evidence is used to validate these amp designs?
Fifth, why don't editors do their job? 😉
SY,
I don't have the articles here, and I don't have them fully digested either. I do remember the point being made that he didn't want to bandlimit the input signal for some reason, although that would immediately lend credibility (or not depending on the result) to his arguments. I'll look it up tonight.
As for editors doing there work, EW has a new editor and the journal appears to me a bit direction-less, as if he is trying out by trial and error what the direction/content is that attracts the highest number of readers.
Maybe I should submit a reader letter...
Jan Didden
I don't have the articles here, and I don't have them fully digested either. I do remember the point being made that he didn't want to bandlimit the input signal for some reason, although that would immediately lend credibility (or not depending on the result) to his arguments. I'll look it up tonight.
As for editors doing there work, EW has a new editor and the journal appears to me a bit direction-less, as if he is trying out by trial and error what the direction/content is that attracts the highest number of readers.
Maybe I should submit a reader letter...
Jan Didden
I could see first cicle distortion clear in my simulator
No doubts the blameless showed me this distortion every first cicle, not matter the frequency, the level or the wave shape in input.
Carlos
No doubts the blameless showed me this distortion every first cicle, not matter the frequency, the level or the wave shape in input.
Carlos
That's what happens when you put simulators in the hands of people that don't understand how the frequency response of a circuit correlates with its waveform response
I recommend generating sine bursts [with the computer or with a sine generator periodically muted and un-muted at zero cross] and looking at what hapens to these signals when they pass through second, third, fourth,etc.. order filters, allpass filters, or even simple audio amplifiers [all real circuits, no simulation]
Ringing at the beginning and at the ending of the sine burst will be allways seen at the ouput of these circuits [even in the own signal generated by computer's soundcards at high frequencies]. That happens because an infinite amount of strange frequencies are introduced at the instant of muting or un-muting a sine signal and these frequencies suffer different phase shifts than the fundamental when they pass through something with limited bandwidth
It's called group delay
I recommend generating sine bursts [with the computer or with a sine generator periodically muted and un-muted at zero cross] and looking at what hapens to these signals when they pass through second, third, fourth,etc.. order filters, allpass filters, or even simple audio amplifiers [all real circuits, no simulation]
Ringing at the beginning and at the ending of the sine burst will be allways seen at the ouput of these circuits [even in the own signal generated by computer's soundcards at high frequencies]. That happens because an infinite amount of strange frequencies are introduced at the instant of muting or un-muting a sine signal and these frequencies suffer different phase shifts than the fundamental when they pass through something with limited bandwidth
It's called group delay
Even when (if?) all of the above mentioned concerns are resolved, when the circuit is laid out on a PCB it may all come to naught. I'm sure I'm not the only one to experience the identical circuit laid out two (or more) different way where one works as expected and the other does not.
My layout software will provide an analysis to warn if traces are likely to act as antennas, but I wonder if there are packages that predict capacitance and inductance problems either from the tracks or proximity of comonents to each other. If there is I probanbly can't afford it anyway
My layout software will provide an analysis to warn if traces are likely to act as antennas, but I wonder if there are packages that predict capacitance and inductance problems either from the tracks or proximity of comonents to each other. If there is I probanbly can't afford it anyway

Are you or anybody following Graham Maynards series on "Class A imagineering" in EW? He is strong on "first cycle distortion" in amplifiers and there is some criticism that this actually is a Spice artifact.
I have mixed feelings about this series.
There are of course interactions between a speaker crossover and an amplifier that will "robb" some clarity, as every kind of distortion will do. I am just not sure to what extent, because the speaker (and specially its crossover per se) will generate much worse dynamic signal distortions.
The thing I doubt the most is the simulation with the input lowpass and the "dent" it causes to a sinusoid. This is the response to a stimulus that will never ever occur in the real world: The multiplication of an ideal (!!!!) step with a sinusoid.
There are more severe lowpass filters in action throughout the whole reproduction chain than a relaxed passive first order lowpass IMO.
Regards
Charles
Eva said:That's what happens when you put simulators in the hands of people that don't understand how the frequency response of a circuit correlates with its waveform response
It's called group delay
Exactly. Maybe I would add or modify to "how the frequency response of a circuit correlates with its time response (impulse and step response - impulse response as a derivative of step response)".
Once they have impulse (step) response, they would be able to have responses to any signal - e.g. turn-on sine burst ("first cycle distortion" 😀 , highly dependent on frequency, but same in time - just magnify the response) and frequency/phase characteristics.
Charles,
My feelings exactly. If you have an amp with an output inductor feeding a complex cross over/speaker system, I can accept that the response at the speaker terminals is influenced by the output inductor. I'm sure you can measure that, also simulate it, with tone burst signals as Graham does. However, I am not at all convinced that it is significant or audible or even detectable once you start listening to music.
I am also puzzled why he is against an input filter. His reasons are not clear (unless I missed it) and seem to be that he wants to modify the input signal as little as possible. But the input filter can conceptually be seen as the bandlimiting of the source in the real world, so using a filter in the sim only gets it closer to the real world, which is a definite advantage I would think.
And then there is the question whether Spice is kosher in these first-cycle time slots.
Jan Didden
My feelings exactly. If you have an amp with an output inductor feeding a complex cross over/speaker system, I can accept that the response at the speaker terminals is influenced by the output inductor. I'm sure you can measure that, also simulate it, with tone burst signals as Graham does. However, I am not at all convinced that it is significant or audible or even detectable once you start listening to music.
I am also puzzled why he is against an input filter. His reasons are not clear (unless I missed it) and seem to be that he wants to modify the input signal as little as possible. But the input filter can conceptually be seen as the bandlimiting of the source in the real world, so using a filter in the sim only gets it closer to the real world, which is a definite advantage I would think.
And then there is the question whether Spice is kosher in these first-cycle time slots.
Jan Didden
janneman said:If you have an amp with an output inductor feeding a complex cross over/speaker system, I can accept that the response at the speaker terminals is influenced by the output inductor. ....Jan Didden
If implemented competently, (e.g: see attached), inductor perfectly harmless....
Attachments
- Status
- Not open for further replies.
- Home
- Amplifiers
- Solid State
- Article pointer: SPICE lying to ya?