Nodes for SOI devices not detected correct

This commit is contained in:
dwarning 2008-03-23 11:38:32 +00:00
parent 6b61d1d660
commit 9844e8851b
1 changed files with 11 additions and 1 deletions

View File

@ -2675,9 +2675,19 @@ get_number_terminals( char *c )
case 'u': case 'j': case 'z':
return 3;
break;
case 't': case 'o': case 'g': case 'e': case 's': case 'm':
case 't': case 'o': case 'g': case 'e': case 's':
return 4;
break;
case 'm': /* recognition of 4, 5, 6, or 7 nodes for SOI devices needed */
i = 0;
/* find the first token with "off" or "=" in the line*/
while ( (i < 20) && (*c != '\0') ) {
strncpy(nam_buf, gettok_instance(&c), 32);
if (strstr(nam_buf, "off") || strstr(nam_buf, "=")) break;
i++;
}
return i-2;
break;
case 'q': /* recognition of 3/4 terminal bjt's needed */
i = j = 0;
while ( (i < 10) && (*c != '\0') ) {