projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae08d5
)
__ses_path_va_transistor()
author
yu.dongliang
<18588496441@163.com>
Thu, 19 Oct 2023 13:26:31 +0000
(21:26 +0800)
committer
yu.dongliang
<18588496441@163.com>
Thu, 19 Oct 2023 13:26:31 +0000
(21:26 +0800)
ses_step_va_transistor.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_step_va_transistor.c
b/ses_step_va_transistor.c
index 57b7912fad2f066b3f9d3bfb7a36e6155e42c905..2c4ec9976acb668cb07817cd54e95ab11fd7124f 100644
(file)
--- a/
ses_step_va_transistor.c
+++ b/
ses_step_va_transistor.c
@@
-24,7
+24,9
@@
void __ses_path_dr_transistor(ScfEfunction* f, ses_path_t* path, int i, int j)
static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
{
+ ses_path_t* parent = path->parent;
ses_path_t* child;
+
ScfEcomponent* c;
ScfEcomponent* B;
ScfEline* el;
@@
-46,6
+48,11
@@
static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path)
Bp = B->pins[SCF_EDA_Battery_POS];
Bn = B->pins[SCF_EDA_Battery_NEG];
+ if (path->parent) {
+ Bp = parent->pins->data[0];
+ Bn = parent->pins->data[parent->pins->size - 1];
+ }
+
p0 = path->pins->data[0];
p1 = path->pins->data[path->pins->size - 1];