Browse Source

update for 'show all'

pre-master-46
h_vogt 16 years ago
parent
commit
16e01a69e2
  1. 16
      src/frontend/com_hardcopy.c
  2. 9
      src/frontend/device.c
  3. 6
      src/spicelib/devices/bsim3soi/b4soiask.c
  4. 2
      src/spicelib/devices/bsim3soi/b4soiset.c
  5. 3
      src/spicelib/devices/bsim4/b4ask.c
  6. 3
      src/spicelib/devices/bsim4v2/b4v2ask.c
  7. 3
      src/spicelib/devices/bsim4v3/b4v3ask.c
  8. 3
      src/spicelib/devices/bsim4v4/b4v4ask.c
  9. 3
      src/spicelib/devices/bsim4v5/b4v5ask.c

16
src/frontend/com_hardcopy.c

@ -71,10 +71,18 @@ com_hardcopy(wordlist *wl)
if (DevSwitch(devtype)) return; if (DevSwitch(devtype)) return;
tempgraph = CopyGraph(currentgraph); tempgraph = CopyGraph(currentgraph);
/* change .tmp to .ps */ /* change .tmp to .ps */
psfname = strchr(fname, '.');
*(psfname + 1) = 'p';
*(psfname + 2) = 's';
*(psfname + 3) = '\0';
psfname = strchr(fname, '.');
if(psfname)
{
*(psfname + 1) = 'p';
*(psfname + 2) = 's';
*(psfname + 3) = '\0';
}
else
{
fname=realloc(fname,strlen(fname)+4);
strcat(fname,".ps");
}
tempgraph->devdep = fname; tempgraph->devdep = fname;
if (NewViewport(tempgraph)) { if (NewViewport(tempgraph)) {
DevSwitch(NULL); DevSwitch(NULL);

9
src/frontend/device.c

@ -671,13 +671,13 @@ int
printvals_old(dgen *dg, IFparm *p, int i) printvals_old(dgen *dg, IFparm *p, int i)
{ {
IFvalue val; IFvalue val;
int n;
int n, error;
if (dg->flags & DGEN_INSTANCE) if (dg->flags & DGEN_INSTANCE)
(*ft_sim->askInstanceQuest)(ft_curckt->ci_ckt, dg->instance,
error = (*ft_sim->askInstanceQuest)(ft_curckt->ci_ckt, dg->instance,
p->id, &val, &val); p->id, &val, &val);
else else
(*ft_sim->askModelQuest)(ft_curckt->ci_ckt, dg->model,
error = (*ft_sim->askModelQuest)(ft_curckt->ci_ckt, dg->model,
p->id, &val, &val); p->id, &val, &val);
if (p->dataType & IF_VECTOR) if (p->dataType & IF_VECTOR)
@ -696,6 +696,9 @@ printvals_old(dgen *dg, IFparm *p, int i)
return 0; return 0;
} }
if(error) {
fprintf(cp_out," <<NAN, error = %d>>", error);
} else
if (p->dataType & IF_VECTOR) { if (p->dataType & IF_VECTOR) {
/* va: ' ' is no flag for %s */ /* va: ' ' is no flag for %s */
switch ((p->dataType & IF_VARTYPES) & ~IF_VECTOR) { switch ((p->dataType & IF_VARTYPES) & ~IF_VECTOR) {

6
src/spicelib/devices/bsim3soi/b4soiask.c

@ -82,6 +82,9 @@ B4SOIinstance *here = (B4SOIinstance*)inst;
case B4SOI_QB: case B4SOI_QB:
value->rValue = here->B4SOIqbulk; value->rValue = here->B4SOIqbulk;
return(OK); return(OK);
case B4SOI_QG:
value->rValue = here->B4SOIqgate;
return(OK);
case B4SOI_QD: case B4SOI_QD:
value->rValue = here->B4SOIqdrn; value->rValue = here->B4SOIqdrn;
return(OK); return(OK);
@ -346,6 +349,9 @@ B4SOIinstance *here = (B4SOIinstance*)inst;
case B4SOI_QBD: case B4SOI_QBD:
value->rValue = *(ckt->CKTstate0 + here->B4SOIqbd); value->rValue = *(ckt->CKTstate0 + here->B4SOIqbd);
return(OK); return(OK);
case B4SOI_DEBUG:
value->iValue = here->B4SOIdebugMod;
return(OK);
#ifdef B4SOI_DEBUG_OUT #ifdef B4SOI_DEBUG_OUT
case B4SOI_DEBUG1: case B4SOI_DEBUG1:
value->rValue = here->B4SOIdebug1; value->rValue = here->B4SOIdebug1;

2
src/spicelib/devices/bsim3soi/b4soiset.c

@ -112,7 +112,7 @@ double Vbs0t, Qsi;
if (!model->B4SOIshModGiven) if (!model->B4SOIshModGiven)
model->B4SOIshMod = 0; model->B4SOIshMod = 0;
if (!model->B4SOIversionGiven) if (!model->B4SOIversionGiven)
model->B4SOIversion = 4.00;
model->B4SOIversion = 4.3;
if (!model->B4SOItoxGiven) if (!model->B4SOItoxGiven)
model->B4SOItox = 100.0e-10; model->B4SOItox = 100.0e-10;
/*model->B4SOIcox = 3.453133e-11 / model->B4SOItox;*/ /*model->B4SOIcox = 3.453133e-11 / model->B4SOItox;*/

3
src/spicelib/devices/bsim4/b4ask.c

@ -205,6 +205,9 @@ BSIM4instance *here = (BSIM4instance*)inst;
case BSIM4_CSUB: case BSIM4_CSUB:
value->rValue = here->BSIM4csub; value->rValue = here->BSIM4csub;
return(OK); return(OK);
case BSIM4_QINV:
value->rValue = here-> BSIM4qinv;
return(OK);
case BSIM4_IGIDL: case BSIM4_IGIDL:
value->rValue = here->BSIM4Igidl; value->rValue = here->BSIM4Igidl;
return(OK); return(OK);

3
src/spicelib/devices/bsim4v2/b4v2ask.c

@ -172,6 +172,9 @@ BSIM4v2instance *here = (BSIM4v2instance*)inst;
case BSIM4v2_CSUB: case BSIM4v2_CSUB:
value->rValue = here->BSIM4v2csub; value->rValue = here->BSIM4v2csub;
return(OK); return(OK);
case BSIM4v2_QINV:
value->rValue = here-> BSIM4v2qinv;
return(OK);
case BSIM4v2_IGIDL: case BSIM4v2_IGIDL:
value->rValue = here->BSIM4v2Igidl; value->rValue = here->BSIM4v2Igidl;
return(OK); return(OK);

3
src/spicelib/devices/bsim4v3/b4v3ask.c

@ -181,6 +181,9 @@ BSIM4v3instance *here = (BSIM4v3instance*)inst;
case BSIM4v3_CSUB: case BSIM4v3_CSUB:
value->rValue = here->BSIM4v3csub; value->rValue = here->BSIM4v3csub;
return(OK); return(OK);
case BSIM4v3_QINV:
value->rValue = here-> BSIM4v3qinv;
return(OK);
case BSIM4v3_IGIDL: case BSIM4v3_IGIDL:
value->rValue = here->BSIM4v3Igidl; value->rValue = here->BSIM4v3Igidl;
return(OK); return(OK);

3
src/spicelib/devices/bsim4v4/b4v4ask.c

@ -180,6 +180,9 @@ BSIM4v4instance *here = (BSIM4v4instance*)inst;
case BSIM4v4_CSUB: case BSIM4v4_CSUB:
value->rValue = here->BSIM4v4csub; value->rValue = here->BSIM4v4csub;
return(OK); return(OK);
case BSIM4v4_QINV:
value->rValue = here-> BSIM4v4qinv;
return(OK);
case BSIM4v4_IGIDL: case BSIM4v4_IGIDL:
value->rValue = here->BSIM4v4Igidl; value->rValue = here->BSIM4v4Igidl;
return(OK); return(OK);

3
src/spicelib/devices/bsim4v5/b4v5ask.c

@ -203,6 +203,9 @@ BSIM4v5instance *here = (BSIM4v5instance*)inst;
case BSIM4v5_CSUB: case BSIM4v5_CSUB:
value->rValue = here->BSIM4v5csub; value->rValue = here->BSIM4v5csub;
return(OK); return(OK);
case BSIM4v5_QINV:
value->rValue = here-> BSIM4v5qinv;
return(OK);
case BSIM4v5_IGIDL: case BSIM4v5_IGIDL:
value->rValue = here->BSIM4v5Igidl; value->rValue = here->BSIM4v5Igidl;
return(OK); return(OK);

Loading…
Cancel
Save