Made a change to the way ext2sim determines if a FET type is an n or

p device;  this was previously dependent only on the first character
of the extracted device model name.  Since the tech file has control
over what the device layer names are but not the extracted model
names, the device layer type name is used as a backup way to determine
if the type is n or p, if that cannot be determined from the extracted
model name.
This commit is contained in:
Tim Edwards
2020-10-20 12:22:02 -04:00
parent 503a6bc190
commit 8da47b6e84
3 changed files with 55 additions and 8 deletions
+3 -1
View File
@@ -242,6 +242,7 @@ CmdExtToSpice(w, cmd)
short s_rclass, d_rclass, sub_rclass;
char *devname;
char *subname;
TileType devtype;
int idx, idx2;
globalList *glist = NULL;
@@ -739,7 +740,8 @@ runexttospice:
/* command) */
idx = 0;
while (ExtGetDevInfo(idx++, &devname, &s_rclass, &d_rclass, &sub_rclass, &subname))
while (ExtGetDevInfo(idx++, &devname, &devtype, &s_rclass, &d_rclass,
&sub_rclass, &subname))
{
if (idx == MAXDEVTYPES)
{