LCOV - code coverage report
Current view: top level - src/components/verilog - hic0_full.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                 :            :  * hic0_full.core.h - device class definitions for hic0_full 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 __hic0_full_H__
      12                 :            : #define __hic0_full_H__
      13                 :            : 
      14         [ #  # ]:          0 : class hic0_full : public qucs::circuit
      15                 :            : {
      16                 :            :  public:
      17         [ #  # ]:        208 :   CREATOR (hic0_full);
      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[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 iqf;
      72                 :            :   nr_double_t iqr;
      73                 :            :   nr_double_t iqfh;
      74                 :            :   nr_double_t tfh;
      75                 :            :   nr_double_t ibes;
      76                 :            :   nr_double_t mbe;
      77                 :            :   nr_double_t ires;
      78                 :            :   nr_double_t mre;
      79                 :            :   nr_double_t ibcs;
      80                 :            :   nr_double_t mbc;
      81                 :            :   nr_double_t cje0;
      82                 :            :   nr_double_t vde;
      83                 :            :   nr_double_t ze;
      84                 :            :   nr_double_t aje;
      85                 :            :   nr_double_t t0;
      86                 :            :   nr_double_t dt0h;
      87                 :            :   nr_double_t tbvl;
      88                 :            :   nr_double_t tef0;
      89                 :            :   nr_double_t gte;
      90                 :            :   nr_double_t thcs;
      91                 :            :   nr_double_t ahc;
      92                 :            :   nr_double_t tr;
      93                 :            :   nr_double_t rci0;
      94                 :            :   nr_double_t vlim;
      95                 :            :   nr_double_t vpt;
      96                 :            :   nr_double_t vces;
      97                 :            :   nr_double_t cjci0;
      98                 :            :   nr_double_t vdci;
      99                 :            :   nr_double_t zci;
     100                 :            :   nr_double_t vptci;
     101                 :            :   nr_double_t cjcx0;
     102                 :            :   nr_double_t vdcx;
     103                 :            :   nr_double_t zcx;
     104                 :            :   nr_double_t vptcx;
     105                 :            :   nr_double_t fbc;
     106                 :            :   nr_double_t rbi0;
     107                 :            :   nr_double_t vr0e;
     108                 :            :   nr_double_t vr0c;
     109                 :            :   nr_double_t fgeo;
     110                 :            :   nr_double_t rbx;
     111                 :            :   nr_double_t rcx;
     112                 :            :   nr_double_t re;
     113                 :            :   nr_double_t itss;
     114                 :            :   nr_double_t msf;
     115                 :            :   nr_double_t iscs;
     116                 :            :   nr_double_t msc;
     117                 :            :   nr_double_t cjs0;
     118                 :            :   nr_double_t vds;
     119                 :            :   nr_double_t zs;
     120                 :            :   nr_double_t vpts;
     121                 :            :   nr_double_t cbcpar;
     122                 :            :   nr_double_t cbepar;
     123                 :            :   nr_double_t eavl;
     124                 :            :   nr_double_t kavl;
     125                 :            :   nr_double_t kf;
     126                 :            :   nr_double_t af;
     127                 :            :   nr_double_t vgb;
     128                 :            :   nr_double_t vge;
     129                 :            :   nr_double_t vgc;
     130                 :            :   nr_double_t vgs;
     131                 :            :   nr_double_t f1vg;
     132                 :            :   nr_double_t f2vg;
     133                 :            :   nr_double_t alt0;
     134                 :            :   nr_double_t kt0;
     135                 :            :   nr_double_t zetact;
     136                 :            :   nr_double_t zetabet;
     137                 :            :   nr_double_t zetaci;
     138                 :            :   nr_double_t alvs;
     139                 :            :   nr_double_t alces;
     140                 :            :   nr_double_t zetarbi;
     141                 :            :   nr_double_t zetarbx;
     142                 :            :   nr_double_t zetarcx;
     143                 :            :   nr_double_t zetare;
     144                 :            :   nr_double_t alkav;
     145                 :            :   nr_double_t aleav;
     146                 :            :   int flsh;
     147                 :            :   nr_double_t rth;
     148                 :            :   nr_double_t cth;
     149                 :            :   int npn;
     150                 :            :   int pnp;
     151                 :            :   nr_double_t tnom;
     152                 :            :   nr_double_t dt;
     153                 :            : 
     154                 :            :   // global model variables
     155                 :            :   double HICUMtype; // Device type from npn or pnp flags (no)
     156                 :            : 
     157                 :            :   // B-C internal junction charge (C)
     158                 :            :   double qjci;
     159                 :            :   // B-E internal junction charge (C)
     160                 :            :   double qjei;
     161                 :            :   // B-E internal junction capacitance (F)
     162                 :            :   double cjei;
     163                 :            :   // Transfer Current (A)
     164                 :            :   double it;
     165                 :            :   // Base-collector diode current (A)
     166                 :            :   double ijbc;
     167                 :            :   // Avalanche current (A)
     168                 :            :   double iavl;
     169                 :            :   // Substrate-collector diode current (A)
     170                 :            :   double ijsc;
     171                 :            :   // Current through external to internal emitter node (A)
     172                 :            :   double Ieei;
     173                 :            :   // Current through external to internal collector node (A)
     174                 :            :   double Icci;
     175                 :            :   // Current through external to internal base node (A)
     176                 :            :   double Ibbi;
     177                 :            :   // Base-collector diode current minus the avalanche current (A)
     178                 :            :   double Ibici;
     179                 :            :   // Base-emitter diode current (A)
     180                 :            :   double ijbe;
     181                 :            : 
     182                 :            : 
     183                 :            : };
     184                 :            : 
     185                 :            : #endif /* __hic0_full_H__ */

Generated by: LCOV version 1.11