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

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * hicumL2V2p1.core.h - device class definitions for hicumL2V2p1 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 __hicumL2V2p1_H__
      12                 :            : #define __hicumL2V2p1_H__
      13                 :            : 
      14         [ -  + ]:          2 : class hicumL2V2p1 : public qucs::circuit
      15                 :            : {
      16                 :            :  public:
      17         [ +  - ]:        209 :   CREATOR (hicumL2V2p1);
      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[10];
      55                 :            :   nr_double_t _qhs[10];
      56                 :            :   nr_double_t _ghs[10];
      57                 :            :   nr_double_t _chs[10];
      58                 :            :   nr_double_t _jstat[10][10];
      59                 :            :   nr_double_t _jdyna[10][10];
      60                 :            :   nr_double_t _white_pwr[10][10];
      61                 :            :   nr_double_t _flicker_pwr[10][10];
      62                 :            :   nr_double_t _flicker_exp[10][10];
      63                 :            :   nr_double_t _charges[10][10];
      64                 :            :   nr_double_t _caps[10][10][10][10];
      65                 :            : 
      66                 :            :   // device model parameters
      67                 :            :   nr_double_t c10;
      68                 :            :   nr_double_t qp0;
      69                 :            :   nr_double_t ich;
      70                 :            :   nr_double_t hfe;
      71                 :            :   nr_double_t hfc;
      72                 :            :   nr_double_t hjei;
      73                 :            :   nr_double_t hjci;
      74                 :            :   nr_double_t ibeis;
      75                 :            :   nr_double_t mbei;
      76                 :            :   nr_double_t ireis;
      77                 :            :   nr_double_t mrei;
      78                 :            :   nr_double_t ibeps;
      79                 :            :   nr_double_t mbep;
      80                 :            :   nr_double_t ireps;
      81                 :            :   nr_double_t mrep;
      82                 :            :   nr_double_t mcf;
      83                 :            :   nr_double_t ibcis;
      84                 :            :   nr_double_t mbci;
      85                 :            :   nr_double_t ibcxs;
      86                 :            :   nr_double_t mbcx;
      87                 :            :   nr_double_t ibets;
      88                 :            :   nr_double_t abet;
      89                 :            :   nr_double_t favl;
      90                 :            :   nr_double_t qavl;
      91                 :            :   nr_double_t alfav;
      92                 :            :   nr_double_t alqav;
      93                 :            :   nr_double_t rbi0;
      94                 :            :   nr_double_t rbx;
      95                 :            :   nr_double_t fgeo;
      96                 :            :   nr_double_t fdqr0;
      97                 :            :   nr_double_t fcrbi;
      98                 :            :   nr_double_t fqi;
      99                 :            :   nr_double_t re;
     100                 :            :   nr_double_t rcx;
     101                 :            :   nr_double_t itss;
     102                 :            :   nr_double_t msf;
     103                 :            :   nr_double_t iscs;
     104                 :            :   nr_double_t msc;
     105                 :            :   nr_double_t tsf;
     106                 :            :   nr_double_t rsu;
     107                 :            :   nr_double_t csu;
     108                 :            :   nr_double_t cjei0;
     109                 :            :   nr_double_t vdei;
     110                 :            :   nr_double_t zei;
     111                 :            :   nr_double_t aljei;
     112                 :            :   nr_double_t cjep0;
     113                 :            :   nr_double_t vdep;
     114                 :            :   nr_double_t zep;
     115                 :            :   nr_double_t aljep;
     116                 :            :   nr_double_t cjci0;
     117                 :            :   nr_double_t vdci;
     118                 :            :   nr_double_t zci;
     119                 :            :   nr_double_t vptci;
     120                 :            :   nr_double_t cjcx0;
     121                 :            :   nr_double_t vdcx;
     122                 :            :   nr_double_t zcx;
     123                 :            :   nr_double_t vptcx;
     124                 :            :   nr_double_t fbc;
     125                 :            :   nr_double_t cjs0;
     126                 :            :   nr_double_t vds;
     127                 :            :   nr_double_t zs;
     128                 :            :   nr_double_t vpts;
     129                 :            :   nr_double_t t0;
     130                 :            :   nr_double_t dt0h;
     131                 :            :   nr_double_t tbvl;
     132                 :            :   nr_double_t tef0;
     133                 :            :   nr_double_t gtfe;
     134                 :            :   nr_double_t thcs;
     135                 :            :   nr_double_t alhc;
     136                 :            :   nr_double_t fthc;
     137                 :            :   nr_double_t rci0;
     138                 :            :   nr_double_t vlim;
     139                 :            :   nr_double_t vces;
     140                 :            :   nr_double_t vpt;
     141                 :            :   nr_double_t tr;
     142                 :            :   nr_double_t ceox;
     143                 :            :   nr_double_t ccox;
     144                 :            :   nr_double_t alqf;
     145                 :            :   nr_double_t alit;
     146                 :            :   nr_double_t kf;
     147                 :            :   nr_double_t af;
     148                 :            :   nr_double_t krbi;
     149                 :            :   nr_double_t latb;
     150                 :            :   nr_double_t latl;
     151                 :            :   nr_double_t vgb;
     152                 :            :   nr_double_t alt0;
     153                 :            :   nr_double_t kt0;
     154                 :            :   nr_double_t zetaci;
     155                 :            :   nr_double_t zetacx;
     156                 :            :   nr_double_t alvs;
     157                 :            :   nr_double_t alces;
     158                 :            :   nr_double_t zetarbi;
     159                 :            :   nr_double_t zetarbx;
     160                 :            :   nr_double_t zetarcx;
     161                 :            :   nr_double_t zetare;
     162                 :            :   nr_double_t alb;
     163                 :            :   nr_double_t rth;
     164                 :            :   nr_double_t cth;
     165                 :            :   nr_double_t tnom;
     166                 :            :   nr_double_t dt;
     167                 :            : 
     168                 :            :   // global model variables
     169                 :            : 
     170                 :            : 
     171                 :            : 
     172                 :            : };
     173                 :            : 
     174                 :            : #endif /* __hicumL2V2p1_H__ */

Generated by: LCOV version 1.11