My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MESFET.core.h
Go to the documentation of this file.
1 /*
2  * MESFET.core.h - device class definitions for MESFET 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 __MESFET_H__
12 #define __MESFET_H__
13 
14 class MESFET : public circuit
15 {
16  public:
17  CREATOR (MESFET);
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[7];
55  nr_double_t _qhs[7];
56  nr_double_t _ghs[7];
57  nr_double_t _chs[7];
58  nr_double_t _jstat[7][7];
59  nr_double_t _jdyna[7][7];
60  nr_double_t _white_pwr[7][7];
61  nr_double_t _flicker_pwr[7][7];
62  nr_double_t _flicker_exp[7][7];
63  nr_double_t _charges[7][7];
64  nr_double_t _caps[7][7][7][7];
65 
66  // device model parameters
67  int LEVEL;
68  nr_double_t Vto;
69  nr_double_t Beta;
70  nr_double_t Alpha;
71  nr_double_t Lambda;
72  nr_double_t B;
73  nr_double_t Qp;
74  nr_double_t Delta;
75  nr_double_t Vmax;
76  nr_double_t Vdelta1;
77  nr_double_t Vdelta2;
78  nr_double_t Gamma;
79  nr_double_t Nsc;
80  nr_double_t Is;
81  nr_double_t N;
82  nr_double_t Vbi;
83  nr_double_t Bv;
84  nr_double_t Xti;
85  nr_double_t Fc;
86  nr_double_t Tau;
87  nr_double_t Rin;
88  nr_double_t Area;
89  nr_double_t Eg;
90  nr_double_t M;
91  nr_double_t Cgd;
92  nr_double_t Cgs;
93  nr_double_t Cds;
94  nr_double_t Betatc;
95  nr_double_t Alphatc;
96  nr_double_t Gammatc;
97  nr_double_t Ng;
98  nr_double_t Nd;
99  int ILEVELS;
100  int ILEVELD;
101  int QLEVELS;
102  int QLEVELD;
103  int QLEVELDS;
104  nr_double_t Vtotc;
105  nr_double_t Rg;
106  nr_double_t Rd;
107  nr_double_t Rs;
108  nr_double_t Rgtc;
109  nr_double_t Rdtc;
110  nr_double_t Rstc;
111  nr_double_t Ibv;
112  nr_double_t Rf;
113  nr_double_t R1;
114  nr_double_t Af;
115  nr_double_t Kf;
116  nr_double_t Gdsnoi;
117  nr_double_t Tnom;
118 
119  // global model variables
120 
121 
122 
123 };
124 
125 #endif /* __MESFET_H__ */