-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCAM_BasicMMR.h
47 lines (39 loc) · 1.29 KB
/
CAM_BasicMMR.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
/*
* CAM_BasicMMR.h
* The multiple match resolver (MMR) for the priority encoder
* Adopting JSSC02, folding with Lookahead
* This block is just for 8 MMR block, with intra-LA
*/
#ifndef CAM_BASICMMR_H_
#define CAM_BASICMMR_H_
#include "FunctionUnit.h"
#include "OutputDriver.h"
#include "typedef.h"
class CAM_BasicMMR: public FunctionUnit {
public:
CAM_BasicMMR();
virtual ~CAM_BasicMMR();
/* Functions */
void PrintProperty();
void Initialize(int _numInputBits, double _capLoad, double _resLoad, double _capLaLoad, double _resLaLoad);
void CalculateArea();
void CalculateRC();
void CalculateLatency(double _rampInput);
void CalculatePower();
/* Note that this is a single encoder, not yet multiplied by number of inputs */
CAM_BasicMMR & operator=(const CAM_BasicMMR &);
/* Properties */
bool initialized; /* Initialization flag */
int numInputBits; /* Number of input bits */
double capLAintra, capLAout, capD[4];
double capInvIn, capInvOut;
double capIn;
double widthN, widthP;
double capLoad, capLaLoad; /* Load capacitance, Unit: F */
double resLoad, resLaLoad; /* Load resistance, Unit: ohm */
double LookAheadLatency;
OutputDriver LookAheadDriver;
double rampInput, rampOutput;
double rampLAout;
};
#endif /* CAM_MMR_H_ */