palermo1982
Newbie level 1
- Joined
- Nov 3, 2008
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,288
Hi,
I´m trying to simulate a tunnel fet transistor using veriloga models from Penn State University. I have written the following code:
It corresponds to the following schematic, where I have marked in red the name of the nodes (d, dd, s, ss). I have assumed that Rparisitc=55/W and Caparasitic=0.1fF*W.
View attachment d.bmp
Once I try to simulate I find that no convergence is achieved, getting the following error:
Zero diagonal found in Jacobian at M3.dd ...
Could you please give mw any kind of hint of what´s going on with this? Thanks a lot!
I´m trying to simulate a tunnel fet transistor using veriloga models from Penn State University. I have written the following code:
// VerilogA for ptmBasic, PTFET, veriloga
`include "constants.vams"
`include "disciplines.vams"
module PTFET(d,g,s);
inout d,g,s;
electrical g,d,s, dd, ss;
real Ids, Cgs, Cgd, Qgs, Qgd, f;
real VgsEff;
integer out_file;
parameter real W=1;
analog begin
// We assume that the PTFET and NTFET drive currents are similar
Ids=$table_model(-V(dd,ss), (-V(g,ss)), "/mnt/cnm/jnunez/cadence/PTM/TFET/IdVg-GaSb-InAs-HNTFET-Lg-20nm.tbl","1LL,1LL");
// We do not assume that the PTFET and NTFET gate capacitances are similar because the hole and electon DoS in InAs are significantly different
Cgd=$table_model(V(dd,ss), (V(g,ss)), "/mnt/cnm/jnunez/cadence/PTM/TFET/CGD-GaSb-InAs-HPTFET-Lg-20nm.tbl","1LL,1LL");
Cgs=$table_model(V(dd,ss), (V(g,ss)), "/mnt/cnm/jnunez/cadence/PTM/TFET/CGS-GaSb-InAs-HPTFET-Lg-20nm.tbl","1LL,1LL");
if(analysis("dc")) begin
I(dd,ss) <+ -1*Ids*W;
V(dd,d) <+ I(dd,ss)*55/W;
V(s,ss) <+ I(dd,ss)*55/W;
end
else begin
if(analysis("tran")) begin
Qgd = (W*1*Cgd)*(V(g,dd));
Qgs = (W*1*Cgs)*(V(g,ss));
I(dd,ss) <+ -1*Ids*W;
I(g,dd) <+ ddt(Qgd);
I(g,ss) <+ ddt(Qgs);
V(dd,d) <+ (1/(W*0.1e-15))*ddt(V(d))*55/W;
V(ss,s) <+ (1/(W*0.1e-15))*ddt(V(s))*55/W;
end
end
end
endmodule
It corresponds to the following schematic, where I have marked in red the name of the nodes (d, dd, s, ss). I have assumed that Rparisitc=55/W and Caparasitic=0.1fF*W.
View attachment d.bmp
Once I try to simulate I find that no convergence is achieved, getting the following error:
Zero diagonal found in Jacobian at M3.dd ...
Could you please give mw any kind of hint of what´s going on with this? Thanks a lot!