---
+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 20 of 21
  1. #1
    Junior Member level 3
    Points: 1,669, Level: 9

    Join Date
    Jun 2005
    Posts
    26
    Helped
    1 / 1
    Points
    1,669
    Level
    9

    spectre thd

    Hi all,
    I want to simulate the THD using spectre, I've done the Transient analysis
    and want to use Calculator -> Special functions -> thd; there're four parameters must fill in, (the first two must start and stop frequency I think, Number of Samples and Fundamental)
    What's the relation between them and THD? And how do I find out the THD in Caculator?

    Thanks!

  2. #2
    Junior Member level 2
    Points: 1,516, Level: 8
    Achievements:
    7 years registered

    Join Date
    Feb 2007
    Posts
    23
    Helped
    5 / 5
    Points
    1,516
    Level
    8

    thd in spectre

    If you have in your transient responce current i.e I2, then you first press wave,it and then you press the waveform in transient responce so the expression is in the buffer.After that select from special functions thd.At this point you have to set as you said 4 parameters. At boxes From & To you have to write something in time, for example 3u to 5u(meaning usec).These values depends on the frequency of your output waveform.So it is good to select two periods of your signal. At fundamental choose 0 .Now for number of samples you can write 64,512,1024 but it depends on the step you have in transient analysis.Check at cadence help for calculator.I think you will find it at calc.pdf . There you will find the expression in order to select the right No of samples. If you have problem send a photo with your signal or just send the frequency of your signal.
    If your waveform is voltage, press wave,vt and then the waveform


    2 members found this post helpful.

  3. #3
    Junior Member level 3
    Points: 1,669, Level: 9

    Join Date
    Jun 2005
    Posts
    26
    Helped
    1 / 1
    Points
    1,669
    Level
    9

    cadance calc.pdf

    Thanks laoud!

    Would you pls send me the calc.pdf? There's no cadence manul in my computor.



  4. #4
    Advanced Member level 1
    Points: 3,416, Level: 13

    Join Date
    Jul 2005
    Posts
    410
    Helped
    44 / 44
    Points
    3,416
    Level
    13

    thd analysis spectre

    when u plot a waveform, you can find the calculator in your waveform window. it is in the tools buttom. You can find the Thd function in the calculator



    •   Alt1st March 2007, 02:35

      advertising

        
       

  5. #5
    Junior Member level 3
    Points: 1,569, Level: 9
    Achievements:
    7 years registered

    Join Date
    Dec 2006
    Location
    Singapore
    Posts
    31
    Helped
    5 / 5
    Points
    1,569
    Level
    9

    cadence spectre calc.pdf

    And the this is the step by step method


    1 members found this post helpful.

  6. #6
    Junior Member level 3
    Points: 1,014, Level: 7
    chichi's Avatar
    Join Date
    Aug 2009
    Location
    Germany
    Posts
    30
    Helped
    9 / 9
    Points
    1,014
    Level
    7

    How to calculate THD in spectre

    the result got from thd simulation is the real value, or with unit%?


    2 members found this post helpful.

  7. #7
    Super Moderator
    Points: 39,068, Level: 48
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    5,693
    Helped
    1915 / 1915
    Points
    39,068
    Level
    48

    Re: How to calculate THD in spectre

    Quote Originally Posted by chichi
    the result got from thd simulation is the real value, or with unit%?
    (H)SPICE and Spectre results are always presented as real values, small or big values designated by an appropriate prefix or by an E notation.



  8. #8
    Junior Member level 3
    Points: 1,014, Level: 7
    chichi's Avatar
    Join Date
    Aug 2009
    Location
    Germany
    Posts
    30
    Helped
    9 / 9
    Points
    1,014
    Level
    7

    Re: How to calculate THD in spectre

    thanks..i just find it so strange that not only THD but also HD3, they does not behave the normal way, i mean normally, the third harmonics increase faster than signal amplitude when increasing the input signal, so HD3 should decrease till 0 with increasing output amplitude(so called IIP3 point),but in my case the curve is like a wave, very bad.lz se the atattched



    •   Alt22nd February 2010, 18:55

      advertising

        
       

  9. #9
    Super Moderator
    Points: 39,068, Level: 48
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    5,693
    Helped
    1915 / 1915
    Points
    39,068
    Level
    48

    Re: How to calculate THD in spectre

    Quote Originally Posted by chichi
    ... the third harmonics increase faster than signal amplitude when increasing the input signal
    Right!

    Quote Originally Posted by chichi
    so HD3 should decrease till 0 with increasing output amplitude(so called IIP3 point)
    No, this is a misunderstanding. See iamlearning's contribution from Thu, 18 Feb 2010 19:01, saying "IIP3 determines the input power after which gain for the 3rd harmonic is greater than that of the Fundamental". See also this wiki for a good explanation of IIP3.

    Quote Originally Posted by chichi
    but in my case the curve is like a wave, very bad.lz se the atattched
    I do not quite understand your curve. From your text, it should be HD3 vs. HD1 (the Fundamental), right? Then - apart from its strange shape - how can you get an HD3 output signal between 60 and 90 dB from a fundamental signal between -70 and -20dB ? At a fundamental input signal of -60dB (1mV, in case of dbV), an HD3 output of 70dBV would mean an HD3 gain of 130dB (≈ 3e6) or an HD3 output voltage of > 3kV. There definitely something must be wrong with the size of the units.

    But may be this is my mis-interpretation?



    •   Alt23rd February 2010, 09:32

      advertising

        
       

  10. #10
    Junior Member level 3
    Points: 1,014, Level: 7
    chichi's Avatar
    Join Date
    Aug 2009
    Location
    Germany
    Posts
    30
    Helped
    9 / 9
    Points
    1,014
    Level
    7

    Re: How to calculate THD in spectre

    Hi, right the x axis is the HD1, while the y axis is HD1-HD3, the distance between thrid order harmonics and fundamental signal.



  11. #11
    Super Moderator
    Points: 39,068, Level: 48
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    5,693
    Helped
    1915 / 1915
    Points
    39,068
    Level
    48

    Re: How to calculate THD in spectre

    Ok, then it seems you are still far, far away from the IIP3 point, which is HD1-HD3=0dB (see the wiki). So you should simulate the input range -20dB ≤ HD1 ≤ +10dB !


    1 members found this post helpful.

  12. #12
    MohEllayali
    Guest

    Re: How to calculate THD in spectre

    hello
    the result got from thd simulation is the real value, or with unit%?
    i am going through a linearity analysis right now, and it seems to me that the value given by the thd function is a percentage



  13. #13
    Newbie level 1
    Points: 632, Level: 5

    Join Date
    Jun 2009
    Posts
    1
    Helped
    0 / 0
    Points
    632
    Level
    5

    Re: How to calculate THD in spectre

    yes it is, as can be seen in the wavescan user guide (calculator functions) for THD

    just multiply it with 100 and you can use it to calculate ENOB or SN(D)R



  14. #14
    Member level 3
    Points: 1,572, Level: 9

    Join Date
    Jan 2010
    Location
    Waterloo, Ontario, Canada
    Posts
    62
    Helped
    9 / 9
    Points
    1,572
    Level
    9
    Blog Entries
    3

    How to calculate THD in spectre

    from the calculator use the Fourier transform then sum a few terms HD2, HD3 is usually sufficient
    good luck



  15. #15
    Newbie level 6
    Points: 447, Level: 4

    Join Date
    Sep 2010
    Posts
    12
    Helped
    0 / 0
    Points
    447
    Level
    4

    Re: How to calculate THD in spectre

    hello, is the thd in cadence calculator expressed in percentage?



  16. #16
    Super Moderator
    Points: 39,068, Level: 48
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    5,693
    Helped
    1915 / 1915
    Points
    39,068
    Level
    48

    Re: How to calculate THD in spectre

    See the replies above yours!



  17. #17
    Newbie level 6
    Points: 447, Level: 4

    Join Date
    Sep 2010
    Posts
    12
    Helped
    0 / 0
    Points
    447
    Level
    4

    Re: How to calculate THD in spectre

    but why my THD always seem to be about 8%, my specs requirement is 0.92%, what do u think is the reason?



  18. #18
    Super Moderator
    Points: 39,068, Level: 48
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    5,693
    Helped
    1915 / 1915
    Points
    39,068
    Level
    48

    Re: How to calculate THD in spectre

    Quote Originally Posted by kokykokykoky View Post
    but why my THD always seem to be about 8%, my specs requirement is 0.92%, what do u think is the reason?
    How could anyone know the reason without any info on your circuit? - and this on a hijacked thread!
    Would you know why the THD of my circuit is ok?



  19. #19
    Newbie level 6
    Points: 447, Level: 4

    Join Date
    Sep 2010
    Posts
    12
    Helped
    0 / 0
    Points
    447
    Level
    4

    Re: How to calculate THD in spectre

    Hello everyone

    I am using the calculator in cadence to find the settling time for the output voltage waveform.

    There is this calculator function(Settlingtime) in cadence which I believe would be useful to me.

    However, there are 4 blanks to be filled up:

    Initial value type:
    Initial value:

    Final value type:
    Final value:

    Kindly advise. I tried doing it but the answer does not seem sensible.

    Advance thanks



  20. #20
    Newbie level 1
    Points: 207, Level: 2

    Join Date
    Oct 2011
    Posts
    1
    Helped
    0 / 0
    Points
    207
    Level
    2

    Re: thd in spectre

    Quote Originally Posted by laoud View Post
    If you have in your transient responce current i.e I2, then you first press wave,it and then you press the waveform in transient responce so the expression is in the buffer.After that select from special functions thd.At this point you have to set as you said 4 parameters. At boxes From & To you have to write something in time, for example 3u to 5u(meaning usec).These values depends on the frequency of your output waveform.So it is good to select two periods of your signal. At fundamental choose 0 .Now for number of samples you can write 64,512,1024 but it depends on the step you have in transient analysis.Check at cadence help for calculator.I think you will find it at calc.pdf . There you will find the expression in order to select the right No of samples. If you have problem send a photo with your signal or just send the frequency of your signal.
    If your waveform is voltage, press wave,vt and then the waveform
    Thanks!



+ Post New Thread
Please login
Page 1 of 2 12 LastLast