-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMux.h
More file actions
44 lines (37 loc) · 1.21 KB
/
Mux.h
File metadata and controls
44 lines (37 loc) · 1.21 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
// 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 MUX_H_
#define MUX_H_
#include "FunctionUnit.h"
#include "constant.h"
class Mux: public FunctionUnit {
public:
Mux();
virtual ~Mux();
/* Functions */
void PrintProperty();
void Initialize(int _numInput, long long _numMux, double _capLoad, double _capInputNextStage, double _minDriverCurrent);
void CalculateArea();
void CalculateRC();
void CalculateLatency(double _rampInput);
void CalculatePower();
Mux & operator=(const Mux &);
/* Properties */
bool initialized; /* Initialization flag */
int numInput;
long long numMux; /* Number of muxs in each row */
double capLoad;
double capInputNextStage;
double minDriverCurrent;
double capOutput;
double widthNMOSPassTransistor;
double resNMOSPassTransistor;
double capNMOSPassTransistor;
double capForPreviousDelayCalculation;
double capForPreviousPowerCalculation;
double rampInput, rampOutput;
};
#endif /* MUX_H_ */