mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-28 17:15:13 +02:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user