SlideShare a Scribd company logo
1 of 11
Group delay
Matlab vs cadence
theory
• Nice reference
• https://en.wikipedia.org/wiki/Group_delay_and_phase_delay
• Phase delay
Hand analysis for single pole (RC) case
Group delay phase delay
• Youtube link for following equations
• https://www.youtube.com/watch?v=m9tASJ9DaTY
One pole case
• Pole – 5e9
• Default cadence function is not giving expected results
• Written my own measurements
• Verfied the measurements vs hand analysis results from equation in above slide
• The same circuit as below is used for one pole and one zero case
• Inductor is made ‘0” for one pole case
procedure
Hand analysis
Comparing group delay between hand
analysis and cadence measurements
Matlab one pole case
• f_z1=[10^80]; % zero at infinite location
• f_p1=5e9;
• new=[];
• for i=1 % only one zero pole combination
• k=f_p1/f_z1(i);
• t_freq=logspace(1,11,100000);
• w_l=2*pi*t_freq;
• [b,a] = zp2tf(f_z1(i),f_p1,k);
• h=freqs(b,a,w_l);
• mag=20*log10(abs(h));
• subplot(2,1,1)
• semilogx(w_l,mag);
• hold on;
• phase = angle(h);
• pdiff =diff(phase);
• w_l_new=diff(w_l);
• grpdel = (pdiff./w_l_new)/(2*pi); % adding 2*pi since 2*pi get cancelled
between pdiff and w_l_new
• grpdel_max=max(grpdel);
• grpdel_min=min(grpdel);
• grpdel_pp=grpdel_max-grpdel_min
• new(i,1)=grpdel_pp;
• subplot(2,1,2)
• semilogx(w_l(1:end-1),grpdel)
• xlabel('Frequency (rad/s)')
• ylabel('Group delay (s)')
• end
• hold off
1. No matlab codes readily available for group delay
2. Default matlab codes (grpdelay) are for digital filters
1. https://www.mathworks.com/help/signal/ref/grpdelay.html
• Grpdelay function doesn’t give accurate results
• Waveform shapes from my code are same as that of spectre and also
handanalysis
• Got confused so much since both groupDelay (spectre) and grpdelay
(matlab) are inaccurate
• Finally settled with my methods by comparing with handanalysis
Matlab one pole case - results
One pole and one zero case
• Pole – 5e9
• Zero – 2e9, 3e9,4e9,5e9,6e9,7e9
• Circuit to produce a zero (R and L) and a pole (R and C)
• Dc gain = 1 (R1.gm.R1)
• Gm=R1*R1
spectre results
• As zero location is moved, dc gain is 0 but peak ac gain is decreasing
• Group delay peak to peak (gdpp) is highest when zero is at 2G
• 3G vs 7G – delta is 2G but gdpp is different
Matlab code
• f_z1=[2e9,3e9,4e9,5e9,6e9,7e9];
• f_p1=5e9;
• new=[];
• clf;
• for i=1:1:6
• k=f_p1/f_z1(i);
• t_freq=logspace(1,11,100000);
• w_l=2*pi*t_freq;
• [b,a] = zp2tf(f_z1(i),f_p1,k);
• h=freqs(b,a,w_l);
• mag=20*log10(abs(h));
• subplot(2,1,1)
• semilogx(w_l,mag);
• hold on;
• phase = angle(h);
•
• pdiff =diff(phase);
• w_l_new=diff(w_l);
• grpdel = (pdiff./w_l_new)./(2*pi);
• grpdel_max=max(grpdel);
• grpdel_min=min(grpdel);
• grpdel_pp=grpdel_max-grpdel_min;
• new(i,1)=grpdel_pp;
• subplot(2,1,2)
• semilogx(w_l(1:end-1),grpdel)
• xlabel('Frequency (rad/s)')
• ylabel('Group delay (s)')
• hold on;
• end
• hold off
• fprintf("%3.2e %s",new(1));
• fprintf("%3.2e %s",new(2));
• fprintf("%3.2e %s",new(3));
• fprintf("%3.2e %s",new(4));
• fprintf("%3.2e %s",new(5));
• fprintf("%3.2e %s",new(6));
Matlab results
• Frequency response matches with spectre results
• Peak gain when zero @ 2GHz – 7.94dB and 7Ghz - -2.9dB
• Matlab and spectre agree with each other

More Related Content

Similar to group_delay_exp.pptx

Similar to group_delay_exp.pptx (20)

sheet6.pdf
sheet6.pdfsheet6.pdf
sheet6.pdf
 
doc6.pdf
doc6.pdfdoc6.pdf
doc6.pdf
 
paper6.pdf
paper6.pdfpaper6.pdf
paper6.pdf
 
lecture5.pdf
lecture5.pdflecture5.pdf
lecture5.pdf
 
sheet6.pdf
sheet6.pdfsheet6.pdf
sheet6.pdf
 
doc6.pdf
doc6.pdfdoc6.pdf
doc6.pdf
 
paper6.pdf
paper6.pdfpaper6.pdf
paper6.pdf
 
lecture5.pdf
lecture5.pdflecture5.pdf
lecture5.pdf
 
Paper study: Learning to solve circuit sat
Paper study: Learning to solve circuit satPaper study: Learning to solve circuit sat
Paper study: Learning to solve circuit sat
 
Paper study: Learning to solve circuit sat
Paper study: Learning to solve circuit satPaper study: Learning to solve circuit sat
Paper study: Learning to solve circuit sat
 
Vectorization in ATLAS
Vectorization in ATLASVectorization in ATLAS
Vectorization in ATLAS
 
Vectorization in ATLAS
Vectorization in ATLASVectorization in ATLAS
Vectorization in ATLAS
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblas
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblas
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblas
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblas
 
Deeplearning
Deeplearning Deeplearning
Deeplearning
 
Deeplearning
Deeplearning Deeplearning
Deeplearning
 
Matlab
Matlab Matlab
Matlab
 
Matlab
Matlab Matlab
Matlab
 

More from SaiGouthamSunkara

More from SaiGouthamSunkara (14)

Phase noise transfer functions.pptx
Phase noise transfer      functions.pptxPhase noise transfer      functions.pptx
Phase noise transfer functions.pptx
 
CTLE pole zero precise analysis.pptx
CTLE pole zero precise     analysis.pptxCTLE pole zero precise     analysis.pptx
CTLE pole zero precise analysis.pptx
 
Real 2nd order LC PLL loop analysis.pptx
Real 2nd order LC PLL loop analysis.pptxReal 2nd order LC PLL loop analysis.pptx
Real 2nd order LC PLL loop analysis.pptx
 
OPAMP based Charge Pump intuition.pptx
OPAMP based Charge Pump   intuition.pptxOPAMP based Charge Pump   intuition.pptx
OPAMP based Charge Pump intuition.pptx
 
Why not dfe only in 28dB channel.pptx
Why not dfe only in    28dB channel.pptxWhy not dfe only in    28dB channel.pptx
Why not dfe only in 28dB channel.pptx
 
basic Bang bang Phase Frequency Det.pptx
basic Bang bang Phase Frequency Det.pptxbasic Bang bang Phase Frequency Det.pptx
basic Bang bang Phase Frequency Det.pptx
 
Noise vs phase noise relation.pptx
Noise    vs    phase noise relation.pptxNoise    vs    phase noise relation.pptx
Noise vs phase noise relation.pptx
 
Improving Phase noise in ring vco.pptx
Improving Phase noise in   ring vco.pptxImproving Phase noise in   ring vco.pptx
Improving Phase noise in ring vco.pptx
 
Transmitters split LDO architecture.pptx
Transmitters split LDO architecture.pptxTransmitters split LDO architecture.pptx
Transmitters split LDO architecture.pptx
 
NMOS LDO Cc effect on PSRR, poles zeros
NMOS LDO Cc effect on PSRR, poles  zerosNMOS LDO Cc effect on PSRR, poles  zeros
NMOS LDO Cc effect on PSRR, poles zeros
 
Analog 2nd order CDR JTOL derivation.pptx
Analog 2nd order CDR JTOL derivation.pptxAnalog 2nd order CDR JTOL derivation.pptx
Analog 2nd order CDR JTOL derivation.pptx
 
CTLE Transfer curve vout/vin with degene
CTLE Transfer curve vout/vin with degeneCTLE Transfer curve vout/vin with degene
CTLE Transfer curve vout/vin with degene
 
LFEQ CTLE and speculative DFE.pptx
LFEQ CTLE and speculative DFE.pptxLFEQ CTLE and speculative DFE.pptx
LFEQ CTLE and speculative DFE.pptx
 
folded_cascode ahuja compensation.pptx
folded_cascode ahuja compensation.pptxfolded_cascode ahuja compensation.pptx
folded_cascode ahuja compensation.pptx
 

Recently uploaded

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 

group_delay_exp.pptx

  • 2. theory • Nice reference • https://en.wikipedia.org/wiki/Group_delay_and_phase_delay • Phase delay
  • 3. Hand analysis for single pole (RC) case Group delay phase delay • Youtube link for following equations • https://www.youtube.com/watch?v=m9tASJ9DaTY
  • 4. One pole case • Pole – 5e9 • Default cadence function is not giving expected results • Written my own measurements • Verfied the measurements vs hand analysis results from equation in above slide • The same circuit as below is used for one pole and one zero case • Inductor is made ‘0” for one pole case procedure Hand analysis
  • 5. Comparing group delay between hand analysis and cadence measurements
  • 6. Matlab one pole case • f_z1=[10^80]; % zero at infinite location • f_p1=5e9; • new=[]; • for i=1 % only one zero pole combination • k=f_p1/f_z1(i); • t_freq=logspace(1,11,100000); • w_l=2*pi*t_freq; • [b,a] = zp2tf(f_z1(i),f_p1,k); • h=freqs(b,a,w_l); • mag=20*log10(abs(h)); • subplot(2,1,1) • semilogx(w_l,mag); • hold on; • phase = angle(h); • pdiff =diff(phase); • w_l_new=diff(w_l); • grpdel = (pdiff./w_l_new)/(2*pi); % adding 2*pi since 2*pi get cancelled between pdiff and w_l_new • grpdel_max=max(grpdel); • grpdel_min=min(grpdel); • grpdel_pp=grpdel_max-grpdel_min • new(i,1)=grpdel_pp; • subplot(2,1,2) • semilogx(w_l(1:end-1),grpdel) • xlabel('Frequency (rad/s)') • ylabel('Group delay (s)') • end • hold off 1. No matlab codes readily available for group delay 2. Default matlab codes (grpdelay) are for digital filters 1. https://www.mathworks.com/help/signal/ref/grpdelay.html • Grpdelay function doesn’t give accurate results • Waveform shapes from my code are same as that of spectre and also handanalysis • Got confused so much since both groupDelay (spectre) and grpdelay (matlab) are inaccurate • Finally settled with my methods by comparing with handanalysis
  • 7. Matlab one pole case - results
  • 8. One pole and one zero case • Pole – 5e9 • Zero – 2e9, 3e9,4e9,5e9,6e9,7e9 • Circuit to produce a zero (R and L) and a pole (R and C) • Dc gain = 1 (R1.gm.R1) • Gm=R1*R1
  • 9. spectre results • As zero location is moved, dc gain is 0 but peak ac gain is decreasing • Group delay peak to peak (gdpp) is highest when zero is at 2G • 3G vs 7G – delta is 2G but gdpp is different
  • 10. Matlab code • f_z1=[2e9,3e9,4e9,5e9,6e9,7e9]; • f_p1=5e9; • new=[]; • clf; • for i=1:1:6 • k=f_p1/f_z1(i); • t_freq=logspace(1,11,100000); • w_l=2*pi*t_freq; • [b,a] = zp2tf(f_z1(i),f_p1,k); • h=freqs(b,a,w_l); • mag=20*log10(abs(h)); • subplot(2,1,1) • semilogx(w_l,mag); • hold on; • phase = angle(h); • • pdiff =diff(phase); • w_l_new=diff(w_l); • grpdel = (pdiff./w_l_new)./(2*pi); • grpdel_max=max(grpdel); • grpdel_min=min(grpdel); • grpdel_pp=grpdel_max-grpdel_min; • new(i,1)=grpdel_pp; • subplot(2,1,2) • semilogx(w_l(1:end-1),grpdel) • xlabel('Frequency (rad/s)') • ylabel('Group delay (s)') • hold on; • end • hold off • fprintf("%3.2e %s",new(1)); • fprintf("%3.2e %s",new(2)); • fprintf("%3.2e %s",new(3)); • fprintf("%3.2e %s",new(4)); • fprintf("%3.2e %s",new(5)); • fprintf("%3.2e %s",new(6));
  • 11. Matlab results • Frequency response matches with spectre results • Peak gain when zero @ 2GHz – 7.94dB and 7Ghz - -2.9dB • Matlab and spectre agree with each other