diff --git a/examples/xspice/table/clc409mod.sub b/examples/xspice/table/clc409mod.sub index 950a1d1c8..a64a34b5a 100644 --- a/examples/xspice/table/clc409mod.sub +++ b/examples/xspice/table/clc409mod.sub @@ -170,8 +170,11 @@ R23 36 0 122 .subckt tbqnpn c b e *** table model of npn bipolar transistor *** +* simple behavioral temperature model +.param fact = 0.05 +.param tgain = 1. + (TEMPER / 27. - 1.) * {fact} abip1 %vd(c e) %id(bint e) %id(c e) biptable1 -.model biptable1 table2d (offset=0.0 gain=1 order=2 file="qinn-clc409-2d-1.table") +.model biptable1 table2d (offset=0.0 gain={tgain} order=2 file="qinn-clc409-2d-1.table") * CJE=1.632E-13 Cje b e 1.632E-13 * CJC=1.720E-13 diff --git a/examples/xspice/table/table-generator-q-2d.sp b/examples/xspice/table/table-generator-q-2d.sp index 61043103d..a12cdb656 100644 --- a/examples/xspice/table/table-generator-q-2d.sp +++ b/examples/xspice/table/table-generator-q-2d.sp @@ -19,7 +19,6 @@ vee 3 0 0 .control ** output file ** set outfile = "qinn-clc409-2d-1.table" -*set outfile = "D:/Software/Spice/ngspice/src/xspice/examples/table/qinn-clc409-2d-1.table" dc vce -0.1 6 0.05 ib -0.1u 2u 0.1u plot i(vee) plot v(1) ylimit -0.2 0.8