-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathSenseAmp.h
37 lines (31 loc) · 1.34 KB
/
SenseAmp.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
//Copyright (c) 2015-2016, UT-Battelle, LLC. See LICENSE file in the top-level directory
// 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 SENSEAMP_H_
#define SENSEAMP_H_
#include "FunctionUnit.h"
class SenseAmp: public FunctionUnit {
public:
SenseAmp();
virtual ~SenseAmp();
/* Functions */
void PrintProperty();
void Initialize(long long _numColumn, bool _currentSense, double _senseVoltage /* Unit: V */, double _pitchSenseAmp);
void CalculateArea();
void CalculateRC();
void CalculateLatency(double _rampInput);
void CalculatePower();
SenseAmp & operator=(const SenseAmp &);
/* Properties */
bool initialized; /* Initialization flag */
bool invalid; /* Indicate that the current configuration is not valid */
long long numColumn; /* Number of columns */
bool currentSense; /* Whether the sensing scheme is current-based */
double senseVoltage; /* Minimum sensible voltage */
double capLoad; /* Load capacitance of sense amplifier */
double pitchSenseAmp; /* The maximum width allowed for one sense amplifier layout */
};
#endif /* SENSEAMP_H_ */