Browse Source
src/spicelib/devices/*/*set.c, missing CKTdltNNum() invocations, complex cases
src/spicelib/devices/*/*set.c, missing CKTdltNNum() invocations, complex cases
All locally created nodes (CKTmk..() invocations in XXXsetup()) must be deleted in XXXunsetup() Otherwise CKTmk..() invocations during a following CKTsetup() will re-emit still used node numbers, thus accidentally shorting nodes. This patch fixes the complex cases, which are external node variables (ports of the instance), which might be moved over to other external node variables to cope with optional port connections. This is fixed by copying the node numbers to local shadow variables to avoid messing with the external nodes. Otherwise a following CKTsetup() might again meddle with the external node variables, at least causing considerable confusion, probably causing hard to find bugs.pre-master-46
12 changed files with 130 additions and 2 deletions
-
3src/spicelib/devices/bsim3soi_dd/b3soidddef.h
-
22src/spicelib/devices/bsim3soi_dd/b3soiddset.c
-
3src/spicelib/devices/bsim3soi_fd/b3soifddef.h
-
22src/spicelib/devices/bsim3soi_fd/b3soifdset.c
-
3src/spicelib/devices/bsim3soi_pd/b3soipddef.h
-
22src/spicelib/devices/bsim3soi_pd/b3soipdset.c
-
3src/spicelib/devices/bsimsoi/b4soidef.h
-
21src/spicelib/devices/bsimsoi/b4soiset.c
-
4src/spicelib/devices/hisimhv1/hsmhvdef.h
-
13src/spicelib/devices/hisimhv1/hsmhvset.c
-
4src/spicelib/devices/hisimhv2/hsmhv2def.h
-
12src/spicelib/devices/hisimhv2/hsmhv2set.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue