mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-07 11:31:01 +02:00
Corrected an error in ext2spice caused by recent changes, that can
generate an extra node in the extract output that comes out as a "(none)" node in the SPICE netlist from ext2spice.
This commit is contained in:
@@ -1686,6 +1686,7 @@ extOutputDevices(def, transList, outFile)
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
if (devptr == NULL) break; /* Bad device */
|
||||
nsd = devptr->exts_deviceSDCount;
|
||||
for (termcount = 0; termcount < nsd; termcount++)
|
||||
{
|
||||
@@ -1726,6 +1727,7 @@ extOutputDevices(def, transList, outFile)
|
||||
devptr = extDevFindMatch(devptr, t);
|
||||
break;
|
||||
}
|
||||
if (termcount == nsd) break; /* All terminals accounted for */
|
||||
}
|
||||
if (termcount == nsd) break; /* All terminals accounted for */
|
||||
if (devptr == deventry) break; /* No other device records available */
|
||||
@@ -1771,6 +1773,11 @@ extOutputDevices(def, transList, outFile)
|
||||
/* It is not an error condition to have more terminals */
|
||||
/* than the minimum. */
|
||||
}
|
||||
if (devptr == NULL) {
|
||||
TxError("Warning: No matching extraction type for device at (%d %d)\n",
|
||||
reg->treg_tile->ti_ll.p_x, reg->treg_tile->ti_ll.p_y);
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Output the transistor record.
|
||||
|
||||
Reference in New Issue
Block a user