Browse Source

The old inp_deckcopy() is a safer way of copying, while retaining

the correct line numbers for parameter substitution.
pre-master-46
Holger Vogt 5 years ago
parent
commit
014dfe1b7b
  1. 3
      src/frontend/subckt.c

3
src/frontend/subckt.c

@ -614,11 +614,10 @@ doit(struct card *deck, wordlist *modnames) {
*/ */
if (sss) { if (sss) {
// tprint(sss->su_def); // tprint(sss->su_def);
struct card *su_deck = inp_deckcopy_ln(sss->su_def);
struct card *su_deck = inp_deckcopy(sss->su_def);
/* If we have modern PDKs, we have to reduce the amount of memory required. /* If we have modern PDKs, we have to reduce the amount of memory required.
We try to reduce the models to the one really used. We try to reduce the models to the one really used.
Otherwise su_deck is full of unused binning models.*/ Otherwise su_deck is full of unused binning models.*/
// struct card* su_deck = NULL;
if ((newcompat.hs || newcompat.spe) && c->w > 0 && c->l > 0) { if ((newcompat.hs || newcompat.spe) && c->w > 0 && c->l > 0) {
/* extract wmin, wmax, lmin, lmax */ /* extract wmin, wmax, lmin, lmax */
struct card* new_deck = su_deck; struct card* new_deck = su_deck;

Loading…
Cancel
Save