My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hicumL0V1p2g.core.h
Go to the documentation of this file.
1 /*
2  * hicumL0V1p2g.core.h - device class definitions for hicumL0V1p2g module
3  *
4  * This is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  */
10 
11 #ifndef __hicumL0V1p2g_H__
12 #define __hicumL0V1p2g_H__
13 
14 class hicumL0V1p2g : public circuit
15 {
16  public:
18 
19  void initDC (void);
20  void restartDC (void);
21  void calcDC (void);
22  void saveOperatingPoints (void);
23  void loadOperatingPoints (void);
24  void calcOperatingPoints (void);
25  void initAC (void);
26  void calcAC (nr_double_t);
27  void initSP (void);
28  void calcSP (nr_double_t);
29  void calcNoiseAC (nr_double_t);
30  void calcNoiseSP (nr_double_t);
31  void initTR (void);
32  void calcTR (nr_double_t);
33  void initHB (int);
34  void calcHB (int);
35 
36  private:
37  void initVerilog (void);
38  void calcVerilog (void);
39  void initModel (void);
40  void loadVariables (void);
41  void initializeModel (void);
42  void initializeInstance (void);
43  void initialStep (void);
44  void finalStep (void);
45  matrix calcMatrixY (nr_double_t);
46  matrix calcMatrixCy (nr_double_t);
47 
48  private:
49  int doHB;
50  int doAC;
51  int doTR;
52 
53  nr_double_t _freq;
54  nr_double_t _rhs[8];
55  nr_double_t _qhs[8];
56  nr_double_t _ghs[8];
57  nr_double_t _chs[8];
58  nr_double_t _jstat[8][8];
59  nr_double_t _jdyna[8][8];
60  nr_double_t _white_pwr[8][8];
61  nr_double_t _flicker_pwr[8][8];
62  nr_double_t _flicker_exp[8][8];
63  nr_double_t _charges[8][8];
64  nr_double_t _caps[8][8][8][8];
65 
66  // device model parameters
67  nr_double_t is;
68  nr_double_t mcf;
69  nr_double_t mcr;
70  nr_double_t vef;
71  nr_double_t ver;
72  nr_double_t iqf;
73  int fiqf;
74  nr_double_t iqr;
75  nr_double_t iqfh;
76  nr_double_t iqfe;
77  nr_double_t ahq;
78  nr_double_t ibes;
79  nr_double_t mbe;
80  nr_double_t ires;
81  nr_double_t mre;
82  nr_double_t ibcs;
83  nr_double_t mbc;
84  nr_double_t cje0;
85  nr_double_t vde;
86  nr_double_t ze;
87  nr_double_t aje;
88  nr_double_t vdedc;
89  nr_double_t zedc;
90  nr_double_t ajedc;
91  nr_double_t t0;
92  nr_double_t dt0h;
93  nr_double_t tbvl;
94  nr_double_t tef0;
95  nr_double_t gte;
96  nr_double_t thcs;
97  nr_double_t ahc;
98  nr_double_t tr;
99  nr_double_t rci0;
100  nr_double_t vlim;
101  nr_double_t vpt;
102  nr_double_t vces;
103  nr_double_t cjci0;
104  nr_double_t vdci;
105  nr_double_t zci;
106  nr_double_t vptci;
107  nr_double_t cjcx0;
108  nr_double_t vdcx;
109  nr_double_t zcx;
110  nr_double_t vptcx;
111  nr_double_t fbc;
112  nr_double_t rbi0;
113  nr_double_t vr0e;
114  nr_double_t vr0c;
115  nr_double_t fgeo;
116  nr_double_t rbx;
117  nr_double_t rcx;
118  nr_double_t re;
119  nr_double_t itss;
120  nr_double_t msf;
121  nr_double_t iscs;
122  nr_double_t msc;
123  nr_double_t cjs0;
124  nr_double_t vds;
125  nr_double_t zs;
126  nr_double_t vpts;
127  nr_double_t cbcpar;
128  nr_double_t cbepar;
129  nr_double_t eavl;
130  nr_double_t kavl;
131  nr_double_t kf;
132  nr_double_t af;
133  nr_double_t vgb;
134  nr_double_t vge;
135  nr_double_t vgc;
136  nr_double_t vgs;
137  nr_double_t f1vg;
138  nr_double_t f2vg;
139  nr_double_t alt0;
140  nr_double_t kt0;
141  nr_double_t zetact;
142  nr_double_t zetabet;
143  nr_double_t zetaci;
144  nr_double_t alvs;
145  nr_double_t alces;
146  nr_double_t zetarbi;
147  nr_double_t zetarbx;
148  nr_double_t zetarcx;
149  nr_double_t zetare;
150  nr_double_t zetaiqf;
151  nr_double_t alkav;
152  nr_double_t aleav;
153  int flsh;
154  nr_double_t rth;
155  nr_double_t zetarth;
156  nr_double_t cth;
157  int npn;
158  int pnp;
159  nr_double_t tnom;
160  nr_double_t dt;
161  nr_double_t delte;
162  nr_double_t deltc;
163  nr_double_t zetaver;
164  nr_double_t zetavef;
165  nr_double_t ibhrec;
166 
167  // global model variables
168  double HICUMtype; // Device type from npn or pnp flags (no)
169 
170  // B-C internal junction charge (C)
171  double qjci;
172  // B-E internal junction charge (C)
173  double qjei;
174  // B-E internal junction capacitance (F)
175  double cjei;
176  // Transfer Current (A)
177  double it;
178  // Base-collector diode current (A)
179  double ijbc;
180  // Avalanche current (A)
181  double iavl;
182  // Substrate-collector diode current (A)
183  double ijsc;
184  // Current through external to internal emitter node (A)
185  double Ieei;
186  // Current through external to internal collector node (A)
187  double Icci;
188  // Current through external to internal base node (A)
189  double Ibbi;
190  // Base-collector diode current minus the avalanche current (A)
191  double Ibici;
192  // Base-emitter diode current (A)
193  double ijbe;
194 
195 
196 };
197 
198 #endif /* __hicumL0V1p2g_H__ */