YAP power amp revisited, now at v2.1

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Re: THD simulation

PHEONIX said:
How well does Cadence 16.2 ( I assume this is what you are using) simulate THD, how low THD wise does it go down to.

As good (or bad) as any other Spice simulator. They all, more ore less, share the Fourier analysis module from the original Berkeley Spice release.

Just follow the same rules as for LTSpice THD simulation and you should be, FWIW, fine.
 
THD simulation

Hello Syn08

Thanks for the reply . Interestingly in the past Spectre the best cadence spice simulator states as one of its key specs that it can accurately simulate THD to below 1ppm (-120dB) , I didnt know that cadence 16.2 was good to these levels and hence the reason for asking the question.

Regards
Arthur
 
AX tech editor
Joined 2002
Paid Member
Re: THD simulation

PHEONIX said:
Hello Syn08

Thanks for the reply . Interestingly in the past Spectre the best cadence spice simulator states as one of its key specs that it can accurately simulate THD to below 1ppm (-120dB) , I didnt know that cadence 16.2 was good to these levels and hence the reason for asking the question.

Regards
Arthur

AFAIK Spectre uses the harmonic balance method to calculate THD which is different from what most spice simulators use. I don't know the details but harmonic balance is often used to calculate THD in RF circuits and apparently does a good job.

jd
 
Re: Re: THD simulation

janneman said:
AFAIK Spectre uses the harmonic balance method to calculate THD which is different from what most spice simulators use. I don't know the details but harmonic balance is often used to calculate THD in RF circuits and apparently does a good job.

SPECTRE is one of the few surviving code branches having little to do with the original Spice. It had (has?) a very limited success outside some niche applications (like RF).
 
AX tech editor
Joined 2002
Paid Member
Re: Re: Re: THD simulation

syn08 said:


SPECTRE is one of the few surviving code branches having little to do with the original Spice. It had (has?) a very limited success outside some niche applications (like RF).


Yes. Paul Tuinenga, one of the original founders of PSpice, tried his hand on an RF simulator, I think it was called Avista or something like that. I understand it never really got off the ground.

jd
 
Re: Re: Re: THD simulation

syn08 said:


SPECTRE is one of the few surviving code branches having little to do with the original Spice. It had (has?) a very limited success outside some niche applications (like RF).


Hello Syn08

I thought Spectre was one of the most commonly used simulators for analog IC design because it has superior convergence performance and accuracy ( provided you have good models) from what I can gather.

Regards
Arthur
 
Re: Re: Re: Re: THD simulation

PHEONIX said:



Hello Syn08

I thought Spectre was one of the most commonly used simulators for analog IC design because it has superior convergence performance and accuracy ( provided you have good models) from what I can gather.

Regards
Arthur

It's special applications only AFAIK. A SPICE simulation can converge with the same models to -300dB (double precision FP) but the simulation time for a long transient analysis can be prohibitive. Consider the problem of sigma-delta converters running at 10MHz clock and 1kHz input, msec of simulation at nsec time steps.
 
Hello syn08,
Thanks for answers.

I have tried a simulation but currents through Q104 and Q105 are too low: ~0.5mA and ~4mA. How much should be these currents (OPS input stage and drivers)? D102 and D117 are infrared, but I see that they are green on PCB photo.
What is the bias current per MOSFET pair?

Thank you
 
Re: Convergence

PHEONIX said:
Hello Scott

I know that spice simulators can get very good results on THD simulations but not all of them do it AFAIK , and not all of thems convergence perfomance is the same . Would you agree with this.

Regards
Arthur

This is true. You need to look at what you mean by convergence. I usually consider lack of convergence to be complete failure to find a solution, within stated accuracy. Better simulators can switch integration techniques on the fly to help out. The second issue with respect to THD is to force convergence at exact time points and pad your transient analysis to settle all initial transients.

A common mistake is to not realize that some stock SPICE transient analyses will just run keeping the outputs within the specified tolerances and interpolate in between arbitrary points for the requested plot data.
 
kl said:
Hello syn08,
Thanks for answers.

I have tried a simulation but currents through Q104 and Q105 are too low: ~0.5mA and ~4mA. How much should be these currents (OPS input stage and drivers)? D102 and D117 are infrared, but I see that they are green on PCB photo.
What is the bias current per MOSFET pair?

The LED model should have a voltage drop of about 1.8-1.9V as any standard green LED. I customized a diode model to accomodate this:

.MODEL GLED D
+ IS=10.000E-9
+ N=1.9388
+ RS=1.2366
+ IKF=45.752E-15
+ CJO=25.000E-12
+ M=.3333
+ VJ=.75
+ ISR=10.010E-21
+ BV=5.4169
+ IBV=10
+ TT=5.0000E-9

This model should not be used for anything else but to model a standard green LED forward drop.

Current through the input pair should be around 1.1-1.2mA and the output devices should run at about 150mA each. The current mirrors and the diamond buffers run at about 10-12mA.

The front end stage and the global feedback loop can barely be modelled in the time domain, due to the poor opamp models. It can be modelled in AC, though, to analyze the global feedback loop gain.

You can though analyze the output stage frequency response, loop gain, the effect of various compensation techniques (Miller, TPC, TMC), distortions, headroom, and make and educated choice of your implementation.

I do professional PCBs with ground planes, therefore I can go with the unity loop gain frequency up to 10MHz (YAP 2.1 has 4MHz, the original YAP had 8MHz). This may not be possible with home etched boards, so you may want to adjust your output stage unity loop gain frequency to 1-1.5MHz (and the unity global loop gain frequency to 300-400KHz) which is much easier achievable. You will sacrifice some performance though, but still be in the 10ppm THD range.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.