Lines Matching refs:here

75 BSIM4instance *here;  in BSIM4pzLoad()  local
103 { for (here = BSIM4instances(model); here!= NULL; in BSIM4pzLoad()
104 here = BSIM4nextInstance(here)) in BSIM4pzLoad()
106 pParam = here->pParam; in BSIM4pzLoad()
107 capbd = here->BSIM4capbd; in BSIM4pzLoad()
108 capbs = here->BSIM4capbs; in BSIM4pzLoad()
109 cgso = here->BSIM4cgso; in BSIM4pzLoad()
110 cgdo = here->BSIM4cgdo; in BSIM4pzLoad()
113 if (here->BSIM4mode >= 0) in BSIM4pzLoad()
114 { Gm = here->BSIM4gm; in BSIM4pzLoad()
115 Gmbs = here->BSIM4gmbs; in BSIM4pzLoad()
119 gbbdp = -(here->BSIM4gbds); in BSIM4pzLoad()
120 gbbsp = here->BSIM4gbds + here->BSIM4gbgs + here->BSIM4gbbs; in BSIM4pzLoad()
121 gbdpg = here->BSIM4gbgs; in BSIM4pzLoad()
122 gbdpdp = here->BSIM4gbds; in BSIM4pzLoad()
123 gbdpb = here->BSIM4gbbs; in BSIM4pzLoad()
132 { gIstotg = here->BSIM4gIgsg + here->BSIM4gIgcsg; in BSIM4pzLoad()
133 gIstotd = here->BSIM4gIgcsd; in BSIM4pzLoad()
134 gIstots = here->BSIM4gIgss + here->BSIM4gIgcss; in BSIM4pzLoad()
135 gIstotb = here->BSIM4gIgcsb; in BSIM4pzLoad()
137 gIdtotg = here->BSIM4gIgdg + here->BSIM4gIgcdg; in BSIM4pzLoad()
138 gIdtotd = here->BSIM4gIgdd + here->BSIM4gIgcdd; in BSIM4pzLoad()
139 gIdtots = here->BSIM4gIgcds; in BSIM4pzLoad()
140 gIdtotb = here->BSIM4gIgcdb; in BSIM4pzLoad()
148 { gIbtotg = here->BSIM4gIgbg; in BSIM4pzLoad()
149 gIbtotd = here->BSIM4gIgbd; in BSIM4pzLoad()
150 gIbtots = here->BSIM4gIgbs; in BSIM4pzLoad()
151 gIbtotb = here->BSIM4gIgbb; in BSIM4pzLoad()
165 if (here->BSIM4rgateMod == 2) in BSIM4pzLoad()
166 T0 = *(ckt->CKTstates[0] + here->BSIM4vges) in BSIM4pzLoad()
167 - *(ckt->CKTstates[0] + here->BSIM4vgs); in BSIM4pzLoad()
168 else if (here->BSIM4rgateMod == 3) in BSIM4pzLoad()
169 T0 = *(ckt->CKTstates[0] + here->BSIM4vgms) in BSIM4pzLoad()
170 - *(ckt->CKTstates[0] + here->BSIM4vgs); in BSIM4pzLoad()
171 if (here->BSIM4rgateMod > 1) in BSIM4pzLoad()
172 { gcrgd = here->BSIM4gcrgd * T0; in BSIM4pzLoad()
173 gcrgg = here->BSIM4gcrgg * T0; in BSIM4pzLoad()
174 gcrgs = here->BSIM4gcrgs * T0; in BSIM4pzLoad()
175 gcrgb = here->BSIM4gcrgb * T0; in BSIM4pzLoad()
176 gcrgg -= here->BSIM4gcrg; in BSIM4pzLoad()
177 gcrg = here->BSIM4gcrg; in BSIM4pzLoad()
182 if (here->BSIM4acnqsMod == 0) in BSIM4pzLoad()
183 { if (here->BSIM4rgateMod == 3) in BSIM4pzLoad()
193 xcggb = here->BSIM4cggb; in BSIM4pzLoad()
194 xcgdb = here->BSIM4cgdb; in BSIM4pzLoad()
195 xcgsb = here->BSIM4cgsb; in BSIM4pzLoad()
198 xcdgb = here->BSIM4cdgb; in BSIM4pzLoad()
199 xcsgb = -(here->BSIM4cggb + here->BSIM4cbgb in BSIM4pzLoad()
200 + here->BSIM4cdgb); in BSIM4pzLoad()
201 xcbgb = here->BSIM4cbgb; in BSIM4pzLoad()
204 { xcggb = here->BSIM4cggb + cgdo + cgso in BSIM4pzLoad()
206 xcgdb = here->BSIM4cgdb - cgdo; in BSIM4pzLoad()
207 xcgsb = here->BSIM4cgsb - cgso; in BSIM4pzLoad()
210 xcdgb = here->BSIM4cdgb - cgdo; in BSIM4pzLoad()
211 xcsgb = -(here->BSIM4cggb + here->BSIM4cbgb in BSIM4pzLoad()
212 + here->BSIM4cdgb + cgso); in BSIM4pzLoad()
213 xcbgb = here->BSIM4cbgb - pParam->BSIM4cgbo; in BSIM4pzLoad()
217 xcddb = here->BSIM4cddb + here->BSIM4capbd + cgdo; in BSIM4pzLoad()
218 xcdsb = here->BSIM4cdsb; in BSIM4pzLoad()
220 xcsdb = -(here->BSIM4cgdb + here->BSIM4cbdb in BSIM4pzLoad()
221 + here->BSIM4cddb); in BSIM4pzLoad()
222 xcssb = here->BSIM4capbs + cgso - (here->BSIM4cgsb in BSIM4pzLoad()
223 + here->BSIM4cbsb + here->BSIM4cdsb); in BSIM4pzLoad()
225 if (!here->BSIM4rbodyMod) in BSIM4pzLoad()
228 xcbdb = here->BSIM4cbdb - here->BSIM4capbd; in BSIM4pzLoad()
229 xcbsb = here->BSIM4cbsb - here->BSIM4capbs; in BSIM4pzLoad()
233 { xcdbb = -(here->BSIM4cddb + here->BSIM4cdgb in BSIM4pzLoad()
234 + here->BSIM4cdsb); in BSIM4pzLoad()
236 + here->BSIM4capbs; in BSIM4pzLoad()
237 xcbdb = here->BSIM4cbdb; in BSIM4pzLoad()
238 xcbsb = here->BSIM4cbsb; in BSIM4pzLoad()
240 xcdbdb = -here->BSIM4capbd; in BSIM4pzLoad()
241 xcsbsb = -here->BSIM4capbs; in BSIM4pzLoad()
259 xgtg = here->BSIM4gtg; in BSIM4pzLoad()
260 xgtd = here->BSIM4gtd; in BSIM4pzLoad()
261 xgts = here->BSIM4gts; in BSIM4pzLoad()
262 xgtb = here->BSIM4gtb; in BSIM4pzLoad()
264 xcqgb = here->BSIM4cqgb; in BSIM4pzLoad()
265 xcqdb = here->BSIM4cqdb; in BSIM4pzLoad()
266 xcqsb = here->BSIM4cqsb; in BSIM4pzLoad()
267 xcqbb = here->BSIM4cqbb; in BSIM4pzLoad()
269 CoxWL = model->BSIM4coxe * here->pParam->BSIM4weffCV in BSIM4pzLoad()
270 * here->BSIM4nf * here->pParam->BSIM4leffCV; in BSIM4pzLoad()
271 qcheq = -(here->BSIM4qgate + here->BSIM4qbulk); in BSIM4pzLoad()
286 { dxpart = here->BSIM4qdrn / qcheq; in BSIM4pzLoad()
287 Cdd = here->BSIM4cddb; in BSIM4pzLoad()
288 Csd = -(here->BSIM4cgdb + here->BSIM4cddb in BSIM4pzLoad()
289 + here->BSIM4cbdb); in BSIM4pzLoad()
291 Cdg = here->BSIM4cdgb; in BSIM4pzLoad()
292 Csg = -(here->BSIM4cggb + here->BSIM4cdgb in BSIM4pzLoad()
293 + here->BSIM4cbgb); in BSIM4pzLoad()
296 Cds = here->BSIM4cdsb; in BSIM4pzLoad()
297 Css = -(here->BSIM4cgsb + here->BSIM4cdsb in BSIM4pzLoad()
298 + here->BSIM4cbsb); in BSIM4pzLoad()
312 { Gm = -here->BSIM4gm; in BSIM4pzLoad()
313 Gmbs = -here->BSIM4gmbs; in BSIM4pzLoad()
317 gbbsp = -(here->BSIM4gbds); in BSIM4pzLoad()
318 gbbdp = here->BSIM4gbds + here->BSIM4gbgs + here->BSIM4gbbs; in BSIM4pzLoad()
325 gbspg = here->BSIM4gbgs; in BSIM4pzLoad()
326 gbspsp = here->BSIM4gbds; in BSIM4pzLoad()
327 gbspb = here->BSIM4gbbs; in BSIM4pzLoad()
331 { gIstotg = here->BSIM4gIgsg + here->BSIM4gIgcdg; in BSIM4pzLoad()
332 gIstotd = here->BSIM4gIgcds; in BSIM4pzLoad()
333 gIstots = here->BSIM4gIgss + here->BSIM4gIgcdd; in BSIM4pzLoad()
334 gIstotb = here->BSIM4gIgcdb; in BSIM4pzLoad()
336 gIdtotg = here->BSIM4gIgdg + here->BSIM4gIgcsg; in BSIM4pzLoad()
337 gIdtotd = here->BSIM4gIgdd + here->BSIM4gIgcss; in BSIM4pzLoad()
338 gIdtots = here->BSIM4gIgcsd; in BSIM4pzLoad()
339 gIdtotb = here->BSIM4gIgcsb; in BSIM4pzLoad()
347 { gIbtotg = here->BSIM4gIgbg; in BSIM4pzLoad()
348 gIbtotd = here->BSIM4gIgbs; in BSIM4pzLoad()
349 gIbtots = here->BSIM4gIgbd; in BSIM4pzLoad()
350 gIbtotb = here->BSIM4gIgbb; in BSIM4pzLoad()
364 if (here->BSIM4rgateMod == 2) in BSIM4pzLoad()
365 T0 = *(ckt->CKTstates[0] + here->BSIM4vges) in BSIM4pzLoad()
366 - *(ckt->CKTstates[0] + here->BSIM4vgs); in BSIM4pzLoad()
367 else if (here->BSIM4rgateMod == 3) in BSIM4pzLoad()
368 T0 = *(ckt->CKTstates[0] + here->BSIM4vgms) in BSIM4pzLoad()
369 - *(ckt->CKTstates[0] + here->BSIM4vgs); in BSIM4pzLoad()
370 if (here->BSIM4rgateMod > 1) in BSIM4pzLoad()
371 { gcrgd = here->BSIM4gcrgs * T0; in BSIM4pzLoad()
372 gcrgg = here->BSIM4gcrgg * T0; in BSIM4pzLoad()
373 gcrgs = here->BSIM4gcrgd * T0; in BSIM4pzLoad()
374 gcrgb = here->BSIM4gcrgb * T0; in BSIM4pzLoad()
375 gcrgg -= here->BSIM4gcrg; in BSIM4pzLoad()
376 gcrg = here->BSIM4gcrg; in BSIM4pzLoad()
381 if (here->BSIM4acnqsMod == 0) in BSIM4pzLoad()
382 { if (here->BSIM4rgateMod == 3) in BSIM4pzLoad()
392 xcggb = here->BSIM4cggb; in BSIM4pzLoad()
393 xcgdb = here->BSIM4cgsb; in BSIM4pzLoad()
394 xcgsb = here->BSIM4cgdb; in BSIM4pzLoad()
397 xcdgb = -(here->BSIM4cggb + here->BSIM4cbgb in BSIM4pzLoad()
398 + here->BSIM4cdgb); in BSIM4pzLoad()
399 xcsgb = here->BSIM4cdgb; in BSIM4pzLoad()
400 xcbgb = here->BSIM4cbgb; in BSIM4pzLoad()
403 { xcggb = here->BSIM4cggb + cgdo + cgso in BSIM4pzLoad()
405 xcgdb = here->BSIM4cgsb - cgdo; in BSIM4pzLoad()
406 xcgsb = here->BSIM4cgdb - cgso; in BSIM4pzLoad()
409 xcdgb = -(here->BSIM4cggb + here->BSIM4cbgb in BSIM4pzLoad()
410 + here->BSIM4cdgb + cgdo); in BSIM4pzLoad()
411 xcsgb = here->BSIM4cdgb - cgso; in BSIM4pzLoad()
412 xcbgb = here->BSIM4cbgb - pParam->BSIM4cgbo; in BSIM4pzLoad()
416 xcddb = here->BSIM4capbd + cgdo - (here->BSIM4cgsb in BSIM4pzLoad()
417 + here->BSIM4cbsb + here->BSIM4cdsb); in BSIM4pzLoad()
418 xcdsb = -(here->BSIM4cgdb + here->BSIM4cbdb in BSIM4pzLoad()
419 + here->BSIM4cddb); in BSIM4pzLoad()
421 xcsdb = here->BSIM4cdsb; in BSIM4pzLoad()
422 xcssb = here->BSIM4cddb + here->BSIM4capbs + cgso; in BSIM4pzLoad()
424 if (!here->BSIM4rbodyMod) in BSIM4pzLoad()
427 xcbdb = here->BSIM4cbsb - here->BSIM4capbd; in BSIM4pzLoad()
428 xcbsb = here->BSIM4cbdb - here->BSIM4capbs; in BSIM4pzLoad()
433 + here->BSIM4capbd; in BSIM4pzLoad()
434 xcsbb = -(here->BSIM4cddb + here->BSIM4cdgb in BSIM4pzLoad()
435 + here->BSIM4cdsb); in BSIM4pzLoad()
436 xcbdb = here->BSIM4cbsb; in BSIM4pzLoad()
437 xcbsb = here->BSIM4cbdb; in BSIM4pzLoad()
438 xcdbdb = -here->BSIM4capbd; in BSIM4pzLoad()
439 xcsbsb = -here->BSIM4capbs; in BSIM4pzLoad()
457 xgtg = here->BSIM4gtg; in BSIM4pzLoad()
458 xgtd = here->BSIM4gts; in BSIM4pzLoad()
459 xgts = here->BSIM4gtd; in BSIM4pzLoad()
460 xgtb = here->BSIM4gtb; in BSIM4pzLoad()
462 xcqgb = here->BSIM4cqgb; in BSIM4pzLoad()
463 xcqdb = here->BSIM4cqsb; in BSIM4pzLoad()
464 xcqsb = here->BSIM4cqdb; in BSIM4pzLoad()
465 xcqbb = here->BSIM4cqbb; in BSIM4pzLoad()
467 CoxWL = model->BSIM4coxe * here->pParam->BSIM4weffCV in BSIM4pzLoad()
468 * here->BSIM4nf * here->pParam->BSIM4leffCV; in BSIM4pzLoad()
469 qcheq = -(here->BSIM4qgate + here->BSIM4qbulk); in BSIM4pzLoad()
484 { sxpart = here->BSIM4qdrn / qcheq; in BSIM4pzLoad()
485 Css = here->BSIM4cddb; in BSIM4pzLoad()
486 Cds = -(here->BSIM4cgdb + here->BSIM4cddb in BSIM4pzLoad()
487 + here->BSIM4cbdb); in BSIM4pzLoad()
489 Csg = here->BSIM4cdgb; in BSIM4pzLoad()
490 Cdg = -(here->BSIM4cggb + here->BSIM4cdgb in BSIM4pzLoad()
491 + here->BSIM4cbgb); in BSIM4pzLoad()
494 Csd = here->BSIM4cdsb; in BSIM4pzLoad()
495 Cdd = -(here->BSIM4cgsb + here->BSIM4cdsb in BSIM4pzLoad()
496 + here->BSIM4cbsb); in BSIM4pzLoad()
511 { gstot = here->BSIM4gstot; in BSIM4pzLoad()
512 gstotd = here->BSIM4gstotd; in BSIM4pzLoad()
513 gstotg = here->BSIM4gstotg; in BSIM4pzLoad()
514 gstots = here->BSIM4gstots - gstot; in BSIM4pzLoad()
515 gstotb = here->BSIM4gstotb; in BSIM4pzLoad()
517 gdtot = here->BSIM4gdtot; in BSIM4pzLoad()
518 gdtotd = here->BSIM4gdtotd - gdtot; in BSIM4pzLoad()
519 gdtotg = here->BSIM4gdtotg; in BSIM4pzLoad()
520 gdtots = here->BSIM4gdtots; in BSIM4pzLoad()
521 gdtotb = here->BSIM4gdtotb; in BSIM4pzLoad()
529 T1 = *(ckt->CKTstate0 + here->BSIM4qdef) * here->BSIM4gtau; in BSIM4pzLoad()
530 gds = here->BSIM4gds; in BSIM4pzLoad()
535 m = here->BSIM4m; in BSIM4pzLoad()
538 { gdpr = here->BSIM4drainConductance; in BSIM4pzLoad()
539 gspr = here->BSIM4sourceConductance; in BSIM4pzLoad()
544 if (!here->BSIM4rbodyMod) in BSIM4pzLoad()
545 { gjbd = here->BSIM4gbd; in BSIM4pzLoad()
546 gjbs = here->BSIM4gbs; in BSIM4pzLoad()
551 geltd = here->BSIM4grgeltd; in BSIM4pzLoad()
553 if (here->BSIM4rgateMod == 1) in BSIM4pzLoad()
554 { *(here->BSIM4GEgePtr) += m * geltd; in BSIM4pzLoad()
555 *(here->BSIM4GPgePtr) -= m * geltd; in BSIM4pzLoad()
556 *(here->BSIM4GEgpPtr) -= m * geltd; in BSIM4pzLoad()
558 *(here->BSIM4GPgpPtr ) += m * xcggb * s->real; in BSIM4pzLoad()
559 *(here->BSIM4GPgpPtr +1) += m * xcggb * s->imag; in BSIM4pzLoad()
560 *(here->BSIM4GPgpPtr) += m * (geltd - xgtg + gIgtotg); in BSIM4pzLoad()
561 *(here->BSIM4GPdpPtr ) += m * xcgdb * s->real; in BSIM4pzLoad()
562 *(here->BSIM4GPdpPtr +1) += m * xcgdb * s->imag; in BSIM4pzLoad()
563 *(here->BSIM4GPdpPtr) -= m * (xgtd - gIgtotd); in BSIM4pzLoad()
564 *(here->BSIM4GPspPtr ) += m * xcgsb * s->real; in BSIM4pzLoad()
565 *(here->BSIM4GPspPtr +1) += m * xcgsb * s->imag; in BSIM4pzLoad()
566 *(here->BSIM4GPspPtr) -= m * (xgts - gIgtots); in BSIM4pzLoad()
567 *(here->BSIM4GPbpPtr ) += m * xcgbb * s->real; in BSIM4pzLoad()
568 *(here->BSIM4GPbpPtr +1) += m * xcgbb * s->imag; in BSIM4pzLoad()
569 *(here->BSIM4GPbpPtr) -= m * (xgtb - gIgtotb); in BSIM4pzLoad()
571 else if (here->BSIM4rgateMod == 2) in BSIM4pzLoad()
572 { *(here->BSIM4GEgePtr) += m * gcrg; in BSIM4pzLoad()
573 *(here->BSIM4GEgpPtr) += m * gcrgg; in BSIM4pzLoad()
574 *(here->BSIM4GEdpPtr) += m * gcrgd; in BSIM4pzLoad()
575 *(here->BSIM4GEspPtr) += m * gcrgs; in BSIM4pzLoad()
576 *(here->BSIM4GEbpPtr) += m * gcrgb; in BSIM4pzLoad()
578 *(here->BSIM4GPgePtr) -= m * gcrg; in BSIM4pzLoad()
579 *(here->BSIM4GPgpPtr ) += m * xcggb * s->real; in BSIM4pzLoad()
580 *(here->BSIM4GPgpPtr +1) += m * xcggb * s->imag; in BSIM4pzLoad()
581 *(here->BSIM4GPgpPtr) -= m * (gcrgg + xgtg - gIgtotg); in BSIM4pzLoad()
582 *(here->BSIM4GPdpPtr ) += m * xcgdb * s->real; in BSIM4pzLoad()
583 *(here->BSIM4GPdpPtr +1) += m * xcgdb * s->imag; in BSIM4pzLoad()
584 *(here->BSIM4GPdpPtr) -= m * (gcrgd + xgtd - gIgtotd); in BSIM4pzLoad()
585 *(here->BSIM4GPspPtr ) += m * xcgsb * s->real; in BSIM4pzLoad()
586 *(here->BSIM4GPspPtr +1) += m * xcgsb * s->imag; in BSIM4pzLoad()
587 *(here->BSIM4GPspPtr) -= m * (gcrgs + xgts - gIgtots); in BSIM4pzLoad()
588 *(here->BSIM4GPbpPtr ) += m * xcgbb * s->real; in BSIM4pzLoad()
589 *(here->BSIM4GPbpPtr +1) += m * xcgbb * s->imag; in BSIM4pzLoad()
590 *(here->BSIM4GPbpPtr) -= m * (gcrgb + xgtb - gIgtotb); in BSIM4pzLoad()
592 else if (here->BSIM4rgateMod == 3) in BSIM4pzLoad()
593 { *(here->BSIM4GEgePtr) += m * geltd; in BSIM4pzLoad()
594 *(here->BSIM4GEgmPtr) -= m * geltd; in BSIM4pzLoad()
595 *(here->BSIM4GMgePtr) -= m * geltd; in BSIM4pzLoad()
596 *(here->BSIM4GMgmPtr) += m * (geltd + gcrg); in BSIM4pzLoad()
597 *(here->BSIM4GMgmPtr ) += m * xcgmgmb * s->real; in BSIM4pzLoad()
598 *(here->BSIM4GMgmPtr +1) += m * xcgmgmb * s->imag; in BSIM4pzLoad()
600 *(here->BSIM4GMdpPtr) += m * gcrgd; in BSIM4pzLoad()
601 *(here->BSIM4GMdpPtr ) += m * xcgmdb * s->real; in BSIM4pzLoad()
602 *(here->BSIM4GMdpPtr +1) += m * xcgmdb * s->imag; in BSIM4pzLoad()
603 *(here->BSIM4GMgpPtr) += m * gcrgg; in BSIM4pzLoad()
604 *(here->BSIM4GMspPtr) += m * gcrgs; in BSIM4pzLoad()
605 *(here->BSIM4GMspPtr ) += m * xcgmsb * s->real; in BSIM4pzLoad()
606 *(here->BSIM4GMspPtr +1) += m * xcgmsb * s->imag; in BSIM4pzLoad()
607 *(here->BSIM4GMbpPtr) += m * gcrgb; in BSIM4pzLoad()
608 *(here->BSIM4GMbpPtr ) += m * xcgmbb * s->real; in BSIM4pzLoad()
609 *(here->BSIM4GMbpPtr +1) += m * xcgmbb * s->imag; in BSIM4pzLoad()
611 *(here->BSIM4DPgmPtr ) += m * xcdgmb * s->real; in BSIM4pzLoad()
612 *(here->BSIM4DPgmPtr +1) += m * xcdgmb * s->imag; in BSIM4pzLoad()
613 *(here->BSIM4GPgmPtr) -= m * gcrg; in BSIM4pzLoad()
614 *(here->BSIM4SPgmPtr ) += m * xcsgmb * s->real; in BSIM4pzLoad()
615 *(here->BSIM4SPgmPtr +1) += m * xcsgmb * s->imag; in BSIM4pzLoad()
616 *(here->BSIM4BPgmPtr ) += m * xcbgmb * s->real; in BSIM4pzLoad()
617 *(here->BSIM4BPgmPtr +1) += m * xcbgmb * s->imag; in BSIM4pzLoad()
619 *(here->BSIM4GPgpPtr) -= m * (gcrgg + xgtg - gIgtotg); in BSIM4pzLoad()
620 *(here->BSIM4GPgpPtr ) += m * xcggb * s->real; in BSIM4pzLoad()
621 *(here->BSIM4GPgpPtr +1) += m * xcggb * s->imag; in BSIM4pzLoad()
622 *(here->BSIM4GPdpPtr) -= m * (gcrgd + xgtd - gIgtotd); in BSIM4pzLoad()
623 *(here->BSIM4GPdpPtr ) += m * xcgdb * s->real; in BSIM4pzLoad()
624 *(here->BSIM4GPdpPtr +1) += m * xcgdb * s->imag; in BSIM4pzLoad()
625 *(here->BSIM4GPspPtr) -= m * (gcrgs + xgts - gIgtots); in BSIM4pzLoad()
626 *(here->BSIM4GPspPtr ) += m * xcgsb * s->real; in BSIM4pzLoad()
627 *(here->BSIM4GPspPtr +1) += m * xcgsb * s->imag; in BSIM4pzLoad()
628 *(here->BSIM4GPbpPtr) -= m * (gcrgb + xgtb - gIgtotb); in BSIM4pzLoad()
629 *(here->BSIM4GPbpPtr ) += m * xcgbb * s->real; in BSIM4pzLoad()
630 *(here->BSIM4GPbpPtr +1) += m * xcgbb * s->imag; in BSIM4pzLoad()
633 { *(here->BSIM4GPdpPtr ) += m * xcgdb * s->real; in BSIM4pzLoad()
634 *(here->BSIM4GPdpPtr +1) += m * xcgdb * s->imag; in BSIM4pzLoad()
635 *(here->BSIM4GPdpPtr) -= m * (xgtd - gIgtotd); in BSIM4pzLoad()
636 *(here->BSIM4GPgpPtr ) += m * xcggb * s->real; in BSIM4pzLoad()
637 *(here->BSIM4GPgpPtr +1) += m * xcggb * s->imag; in BSIM4pzLoad()
638 *(here->BSIM4GPgpPtr) -= m * (xgtg - gIgtotg); in BSIM4pzLoad()
639 *(here->BSIM4GPspPtr ) += m * xcgsb * s->real; in BSIM4pzLoad()
640 *(here->BSIM4GPspPtr +1) += m * xcgsb * s->imag; in BSIM4pzLoad()
641 *(here->BSIM4GPspPtr) -= m * (xgts - gIgtots); in BSIM4pzLoad()
642 *(here->BSIM4GPbpPtr ) += m * xcgbb * s->real; in BSIM4pzLoad()
643 *(here->BSIM4GPbpPtr +1) += m * xcgbb * s->imag; in BSIM4pzLoad()
644 *(here->BSIM4GPbpPtr) -= m * (xgtb - gIgtotb); in BSIM4pzLoad()
648 { (*(here->BSIM4DgpPtr) += m * gdtotg); in BSIM4pzLoad()
649 (*(here->BSIM4DspPtr) += m * gdtots); in BSIM4pzLoad()
650 (*(here->BSIM4DbpPtr) += m * gdtotb); in BSIM4pzLoad()
651 (*(here->BSIM4SdpPtr) += m * gstotd); in BSIM4pzLoad()
652 (*(here->BSIM4SgpPtr) += m * gstotg); in BSIM4pzLoad()
653 (*(here->BSIM4SbpPtr) += m * gstotb); in BSIM4pzLoad()
656 *(here->BSIM4DPdpPtr ) += m * xcddb * s->real; in BSIM4pzLoad()
657 *(here->BSIM4DPdpPtr +1) += m * xcddb * s->imag; in BSIM4pzLoad()
658 *(here->BSIM4DPdpPtr) += m * (gdpr + gds + here->BSIM4gbd in BSIM4pzLoad()
661 *(here->BSIM4DPdPtr) -= m * (gdpr + gdtot); in BSIM4pzLoad()
662 *(here->BSIM4DPgpPtr ) += m * xcdgb * s->real; in BSIM4pzLoad()
663 *(here->BSIM4DPgpPtr +1) += m * xcdgb * s->imag; in BSIM4pzLoad()
664 *(here->BSIM4DPgpPtr) += m * (Gm - gdtotg + gbdpg - gIdtotg in BSIM4pzLoad()
666 *(here->BSIM4DPspPtr ) += m * xcdsb * s->real; in BSIM4pzLoad()
667 *(here->BSIM4DPspPtr +1) += m * xcdsb * s->imag; in BSIM4pzLoad()
668 *(here->BSIM4DPspPtr) -= m * (gds + FwdSum + gdtots - gbdpsp + gIdtots in BSIM4pzLoad()
670 *(here->BSIM4DPbpPtr ) += m * xcdbb * s->real; in BSIM4pzLoad()
671 *(here->BSIM4DPbpPtr +1) += m * xcdbb * s->imag; in BSIM4pzLoad()
672 *(here->BSIM4DPbpPtr) -= m * (gjbd + gdtotb - Gmbs - gbdpb + gIdtotb in BSIM4pzLoad()
675 *(here->BSIM4DdpPtr) -= m * (gdpr - gdtotd); in BSIM4pzLoad()
676 *(here->BSIM4DdPtr) += m * (gdpr + gdtot); in BSIM4pzLoad()
678 *(here->BSIM4SPdpPtr ) += m * xcsdb * s->real; in BSIM4pzLoad()
679 *(here->BSIM4SPdpPtr +1) += m * xcsdb * s->imag; in BSIM4pzLoad()
680 *(here->BSIM4SPdpPtr) -= m * (gds + gstotd + RevSum - gbspdp + gIstotd in BSIM4pzLoad()
682 *(here->BSIM4SPgpPtr ) += m * xcsgb * s->real; in BSIM4pzLoad()
683 *(here->BSIM4SPgpPtr +1) += m * xcsgb * s->imag; in BSIM4pzLoad()
684 *(here->BSIM4SPgpPtr) -= m * (Gm + gstotg - gbspg + gIstotg in BSIM4pzLoad()
686 *(here->BSIM4SPspPtr ) += m * xcssb * s->real; in BSIM4pzLoad()
687 *(here->BSIM4SPspPtr +1) += m * xcssb * s->imag; in BSIM4pzLoad()
688 *(here->BSIM4SPspPtr) += m * (gspr + gds + here->BSIM4gbs - gIstots in BSIM4pzLoad()
691 *(here->BSIM4SPsPtr) -= m * (gspr + gstot); in BSIM4pzLoad()
692 *(here->BSIM4SPbpPtr ) += m * xcsbb * s->real; in BSIM4pzLoad()
693 *(here->BSIM4SPbpPtr +1) += m * xcsbb * s->imag; in BSIM4pzLoad()
694 *(here->BSIM4SPbpPtr) -= m * (gjbs + gstotb + Gmbs - gbspb + gIstotb in BSIM4pzLoad()
697 *(here->BSIM4SspPtr) -= m * (gspr - gstots); in BSIM4pzLoad()
698 *(here->BSIM4SsPtr) += m * (gspr + gstot); in BSIM4pzLoad()
700 *(here->BSIM4BPdpPtr ) += m * xcbdb * s->real; in BSIM4pzLoad()
701 *(here->BSIM4BPdpPtr +1) += m * xcbdb * s->imag; in BSIM4pzLoad()
702 *(here->BSIM4BPdpPtr) -= m * (gjbd - gbbdp + gIbtotd); in BSIM4pzLoad()
703 *(here->BSIM4BPgpPtr ) += m * xcbgb * s->real; in BSIM4pzLoad()
704 *(here->BSIM4BPgpPtr +1) += m * xcbgb * s->imag; in BSIM4pzLoad()
705 *(here->BSIM4BPgpPtr) -= m * (here->BSIM4gbgs + gIbtotg); in BSIM4pzLoad()
706 *(here->BSIM4BPspPtr ) += m * xcbsb * s->real; in BSIM4pzLoad()
707 *(here->BSIM4BPspPtr +1) += m * xcbsb * s->imag; in BSIM4pzLoad()
708 *(here->BSIM4BPspPtr) -= m * (gjbs - gbbsp + gIbtots); in BSIM4pzLoad()
709 *(here->BSIM4BPbpPtr ) += m * xcbbb * s->real; in BSIM4pzLoad()
710 *(here->BSIM4BPbpPtr +1) += m * xcbbb * s->imag; in BSIM4pzLoad()
711 *(here->BSIM4BPbpPtr) += m * (gjbd + gjbs - here->BSIM4gbbs in BSIM4pzLoad()
713 ggidld = here->BSIM4ggidld; in BSIM4pzLoad()
714 ggidlg = here->BSIM4ggidlg; in BSIM4pzLoad()
715 ggidlb = here->BSIM4ggidlb; in BSIM4pzLoad()
716 ggislg = here->BSIM4ggislg; in BSIM4pzLoad()
717 ggisls = here->BSIM4ggisls; in BSIM4pzLoad()
718 ggislb = here->BSIM4ggislb; in BSIM4pzLoad()
721 (*(here->BSIM4DPdpPtr) += m * ggidld); in BSIM4pzLoad()
722 (*(here->BSIM4DPgpPtr) += m * ggidlg); in BSIM4pzLoad()
723 (*(here->BSIM4DPspPtr) -= m * ((ggidlg + ggidld) + ggidlb)); in BSIM4pzLoad()
724 (*(here->BSIM4DPbpPtr) += m * ggidlb); in BSIM4pzLoad()
725 (*(here->BSIM4BPdpPtr) -= m * ggidld); in BSIM4pzLoad()
726 (*(here->BSIM4BPgpPtr) -= m * ggidlg); in BSIM4pzLoad()
727 (*(here->BSIM4BPspPtr) += m * ((ggidlg + ggidld) + ggidlb)); in BSIM4pzLoad()
728 (*(here->BSIM4BPbpPtr) -= m * ggidlb); in BSIM4pzLoad()
730 (*(here->BSIM4SPdpPtr) -= m * ((ggisls + ggislg) + ggislb)); in BSIM4pzLoad()
731 (*(here->BSIM4SPgpPtr) += m * ggislg); in BSIM4pzLoad()
732 (*(here->BSIM4SPspPtr) += m * ggisls); in BSIM4pzLoad()
733 (*(here->BSIM4SPbpPtr) += m * ggislb); in BSIM4pzLoad()
734 (*(here->BSIM4BPdpPtr) += m * ((ggislg + ggisls) + ggislb)); in BSIM4pzLoad()
735 (*(here->BSIM4BPgpPtr) -= m * ggislg); in BSIM4pzLoad()
736 (*(here->BSIM4BPspPtr) -= m * ggisls); in BSIM4pzLoad()
737 (*(here->BSIM4BPbpPtr) -= m * ggislb); in BSIM4pzLoad()
739 if (here->BSIM4rbodyMod) in BSIM4pzLoad()
740 { (*(here->BSIM4DPdbPtr ) += m * xcdbdb * s->real); in BSIM4pzLoad()
741 (*(here->BSIM4DPdbPtr +1) += m * xcdbdb * s->imag); in BSIM4pzLoad()
742 (*(here->BSIM4DPdbPtr) -= m * here->BSIM4gbd); in BSIM4pzLoad()
743 (*(here->BSIM4SPsbPtr ) += m * xcsbsb * s->real); in BSIM4pzLoad()
744 (*(here->BSIM4SPsbPtr +1) += m * xcsbsb * s->imag); in BSIM4pzLoad()
745 (*(here->BSIM4SPsbPtr) -= m * here->BSIM4gbs); in BSIM4pzLoad()
747 (*(here->BSIM4DBdpPtr ) += m * xcdbdb * s->real); in BSIM4pzLoad()
748 (*(here->BSIM4DBdpPtr +1) += m * xcdbdb * s->imag); in BSIM4pzLoad()
749 (*(here->BSIM4DBdpPtr) -= m * here->BSIM4gbd); in BSIM4pzLoad()
750 (*(here->BSIM4DBdbPtr ) -= m * xcdbdb * s->real); in BSIM4pzLoad()
751 (*(here->BSIM4DBdbPtr +1) -= m * xcdbdb * s->imag); in BSIM4pzLoad()
752 (*(here->BSIM4DBdbPtr) += m * (here->BSIM4gbd + here->BSIM4grbpd in BSIM4pzLoad()
753 + here->BSIM4grbdb)); in BSIM4pzLoad()
754 (*(here->BSIM4DBbpPtr) -= m * here->BSIM4grbpd); in BSIM4pzLoad()
755 (*(here->BSIM4DBbPtr) -= m * here->BSIM4grbdb); in BSIM4pzLoad()
757 (*(here->BSIM4BPdbPtr) -= m * here->BSIM4grbpd); in BSIM4pzLoad()
758 (*(here->BSIM4BPbPtr) -= m * here->BSIM4grbpb); in BSIM4pzLoad()
759 (*(here->BSIM4BPsbPtr) -= m * here->BSIM4grbps); in BSIM4pzLoad()
760 (*(here->BSIM4BPbpPtr) += m * (here->BSIM4grbpd + here->BSIM4grbps in BSIM4pzLoad()
761 + here->BSIM4grbpb)); in BSIM4pzLoad()
764 (*(here->BSIM4SBspPtr ) += m * xcsbsb * s->real); in BSIM4pzLoad()
765 (*(here->BSIM4SBspPtr +1) += m * xcsbsb * s->imag); in BSIM4pzLoad()
766 (*(here->BSIM4SBspPtr) -= m * here->BSIM4gbs); in BSIM4pzLoad()
767 (*(here->BSIM4SBbpPtr) -= m * here->BSIM4grbps); in BSIM4pzLoad()
768 (*(here->BSIM4SBbPtr) -= m * here->BSIM4grbsb); in BSIM4pzLoad()
769 (*(here->BSIM4SBsbPtr ) -= m * xcsbsb * s->real); in BSIM4pzLoad()
770 (*(here->BSIM4SBsbPtr +1) -= m * xcsbsb * s->imag); in BSIM4pzLoad()
771 (*(here->BSIM4SBsbPtr) += m * (here->BSIM4gbs in BSIM4pzLoad()
772 + here->BSIM4grbps + here->BSIM4grbsb)); in BSIM4pzLoad()
774 (*(here->BSIM4BdbPtr) -= m * here->BSIM4grbdb); in BSIM4pzLoad()
775 (*(here->BSIM4BbpPtr) -= m * here->BSIM4grbpb); in BSIM4pzLoad()
776 (*(here->BSIM4BsbPtr) -= m * here->BSIM4grbsb); in BSIM4pzLoad()
777 (*(here->BSIM4BbPtr) += m * (here->BSIM4grbsb + here->BSIM4grbdb in BSIM4pzLoad()
778 + here->BSIM4grbpb)); in BSIM4pzLoad()
781 if (here->BSIM4acnqsMod) in BSIM4pzLoad()
782 { *(here->BSIM4QqPtr ) += m * s->real * ScalingFactor; in BSIM4pzLoad()
783 *(here->BSIM4QqPtr +1) += m * s->imag * ScalingFactor; in BSIM4pzLoad()
784 *(here->BSIM4QgpPtr ) -= m * xcqgb * s->real; in BSIM4pzLoad()
785 *(here->BSIM4QgpPtr +1) -= m * xcqgb * s->imag; in BSIM4pzLoad()
786 *(here->BSIM4QdpPtr ) -= m * xcqdb * s->real; in BSIM4pzLoad()
787 *(here->BSIM4QdpPtr +1) -= m * xcqdb * s->imag; in BSIM4pzLoad()
788 *(here->BSIM4QbpPtr ) -= m * xcqbb * s->real; in BSIM4pzLoad()
789 *(here->BSIM4QbpPtr +1) -= m * xcqbb * s->imag; in BSIM4pzLoad()
790 *(here->BSIM4QspPtr ) -= m * xcqsb * s->real; in BSIM4pzLoad()
791 *(here->BSIM4QspPtr +1) -= m * xcqsb * s->imag; in BSIM4pzLoad()
793 *(here->BSIM4GPqPtr) -= m * here->BSIM4gtau; in BSIM4pzLoad()
794 *(here->BSIM4DPqPtr) += m * dxpart * here->BSIM4gtau; in BSIM4pzLoad()
795 *(here->BSIM4SPqPtr) += m * sxpart * here->BSIM4gtau; in BSIM4pzLoad()
797 *(here->BSIM4QqPtr) += m * here->BSIM4gtau; in BSIM4pzLoad()
798 *(here->BSIM4QgpPtr) += m * xgtg; in BSIM4pzLoad()
799 *(here->BSIM4QdpPtr) += m * xgtd; in BSIM4pzLoad()
800 *(here->BSIM4QbpPtr) += m * xgtb; in BSIM4pzLoad()
801 *(here->BSIM4QspPtr) += m * xgts; in BSIM4pzLoad()