fix 2 compiler warnings in modelgen
[gnucap-felix.git] / modules / e_adp_mos.h
blobd2cc3797685c8451f4cd58838a1f2eefced3163d
1 #ifndef ADPMOS_H
2 #define ADPMOS_H
4 namespace UF{
6 class ADP_BUILT_IN_MOS :public ADP_BUILT_IN_DIODE{
7 public:
8 explicit ADP_BUILT_IN_MOS( COMPONENT* c, const std::string n);
9 virtual ADP_CARD* clone()const{ return new ADP_BUILT_IN_MOS(*this); }
10 protected:
11 ADP_BUILT_IN_MOS(const ADP_BUILT_IN_MOS& a): ADP_BUILT_IN_DIODE(a),
12 vthscale_bti(a.vthscale_bti),
13 vthdelta_bti(a.vthdelta_bti),
14 delta_vth(a.delta_vth)
16 _n = _nodes;
19 void init(const COMPONENT*);
20 public:
21 // ADP_NODE* ids_stress; // obsolete?
22 // ADP_NODE* igd_stress;
23 public:
25 ADP_NODE* bti_stress; // FIXME, BTI_?
26 double tr_probe_num(const std::string& x)const;
27 double tt_probe_num(const std::string& x)const;
29 private:
30 // double btistress_taken; // unused?
31 // double bti_eff_voltage; // unused?
32 double _tr_last_acc; // unused?
34 protected:
35 enum {n_bti};
36 node_t _nodes[1];
37 public:
38 unsigned max_nodes()const{return 1;}
39 unsigned min_nodes()const{return 1;}
41 public:
42 void expand();
43 virtual void tt_accept();
44 virtual void tr_stress_last();
45 virtual void apply(const COMPONENT*);
46 double vthscale_bti ; // exp ( 10000. * a->hci_stress->get() / c->w_in );
47 double vthdelta_bti ;
48 // virtual double wdT()const;
49 double delta_vth ;
51 virtual void tr_accept();
53 /*--------------------------------------------------------------------------*/
55 #endif