fix(ext2spice): use ';' instead of '$' for NGSpice end-of-line comments
'$' is only used by NGSpice, for broader compatibility use ';'.
This commit is contained in:
parent
d9e6c78adb
commit
a809361d69
|
|
@ -757,7 +757,7 @@ spcdevHierVisit(
|
|||
case DEV_FET:
|
||||
if (source == drain)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "$ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "; ");
|
||||
fprintf(esSpiceF, "** SOURCE/DRAIN TIED\n");
|
||||
}
|
||||
break;
|
||||
|
|
@ -765,7 +765,7 @@ spcdevHierVisit(
|
|||
default:
|
||||
if (gate == source)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "$ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "; ");
|
||||
fprintf(esSpiceF, "** SHORTED DEVICE\n");
|
||||
}
|
||||
break;
|
||||
|
|
@ -1658,7 +1658,7 @@ spcnodeHierVisit(
|
|||
static char ntmp[MAX_STR_SIZE];
|
||||
|
||||
EFHNSprintf(ntmp, hierName);
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " $ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " ; ");
|
||||
fprintf(esSpiceF, "** %s == %s\n", ntmp, nsn);
|
||||
}
|
||||
cap = cap / 1000;
|
||||
|
|
@ -1668,14 +1668,14 @@ spcnodeHierVisit(
|
|||
esSIvalue(esSpiceF, 1.0E-15 * cap);
|
||||
if (!isConnected)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " $");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " ;");
|
||||
fprintf(esSpiceF, " **FLOATING");
|
||||
}
|
||||
fprintf(esSpiceF, "\n");
|
||||
}
|
||||
if (node->efnode_attrs && !esNoAttrs)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " $ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " ; ");
|
||||
fprintf(esSpiceF, "**nodeattr %s :",nsn );
|
||||
for (fmt = " %s", ap = node->efnode_attrs; ap; ap = ap->efa_next)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2817,7 +2817,7 @@ spcdevVisit(
|
|||
case DEV_FET:
|
||||
if (source == drain)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "$ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "; ");
|
||||
fprintf(esSpiceF, "** SOURCE/DRAIN TIED\n");
|
||||
}
|
||||
break;
|
||||
|
|
@ -2825,7 +2825,7 @@ spcdevVisit(
|
|||
default:
|
||||
if (gate == source)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "$ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "; ");
|
||||
fprintf(esSpiceF, "** SHORTED DEVICE\n");
|
||||
}
|
||||
break;
|
||||
|
|
@ -4111,7 +4111,7 @@ spcnodeVisit(
|
|||
static char ntmp[MAX_STR_SIZE];
|
||||
|
||||
EFHNSprintf(ntmp, hierName);
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "$ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, "; ");
|
||||
fprintf(esSpiceF, "** %s == %s\n", ntmp, nsn);
|
||||
}
|
||||
cap = cap / 1000;
|
||||
|
|
@ -4121,14 +4121,14 @@ spcnodeVisit(
|
|||
esSIvalue(esSpiceF, 1.0E-15 * cap);
|
||||
if (!isConnected)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " $");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " ;");
|
||||
fprintf(esSpiceF, " **FLOATING");
|
||||
}
|
||||
fprintf(esSpiceF, "\n");
|
||||
}
|
||||
if (node->efnode_attrs && !esNoAttrs)
|
||||
{
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " $ ");
|
||||
if (esFormat == NGSPICE) fprintf(esSpiceF, " ; ");
|
||||
fprintf(esSpiceF, "**nodeattr %s :",nsn );
|
||||
for (fmt = " %s", ap = node->efnode_attrs; ap; ap = ap->efa_next)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue