aboutsummaryrefslogtreecommitdiff
path: root/src/gpuwattch/cacti/wire.cc
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-04-03 11:17:41 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:06 -0700
commit49d9395b32cae5d5a15b932f841a0888a98d4d31 (patch)
tree3c1ad446351b23f20262075c9d7fd157df27aa46 /src/gpuwattch/cacti/wire.cc
parent63ced796dc4b66ef2e3f8ab7b768b84c11251126 (diff)
Fix incorrect initialization of wire_length variable in cacti/wire.cc - causing incorrect per-access cache energy
Adding 32bit/64bit check to Cacti's Makefile. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15668]
Diffstat (limited to 'src/gpuwattch/cacti/wire.cc')
-rw-r--r--src/gpuwattch/cacti/wire.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gpuwattch/cacti/wire.cc b/src/gpuwattch/cacti/wire.cc
index 9b0f19c..79429af 100644
--- a/src/gpuwattch/cacti/wire.cc
+++ b/src/gpuwattch/cacti/wire.cc
@@ -41,17 +41,10 @@ Wire::Wire(
enum Wire_placement wp,
double _resistivity,
TechnologyParameter::DeviceType *dt
- )
+ ):wt(wire_model), wire_length(wl*1e-6), nsense(n), w_scale(w_s), s_scale(s_s),
+ resistivity(resistivity), deviceType(dt)
{
- wt= wire_model;
- wire_length=1e-6;
- nsense=n;
- w_scale=w_s;
- s_scale=s_s;
- resistivity=_resistivity;
- deviceType=dt;
-
wire_placement = wp;
min_w_pmos = deviceType->n_to_p_eff_curr_drv_ratio*g_tp.min_w_nmos_;
in_rise_time = 0;