From cb47adbdf1d40728e1c30aecac19702e9d182fa5 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 8 Sep 2023 17:27:35 +0800 Subject: [PATCH] __ses_path_va_transistor --- ses_step_va_transistor.c | 16 ++++++++++++++-- ses_steps.c | 4 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ses_step_va_transistor.c b/ses_step_va_transistor.c index 094b8cc..c2a6169 100644 --- a/ses_step_va_transistor.c +++ b/ses_step_va_transistor.c @@ -72,8 +72,20 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) __ses_path_dr(pb, p1, pb); - scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg + j%lg, pb->v: %lg + j%lg, pb->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, pb->dr: %lg + j%lg\n", - i, pb->cid, pb->id, p1->cid, p1->id, v, jv, pb->v, pb->jv, pb->a, pb->ja, pr, jpr, sr, jsr, pb->dr, pb->jdr); + scf_loge("i: %d, c%ldp%ld, v: %lg + j%lg, pb->v: %lg + j%lg, pb->a: %lg + j%lg, pr: %lg + j%lg, sr: %lg + j%lg, pb->dr: %lg + j%lg\n", + i, pb->cid, pb->id, v, jv, pb->v, pb->jv, pb->a, pb->ja, pr, jpr, sr, jsr, pb->dr, pb->jdr); + + pc = c->pins[SCF_EDA_Transistor_C]; + pe = c->pins[SCF_EDA_Transistor_E]; + + pc->a = pc->hfe * pb->a; + pc->ja = pc->hfe * pb->ja; + + pe->a = pc->a + pb->a; + pe->ja = pc->ja + pb->ja; + + scf_loge("i: %d, c%ldp%ld, pc->a: %lg + j%lg\n", i, pc->cid, pc->id, pc->a, pc->ja); + scf_loge("i: %d, c%ldp%ld, pe->a: %lg + j%lg\n", i, pe->cid, pe->id, pe->a, pe->ja); } printf("\n"); diff --git a/ses_steps.c b/ses_steps.c index 8468655..781c48c 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -37,8 +37,8 @@ static ses_step_t* ses_steps[] = &ses_step_jr, &ses_step_va_diode, &ses_step_va_transistor, - &ses_step_va, - &ses_step_va_balance, +// &ses_step_va, +// &ses_step_va_balance, &ses_step_output, }; -- 2.25.1