Use the pwl LIMIT=TRUE flag when replacing
G1 2 3 TABLE ... or E2 4 5 TABLE ... by code model pwl
This commit is contained in:
parent
dc2a544752
commit
ab778d0f8f
|
|
@ -4825,7 +4825,7 @@ static void inp_compat(struct card *card)
|
||||||
}
|
}
|
||||||
ckt_array[3] = tprintf(
|
ckt_array[3] = tprintf(
|
||||||
".model xfer_%s pwl(x_array=[%s] y_array=[%s] "
|
".model xfer_%s pwl(x_array=[%s] y_array=[%s] "
|
||||||
"input_domain=0.1 fraction=TRUE)",
|
"input_domain=0.1 fraction=TRUE limit=TRUE)",
|
||||||
title_tok, xar, yar);
|
title_tok, xar, yar);
|
||||||
// comment out current variable e line
|
// comment out current variable e line
|
||||||
*(card->line) = '*';
|
*(card->line) = '*';
|
||||||
|
|
@ -5001,7 +5001,8 @@ static void inp_compat(struct card *card)
|
||||||
tfree(firstno);
|
tfree(firstno);
|
||||||
tfree(secondno);
|
tfree(secondno);
|
||||||
}
|
}
|
||||||
ckt_array[3] = tprintf(".model xfer_%s pwl(x_array=[%s] y_array=[%s] input_domain=0.1 fraction=TRUE)", stok, xar, yar);
|
ckt_array[3] = tprintf(".model xfer_%s pwl(x_array=[%s] y_array=[%s] "
|
||||||
|
"input_domain=0.1 fraction=TRUE limit=TRUE)", stok, xar, yar);
|
||||||
// comment out current variable g line
|
// comment out current variable g line
|
||||||
*(card->line) = '*';
|
*(card->line) = '*';
|
||||||
// insert new lines immediately after current line
|
// insert new lines immediately after current line
|
||||||
|
|
@ -8033,7 +8034,7 @@ static struct card *pspice_compat(struct card *oldcard)
|
||||||
tfree(card->line);
|
tfree(card->line);
|
||||||
rep_spar(modpar);
|
rep_spar(modpar);
|
||||||
card->line = tprintf(
|
card->line = tprintf(
|
||||||
".model a%s aswitch(%s %s %s %s log=TRUE limit=TRUE)", modname,
|
".model a%s pswitch(%s %s %s %s log=TRUE)", modname,
|
||||||
modpar[0], modpar[1], modpar[2], modpar[3]);
|
modpar[0], modpar[1], modpar[2], modpar[3]);
|
||||||
}
|
}
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
|
|
@ -8214,7 +8215,7 @@ static struct card *pspice_compat(struct card *oldcard)
|
||||||
tfree(card->line);
|
tfree(card->line);
|
||||||
rep_spar(modpar);
|
rep_spar(modpar);
|
||||||
card->line = tprintf(
|
card->line = tprintf(
|
||||||
".model a%s aswitch(%s %s %s %s log=TRUE limit=TRUE)", modname,
|
".model a%s pswitch(%s %s %s %s log=TRUE)", modname,
|
||||||
modpar[0], modpar[1], modpar[2], modpar[3]);
|
modpar[0], modpar[1], modpar[2], modpar[3]);
|
||||||
}
|
}
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue