-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCAM_Encoder.h
46 lines (34 loc) · 1.04 KB
/
CAM_Encoder.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
#ifndef CAM_ENCODER_H_
#define CAM_ENCODER_H_
#include "FunctionUnit.h"
#include "OutputDriver.h"
#include "CAM_BasicEncoder.h"
class CAM_Encoder: public FunctionUnit {
public:
CAM_Encoder();
virtual ~CAM_Encoder();
/* Functions */
void PrintProperty();
void Initialize(int _numInputBit, BufferDesignTarget _areaOptimizationLevel, double _capLoad, double _resLoad);
void CalculateArea();
void CalculateRC();
void CalculateLatency(double _rampInput);
void CalculatePower();
/* Properties */
bool initialized; /* Initialization flag */
double capLoad; /* Load capacitance, Unit: F */
double resLoad; /* Load resistance, Unit: ohm */
int numInputBit;
double rampInput, rampOutput;
int numStage;
int numBasicEncoder;
int numAdr;
double widthNorN, widthNorP;
double capNorInput, capNorOutput;
double capInvInput, capInvOutput;
double widthN, widthP;
BufferDesignTarget areaOptimizationLevel;
CAM_BasicEncoder BasicEncoder;
OutputDriver outputDriver;
};
#endif /* CAM_ENCODER_H_ */