-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformula.h
More file actions
66 lines (47 loc) · 2.11 KB
/
formula.h
File metadata and controls
66 lines (47 loc) · 2.11 KB
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
62
63
64
65
66
// This file contains code from NVSim, (c) 2012-2013, Pennsylvania State University
//and Hewlett-Packard Company. See LICENSE_NVSim file in the top-level directory.
//No part of DESTINY Project, including this file, may be copied,
//modified, propagated, or distributed except according to the terms
//contained in the LICENSE file.
#ifndef FORMULA_H_
#define FORMULA_H_
#include "Technology.h"
#include "constant.h"
#include <math.h>
#define MAX(a,b) (((a)> (b))?(a):(b))
#define MIN(a,b) (((a)< (b))?(a):(b))
bool isPow2(int n);
/* calculate the gate capacitance */
double CalculateGateCap(double width, Technology tech);
double CalculateGateArea(
int gateType, int numInput,
double widthNMOS, double widthPMOS,
double heightTransistorRegion, Technology tech,
double *height, double *width);
/* calculate the capacitance of a gate */
void CalculateGateCapacitance(
int gateType, int numInput,
double widthNMOS, double widthPMOS,
double heightTransistorRegion, Technology tech,
double *capInput, double *capOutput);
double CalculateDrainCap(
double width, int type,
double heightTransistorRegion, Technology tech);
/* calculate the capacitance of a FBRAM */
double CalculateFBRAMGateCap(double width, double thicknessFactor, Technology tech);
double CalculateFBRAMDrainCap(double width, Technology tech);
double CalculateGateLeakage(
int gateType, int numInput,
double widthNMOS, double widthPMOS,
double temperature, Technology tech);
double CalculateOnResistance(double width, int type, double temperature, Technology tech);
double CalculateTransconductance(double width, int type, Technology tech);
double horowitz(double tr, double beta, double rampInput, double *rampOutput);
double CalculateWireResistance(
double resistivity, double wireWidth, double wireThickness,
double barrierThickness, double dishingThickness, double alphaScatter);
double CalculateWireCapacitance(
double permittivity, double wireWidth, double wireThickness, double wireSpacing,
double ildThickness, double millarValue, double horizontalDielectric,
double verticalDielectic, double fringeCap);
#endif /* FORMULA_H_ */