Add a compatibility mode 'de' for degradation simulation.
This commit is contained in:
parent
7b8ec52fdd
commit
b7c985128f
|
|
@ -1467,6 +1467,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
|
||||||
tmpcomp.eg = newcompat.eg; /* EAGLE */
|
tmpcomp.eg = newcompat.eg; /* EAGLE */
|
||||||
tmpcomp.mc = newcompat.mc; /* to be set for 'make check' */
|
tmpcomp.mc = newcompat.mc; /* to be set for 'make check' */
|
||||||
tmpcomp.xs = newcompat.xs; /* XSPICE */
|
tmpcomp.xs = newcompat.xs; /* XSPICE */
|
||||||
|
tmpcomp.de = newcompat.de; /* degradation */
|
||||||
/* save the new comptmode */
|
/* save the new comptmode */
|
||||||
newcompat.isset = TRUE; /* at least one mode is set */
|
newcompat.isset = TRUE; /* at least one mode is set */
|
||||||
if (ciprefix(".incpslt", buffer)) {
|
if (ciprefix(".incpslt", buffer)) {
|
||||||
|
|
@ -1487,6 +1488,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
|
||||||
newcompat.eg = FALSE;
|
newcompat.eg = FALSE;
|
||||||
newcompat.mc = FALSE;
|
newcompat.mc = FALSE;
|
||||||
newcompat.xs = FALSE;
|
newcompat.xs = FALSE;
|
||||||
|
newcompat.de = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
inp_stripcomments_line(buffer, FALSE, TRUE);
|
inp_stripcomments_line(buffer, FALSE, TRUE);
|
||||||
|
|
@ -1628,6 +1630,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
|
||||||
newcompat.eg = tmpcomp.eg; /* EAGLE */
|
newcompat.eg = tmpcomp.eg; /* EAGLE */
|
||||||
newcompat.mc = tmpcomp.mc; /* to be set for 'make check' */
|
newcompat.mc = tmpcomp.mc; /* to be set for 'make check' */
|
||||||
newcompat.xs = tmpcomp.xs; /* XSPICE */
|
newcompat.xs = tmpcomp.xs; /* XSPICE */
|
||||||
|
newcompat.de = tmpcomp.de; /* degradation */
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* end of .include handling */
|
} /* end of .include handling */
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,8 @@ void set_compat_mode(void)
|
||||||
newcompat.isset = newcompat.ps = TRUE; /*PSPICE*/
|
newcompat.isset = newcompat.ps = TRUE; /*PSPICE*/
|
||||||
if (strstr(behaviour, "xs"))
|
if (strstr(behaviour, "xs"))
|
||||||
newcompat.isset = newcompat.xs = TRUE; /*XSPICE*/
|
newcompat.isset = newcompat.xs = TRUE; /*XSPICE*/
|
||||||
|
if (strstr(behaviour, "de"))
|
||||||
|
newcompat.isset = newcompat.de = TRUE; /*degradation*/
|
||||||
if (strstr(behaviour, "lt"))
|
if (strstr(behaviour, "lt"))
|
||||||
newcompat.isset = newcompat.lt = TRUE; /*LTSPICE*/
|
newcompat.isset = newcompat.lt = TRUE; /*LTSPICE*/
|
||||||
if (strstr(behaviour, "ki"))
|
if (strstr(behaviour, "ki"))
|
||||||
|
|
@ -106,7 +108,7 @@ void set_compat_mode(void)
|
||||||
/* reset everything for 'make check' */
|
/* reset everything for 'make check' */
|
||||||
if (newcompat.mc)
|
if (newcompat.mc)
|
||||||
newcompat.eg = newcompat.hs = newcompat.spe = newcompat.ps = newcompat.xs =
|
newcompat.eg = newcompat.hs = newcompat.spe = newcompat.ps = newcompat.xs =
|
||||||
newcompat.ll = newcompat.lt = newcompat.ki = newcompat.a = FALSE;
|
newcompat.ll = newcompat.lt = newcompat.ki = newcompat.a = newcompat.de = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print the compatibility flags */
|
/* Print the compatibility flags */
|
||||||
|
|
@ -136,6 +138,8 @@ void print_compat_mode(void) {
|
||||||
fprintf(stdout, " spe");
|
fprintf(stdout, " spe");
|
||||||
if (newcompat.a)
|
if (newcompat.a)
|
||||||
fprintf(stdout, " a");
|
fprintf(stdout, " a");
|
||||||
|
if (newcompat.de)
|
||||||
|
fprintf(stdout, " de");
|
||||||
fprintf(stdout, "\n\n");
|
fprintf(stdout, "\n\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ struct compat
|
||||||
bool eg; /* EAGLE */
|
bool eg; /* EAGLE */
|
||||||
bool mc; /* to be set for 'make check' */
|
bool mc; /* to be set for 'make check' */
|
||||||
bool xs; /* XSPICE */
|
bool xs; /* XSPICE */
|
||||||
|
bool de; /* degradation sim */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct compat newcompat;
|
extern struct compat newcompat;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue