summaryrefslogtreecommitdiff
path: root/src/gpuwattch/array.cc
diff options
context:
space:
mode:
authorNick <[email protected]>2019-09-13 06:12:34 -0400
committerNick <[email protected]>2019-09-13 06:12:34 -0400
commitca563ea85ead434e0d579026b5e66e829af5efe5 (patch)
treed771dfcce1447e7197d0dc7031be248d8874f121 /src/gpuwattch/array.cc
parentb7776785a18d3f4e6229cd625f92c11b55894b75 (diff)
Add additional formatting pass on directories
Diffstat (limited to 'src/gpuwattch/array.cc')
-rw-r--r--src/gpuwattch/array.cc41
1 files changed, 27 insertions, 14 deletions
diff --git a/src/gpuwattch/array.cc b/src/gpuwattch/array.cc
index aca5a8a..a50cac6 100644
--- a/src/gpuwattch/array.cc
+++ b/src/gpuwattch/array.cc
@@ -118,7 +118,7 @@ void ArrayST::optimize_array() {
10; // This is the time_dev to be used for next iteration
// from best area to worst area -->worst timing to best
- //timing
+ // timing
if ((((local_result.cycle_time - throughput) <= 1e-10) &&
(local_result.access_time - latency) <= 1e-10) ||
(local_result.data_array2->area_efficiency <
@@ -145,8 +145,8 @@ void ArrayST::optimize_array() {
if (l_ip.cycle_time_dev > 10) { // if not >10 local_result is the last
// result, it cannot be cleaned up
- temp_res = &local_result; // Only solutions not saved in the list
- // need to be cleaned up
+ temp_res = &local_result; // Only solutions not saved in the list
+ // need to be cleaned up
temp_res->cleanup();
}
}
@@ -171,23 +171,36 @@ void ArrayST::optimize_array() {
// /*According to "Content-Addressable Memory (CAM) Circuits and
// Architectures": A Tutorial and Survey
// by Kostas Pagiamtzis et al.
- // CAM structures can be heavily pipelined and use look-ahead
- //techniques,
- // therefore timing can be relaxed. But McPAT does not model the
- //advanced
- // techniques. If continue optimizing, the area efficiency will be
- //too low
+ // CAM structures can be heavily pipelined and use
+ // look-ahead
+ // techniques,
+ // therefore timing can be relaxed. But McPAT does not
+ //model
+ // the
+ // advanced
+ // techniques. If continue optimizing, the area efficiency
+ //will
+ // be
+ // too low
// */
// //For CAM and FA, stop opt if area efficiency is too low
// if (throughput_overflow==true)
- // cout<< "Warning: " <<" McPAT stopped optimization on throughput for
+ // cout<< "Warning: " <<" McPAT stopped optimization on
+ //throughput
+ // for
//"<< name
- // <<" array structure because its area efficiency is below
+ // <<" array structure because its area efficiency
+ //is
+ // below
//"<<area_efficiency_threshold<<"% " << endl;
// if (latency_overflow==true)
- // cout<< "Warning: " <<" McPAT stopped optimization on latency for "<<
- //name
- // <<" array structure because its area efficiency is below
+ // cout<< "Warning: " <<" McPAT stopped optimization on latency
+ //for
+ //"<<
+ // name
+ // <<" array structure because its area efficiency
+ //is
+ // below
//"<<area_efficiency_threshold<<"% " << endl;
// }