Browse Source

Typo in parameter name

dwarning 14 years ago
parent
commit
d041b7b503
  1. 3
      ChangeLog
  2. 4
      src/spicelib/devices/dio/dio.c
  3. 6
      src/spicelib/devices/dio/diodefs.h
  4. 4
      src/spicelib/devices/dio/diomask.c
  5. 6
      src/spicelib/devices/dio/diompar.c
  6. 4
      src/spicelib/devices/dio/diosetup.c
  7. 2
      src/spicelib/devices/dio/diotemp.c

3
ChangeLog

@ -1,3 +1,6 @@
2012-02-10 Dietmar Warning
* src/spicelib/devices/dio/*.c,*.h: Typo with junction potential name
2012-02-09 Robert Larice 2012-02-09 Robert Larice
* src/frontend/com_sysinfo.c , * src/frontend/com_sysinfo.c ,
* src/frontend/mw_coms.c , * src/frontend/mw_coms.c ,

4
src/spicelib/devices/dio/dio.c

@ -76,8 +76,8 @@ IFparm DIOmPTable[] = { /* model parameters */
IOPR( "ctc", DIO_MOD_CTA, IF_REAL, "Area junction capacitance temperature coefficient"), IOPR( "ctc", DIO_MOD_CTA, IF_REAL, "Area junction capacitance temperature coefficient"),
IOP( "ctp", DIO_MOD_CTP, IF_REAL, "Perimeter junction capacitance temperature coefficient"), IOP( "ctp", DIO_MOD_CTP, IF_REAL, "Perimeter junction capacitance temperature coefficient"),
IOP( "tbp", DIO_MOD_TBP, IF_REAL, "Area junction potential temperature coefficient"),
IOPR( "tvj", DIO_MOD_TBP, IF_REAL, "Area junction potential temperature coefficient"),
IOP( "tpb", DIO_MOD_TPB, IF_REAL, "Area junction potential temperature coefficient"),
IOPR( "tvj", DIO_MOD_TPB, IF_REAL, "Area junction potential temperature coefficient"),
IOP( "tphp", DIO_MOD_TPHP, IF_REAL, "Perimeter junction potential temperature coefficient"), IOP( "tphp", DIO_MOD_TPHP, IF_REAL, "Perimeter junction potential temperature coefficient"),
IOP( "kf", DIO_MOD_KF, IF_REAL, "flicker noise coefficient"), IOP( "kf", DIO_MOD_KF, IF_REAL, "flicker noise coefficient"),

6
src/spicelib/devices/dio/diodefs.h

@ -186,7 +186,7 @@ typedef struct sDIOmodel { /* model structure for a diode */
unsigned DIOsaturationCurrentExpGiven : 1; unsigned DIOsaturationCurrentExpGiven : 1;
unsigned DIOctaGiven : 1; unsigned DIOctaGiven : 1;
unsigned DIOctpGiven : 1; unsigned DIOctpGiven : 1;
unsigned DIOtbpGiven : 1;
unsigned DIOtpbGiven : 1;
unsigned DIOtphpGiven : 1; unsigned DIOtphpGiven : 1;
unsigned DIOdepletionCapCoeffGiven : 1; unsigned DIOdepletionCapCoeffGiven : 1;
unsigned DIOdepletionSWcapCoeffGiven :1; unsigned DIOdepletionSWcapCoeffGiven :1;
@ -225,7 +225,7 @@ typedef struct sDIOmodel { /* model structure for a diode */
double DIOsaturationCurrentExp; /* Saturation current exponential (XTI) */ double DIOsaturationCurrentExp; /* Saturation current exponential (XTI) */
double DIOcta; /* Area junction temperature coefficient */ double DIOcta; /* Area junction temperature coefficient */
double DIOctp; /* Perimeter junction temperature coefficient */ double DIOctp; /* Perimeter junction temperature coefficient */
double DIOtbp; /* Area junction potential temperature coefficient */
double DIOtpb; /* Area junction potential temperature coefficient */
double DIOtphp; /* Perimeter junction potential temperature coefficient */ double DIOtphp; /* Perimeter junction potential temperature coefficient */
double DIOdepletionCapCoeff; /* Depletion Cap fraction coefficient (FC)*/ double DIOdepletionCapCoeff; /* Depletion Cap fraction coefficient (FC)*/
double DIOdepletionSWcapCoeff; /* Depletion sw-Cap fraction coefficient (FCS)*/ double DIOdepletionSWcapCoeff; /* Depletion sw-Cap fraction coefficient (FCS)*/
@ -297,7 +297,7 @@ typedef struct sDIOmodel { /* model structure for a diode */
#define DIO_MOD_TLEVC 132 #define DIO_MOD_TLEVC 132
#define DIO_MOD_CTA 133 #define DIO_MOD_CTA 133
#define DIO_MOD_CTP 134 #define DIO_MOD_CTP 134
#define DIO_MOD_TBP 135
#define DIO_MOD_TPB 135
#define DIO_MOD_TPHP 136 #define DIO_MOD_TPHP 136
#define DIO_MOD_TCV 137 #define DIO_MOD_TCV 137

4
src/spicelib/devices/dio/diomask.c

@ -104,8 +104,8 @@ DIOmAsk (CKTcircuit *ckt, GENmodel *inModel, int which, IFvalue *value)
case DIO_MOD_CTP: case DIO_MOD_CTP:
value->rValue = model->DIOctp; value->rValue = model->DIOctp;
return(OK); return(OK);
case DIO_MOD_TBP:
value->rValue = model->DIOtbp;
case DIO_MOD_TPB:
value->rValue = model->DIOtpb;
return(OK); return(OK);
case DIO_MOD_TPHP: case DIO_MOD_TPHP:
value->rValue = model->DIOtphp; value->rValue = model->DIOtphp;

6
src/spicelib/devices/dio/diompar.c

@ -125,9 +125,9 @@ DIOmParam(int param, IFvalue *value, GENmodel *inModel)
model->DIOctp = value->rValue; model->DIOctp = value->rValue;
model->DIOctpGiven = TRUE; model->DIOctpGiven = TRUE;
break; break;
case DIO_MOD_TBP:
model->DIOtbp = value->rValue;
model->DIOtbpGiven = TRUE;
case DIO_MOD_TPB:
model->DIOtpb = value->rValue;
model->DIOtpbGiven = TRUE;
break; break;
case DIO_MOD_TPHP: case DIO_MOD_TPHP:
model->DIOtphp = value->rValue; model->DIOtphp = value->rValue;

4
src/spicelib/devices/dio/diosetup.c

@ -102,8 +102,8 @@ DIOsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
if(!model->DIOctpGiven) { if(!model->DIOctpGiven) {
model->DIOctp = 0.0; model->DIOctp = 0.0;
} }
if(!model->DIOtbpGiven) {
model->DIOtbp = 0.0;
if(!model->DIOtpbGiven) {
model->DIOtpb = 0.0;
} }
if(!model->DIOtphpGiven) { if(!model->DIOtphpGiven) {
model->DIOtphp = 0.0; model->DIOtphp = 0.0;

2
src/spicelib/devices/dio/diotemp.c

@ -132,7 +132,7 @@ DIOtemp(GENmodel *inModel, CKTcircuit *ckt)
here->DIOtJctCap *= 1+here->DIOtGradingCoeff* here->DIOtJctCap *= 1+here->DIOtGradingCoeff*
(400e-6*(here->DIOtemp-REFTEMP)-gmanew); (400e-6*(here->DIOtemp-REFTEMP)-gmanew);
} else if (model->DIOtlevc == 1) { } else if (model->DIOtlevc == 1) {
here->DIOtJctPot = model->DIOjunctionPot - model->DIOtbp*(here->DIOtemp-REFTEMP);
here->DIOtJctPot = model->DIOjunctionPot - model->DIOtpb*(here->DIOtemp-REFTEMP);
here->DIOtJctCap = model->DIOjunctionCap * here->DIOtJctCap = model->DIOjunctionCap *
(model->DIOcta*(here->DIOtemp-REFTEMP)); (model->DIOcta*(here->DIOtemp-REFTEMP));
} }

Loading…
Cancel
Save