diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-12-19 06:52:31 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:23 -0700 |
| commit | 7c67c73a642794e2f95cb9b7f5b8377363adc0f2 (patch) | |
| tree | 7bf867e60550a888480a5ae613019de76ec272f1 /src/gpuwattch/cacti | |
| parent | ecdbb77acbbc8613aefa2f2e5408ff3a6bf84865 (diff) | |
fixig more valgrind errors in CACTI due to uinitialized variables + fixing a bug in the interconect stats (initializing the n_mem_to_simt metric to zero)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14843]
Diffstat (limited to 'src/gpuwattch/cacti')
| -rw-r--r-- | src/gpuwattch/cacti/basic_circuit.cc | 2 | ||||
| -rw-r--r-- | src/gpuwattch/cacti/wire.cc | 14 | ||||
| -rw-r--r-- | src/gpuwattch/cacti/wire.h | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/src/gpuwattch/cacti/basic_circuit.cc b/src/gpuwattch/cacti/basic_circuit.cc index 788b663..9aeb4e7 100644 --- a/src/gpuwattch/cacti/basic_circuit.cc +++ b/src/gpuwattch/cacti/basic_circuit.cc @@ -170,7 +170,7 @@ double drain_C_( bool _is_cell, bool _is_wl_tr) { - double w_folded_tr; + double w_folded_tr=0; const TechnologyParameter::DeviceType * dt; if ((_is_dram) && (_is_cell)) diff --git a/src/gpuwattch/cacti/wire.cc b/src/gpuwattch/cacti/wire.cc index 765d49f..9b0f19c 100644 --- a/src/gpuwattch/cacti/wire.cc +++ b/src/gpuwattch/cacti/wire.cc @@ -39,11 +39,19 @@ Wire::Wire( double w_s, double s_s, enum Wire_placement wp, - double resistivity, + 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; diff --git a/src/gpuwattch/cacti/wire.h b/src/gpuwattch/cacti/wire.h index 36e2ece..fb82c5f 100644 --- a/src/gpuwattch/cacti/wire.h +++ b/src/gpuwattch/cacti/wire.h @@ -45,7 +45,7 @@ class Wire : public Component { public: - Wire(enum Wire_type wire_model, double len /* in u*/, + Wire(enum Wire_type wire_model, double len = 0 /* in u*/, int nsense = 1/* no. of sense amps connected to the low-swing wire */, double width_scaling = 1, double spacing_scaling = 1, |
