-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.h
61 lines (54 loc) · 1.11 KB
/
const.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef __CONST__H__
#define __CONST__H__
#include<vector>
#include<iostream>
#include<string>
#include<math.h>
#include <random>
using namespace std;
#define NumParam 1
#define NumTrans 3
#define NewTonIer 100
#define VerrTol 1E-6
#define IerrTol 1E-7
#define PMOS_ 0
#define NMOS_ 1
#define NumNodes 2
#define PI 3.1415926
#define PROBSUB 0.1
#define NITERMAX 30
#define VDD 1
#define MYEPSILON 0.0001
#define NL_ 0
#define AXL_ 1
#define PL_ 2
#define NR_ 3
#define AXR_ 4
#define PR_ 5
#define MYMIN -1E-10
#define MYMAX 1E10
#define READFAIL_ 1
#define WRITEFAIL_ 2
#define SAFAIL_ 3
//#define MYRATE 0.39
#define MYRATE 0.522
#define REALCOR 0.025
#define FAKECOR 0.025
// 0.65 0.05 0.05
//0.6 0.04 0.08
//0.5 0.03 0.02
// 0.52 0.025 0.025
// 0.525 0.025 0.025
// 0.522(0.521) 0.025 0.025
#define GD 1
#define GS 2
#define TWL 16E-8
#define REALCOR2 0.11
#define FAKECOR2 0.11
// 25E-8 0.20 0.20
// 27E-8 0.19 0.19
// 16E-8 0.11 0.11
extern std::mt19937 e;
extern normal_distribution<double> n;
extern std::uniform_real_distribution<double>randengine;
#endif