LCOV - code coverage report
Current view: top level - src/components/verilog - HBT_X.core.h (source / functions) Hit Total Coverage
Test: qucs-core-0.0.19 Code Coverage Lines: 1 2 50.0 %
Date: 2015-01-05 16:01:02 Functions: 1 4 25.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * HBT_X.core.h - device class definitions for HBT_X 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 __HBT_X_H__
      12                 :            : #define __HBT_X_H__
      13                 :            : 
      14         [ #  # ]:          0 : class HBT_X : public qucs::circuit
      15                 :            : {
      16                 :            :  public:
      17         [ #  # ]:        208 :   CREATOR (HBT_X);
      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                 :            :   qucs::matrix calcMatrixY (nr_double_t);
      46                 :            :   qucs::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[19];
      55                 :            :   nr_double_t _qhs[19];
      56                 :            :   nr_double_t _ghs[19];
      57                 :            :   nr_double_t _chs[19];
      58                 :            :   nr_double_t _jstat[19][19];
      59                 :            :   nr_double_t _jdyna[19][19];
      60                 :            :   nr_double_t _white_pwr[19][19];
      61                 :            :   nr_double_t _flicker_pwr[19][19];
      62                 :            :   nr_double_t _flicker_exp[19][19];
      63                 :            :   nr_double_t _charges[19][19];
      64                 :            :   nr_double_t _caps[19][19][19][19];
      65                 :            : 
      66                 :            :   // device model parameters
      67                 :            :   int Mode;
      68                 :            :   int Noise;
      69                 :            :   int Debug;
      70                 :            :   int DebugPlus;
      71                 :            :   nr_double_t Temp;
      72                 :            :   nr_double_t Rth;
      73                 :            :   nr_double_t Cth;
      74                 :            :   int N;
      75                 :            :   nr_double_t L;
      76                 :            :   nr_double_t W;
      77                 :            :   nr_double_t Jsf;
      78                 :            :   nr_double_t nf;
      79                 :            :   nr_double_t Vg;
      80                 :            :   nr_double_t Jse;
      81                 :            :   nr_double_t ne;
      82                 :            :   nr_double_t Rbxx;
      83                 :            :   nr_double_t Vgb;
      84                 :            :   nr_double_t Jsee;
      85                 :            :   nr_double_t nee;
      86                 :            :   nr_double_t Rbbxx;
      87                 :            :   nr_double_t Vgbb;
      88                 :            :   nr_double_t Jsr;
      89                 :            :   nr_double_t nr;
      90                 :            :   nr_double_t Vgr;
      91                 :            :   nr_double_t XCjc;
      92                 :            :   nr_double_t Jsc;
      93                 :            :   nr_double_t nc;
      94                 :            :   nr_double_t Rcxx;
      95                 :            :   nr_double_t Vgc;
      96                 :            :   nr_double_t Bf;
      97                 :            :   nr_double_t kBeta;
      98                 :            :   nr_double_t Br;
      99                 :            :   nr_double_t VAF;
     100                 :            :   nr_double_t VAR;
     101                 :            :   nr_double_t IKF;
     102                 :            :   nr_double_t IKR;
     103                 :            :   nr_double_t Mc;
     104                 :            :   nr_double_t BVceo;
     105                 :            :   nr_double_t kc;
     106                 :            :   nr_double_t BVebo;
     107                 :            :   nr_double_t Tr;
     108                 :            :   nr_double_t Trx;
     109                 :            :   nr_double_t Tf;
     110                 :            :   nr_double_t Tft;
     111                 :            :   nr_double_t Thcs;
     112                 :            :   nr_double_t Ahc;
     113                 :            :   nr_double_t Cje;
     114                 :            :   nr_double_t mje;
     115                 :            :   nr_double_t Vje;
     116                 :            :   nr_double_t Cjc;
     117                 :            :   nr_double_t mjc;
     118                 :            :   nr_double_t Vjc;
     119                 :            :   nr_double_t kjc;
     120                 :            :   nr_double_t Cmin;
     121                 :            :   nr_double_t J0;
     122                 :            :   nr_double_t XJ0;
     123                 :            :   nr_double_t Rci0;
     124                 :            :   nr_double_t Jk;
     125                 :            :   nr_double_t RJk;
     126                 :            :   nr_double_t Vces;
     127                 :            :   nr_double_t Rc;
     128                 :            :   nr_double_t Re;
     129                 :            :   nr_double_t Rb;
     130                 :            :   nr_double_t Rb2;
     131                 :            :   nr_double_t Lc;
     132                 :            :   nr_double_t Le;
     133                 :            :   nr_double_t Lb;
     134                 :            :   nr_double_t Cq;
     135                 :            :   nr_double_t Cpb;
     136                 :            :   nr_double_t Cpc;
     137                 :            :   nr_double_t Kfb;
     138                 :            :   nr_double_t Afb;
     139                 :            :   nr_double_t Ffeb;
     140                 :            :   nr_double_t Kb;
     141                 :            :   nr_double_t Ab;
     142                 :            :   nr_double_t Fb;
     143                 :            :   nr_double_t Kfe;
     144                 :            :   nr_double_t Afe;
     145                 :            :   nr_double_t Ffee;
     146                 :            :   nr_double_t Tnom;
     147                 :            : 
     148                 :            :   // global model variables
     149                 :            : 
     150                 :            : 
     151                 :            : 
     152                 :            : };
     153                 :            : 
     154                 :            : #endif /* __HBT_X_H__ */

Generated by: LCOV version 1.11