Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to calculate transient frequency from y-parameter in matlab

Status
Not open for further replies.

tarjina

Junior Member level 3
Joined
Jun 7, 2012
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,536
Hi All,
I have my DC and small-signal AC analysis from TCAD Sentaurus. Now, I have to plot transit frequency vs. drain current.
I am calculating transient frequency in two ways.
1. ft= gm/(2*pi*cgs)
2. ft= f0/imag(y21/y11); f0=3e8 also used during simulation.

Now, I have two different graphs that completely looks different.
ft.pngft_1.png

matlab code for method 2 as follows:

Code:
[varnames83, data83]=read_plt('Id_n83_ac_des.plt'); %read all data in matrix as well as data names
CDCG83       = data83(:,strcmp(varnames83,'c(d,cg)'));
CCGCG83       = data83(:,strcmp(varnames83,'c(cg,cg)'));
aDCG83       = data83(:,strcmp(varnames83,'a(d,cg)'));
aCGCG83       = data83(:,strcmp(varnames83,'a(cg,cg)'));
CSCG83       = data83(:,strcmp(varnames83,'c(s,cg)'));
aSCG83       = data83(:,strcmp(varnames83,'a(s,cg)'));
y2183         =aDCG83+1i*2*pi*3e8*CDCG83; % formed by the equation given in Sentaurus user guide
y1183         =aCGCG83+1i*2*pi*3e8*CCGCG83;
ftac83        =3e8/imag(y2183./y1183);
p11=plot(IDS83(1:126)*1e9 ,-ftac83/(1e6),'-','LineWidth',3.0);
pl1.Color= [0 0 1];


Can anyone tell me what is going wrong? If I change the
Code:
ftac83        =3e8/imag(y2183./y1183);
to
Code:
ftac83        =3e8/1i*(y2183./y1183);
I have the following figure:
ft_2.png
But the changed code gives me an warning: imaginary values are ignored during plot. So, that should be an incorrect result because ft is calculated from imaginary part of y-parameter.


I am scratching my head here; also the clock is ticking for me. Any help is appreciated, thanks a lot in advance.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top