You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
/**********
|
|
Copyright 1992 Regents of the University of California. All rights
|
|
reserved.
|
|
Author: 1992 Charles Hough
|
|
**********/
|
|
|
|
#include "ngspice/ngspice.h"
|
|
#include "cpldefs.h"
|
|
#include "ngspice/devdefs.h"
|
|
#include "ngspice/ifsim.h"
|
|
#include "ngspice/suffix.h"
|
|
|
|
IFparm CPLpTable[] = {
|
|
IOPU("pos_nodes", CPL_POS_NODE, IF_VECTOR|IF_STRING, "in nodes"),
|
|
IOPU("neg_nodes", CPL_NEG_NODE, IF_VECTOR|IF_STRING, "out nodes"),
|
|
IOP("dimension", CPL_DIM, IF_INTEGER, "number of coupled lines"),
|
|
IOP("length", CPL_LENGTH, IF_REAL, "length of lines"),
|
|
};
|
|
|
|
IFparm CPLmPTable[] = { /* model parameters */
|
|
IOP( "r", CPL_R, IF_REALVEC,"resistance per length"),
|
|
IOP( "l", CPL_L, IF_REALVEC,"inductance per length"),
|
|
IOP( "c", CPL_C, IF_REALVEC,"capacitance per length"),
|
|
IOP( "g", CPL_G, IF_REALVEC,"conductance per length"),
|
|
IOP( "length", CPL_length, IF_REAL,"length"),
|
|
IP( "cpl", CPL_MOD_R, IF_FLAG,"Device is a cpl model"),
|
|
};
|
|
|
|
char *CPLnames[] = {
|
|
"P+",
|
|
"P-"
|
|
};
|
|
|
|
int CPLnSize = NUMELEMS(CPLnames);
|
|
int CPLiSize = sizeof(CPLinstance);
|
|
int CPLmSize = sizeof(CPLmodel);
|
|
int CPLmPTSize = NUMELEMS(CPLmPTable);
|
|
int CPLpTSize = NUMELEMS(CPLpTable);
|