-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathResult.h
48 lines (39 loc) · 1.86 KB
/
Result.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
48
//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 RESULT_H_
#define RESULT_H_
#include "BankWithHtree.h"
#include "BankWithoutHtree.h"
#include "Wire.h"
class Result {
public:
Result();
virtual ~Result();
/* Functions */
void print(int indent = 0);
void printAsCache(Result &tagBank, CacheAccessMode cacheAccessMode);
void reset();
bool nearReference(double reference, double measured);
void printToCsvFile(ofstream &outputFile);
void printAsCacheToCsvFile(Result &tagBank, CacheAccessMode cacheAccessMode, ofstream &outputFile);
bool compareAndUpdate(Result &newResult);
string printOptimizationTarget();
OptimizationTarget optimizationTarget; /* Exploration should not be assigned here */
Bank * bank;
Wire * localWire; /* TO-DO: this one has the same name as one of the global variables */
Wire * globalWire;
double limitReadLatency; /* The maximum allowable read latency, Unit: s */
double limitWriteLatency; /* The maximum allowable write latency, Unit: s */
double limitReadDynamicEnergy; /* The maximum allowable read dynamic energy, Unit: J */
double limitWriteDynamicEnergy; /* The maximum allowable write dynamic energy, Unit: J */
double limitReadEdp; /* The maximum allowable read EDP, Unit: s-J */
double limitWriteEdp; /* The maximum allowable write EDP, Unit: s-J */
double limitArea; /* The maximum allowable area, Unit: m^2 */
double limitLeakage; /* The maximum allowable leakage power, Unit: W */
MemCell *cellTech;
};
#endif /* RESULT_H_ */