summaryrefslogtreecommitdiff
path: root/src/gpuwattch/cacti/technology.cc
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-18 12:11:05 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:23 -0700
commitecdbb77acbbc8613aefa2f2e5408ff3a6bf84865 (patch)
treeee781b60aa4ffa868bd4cb2bfeb1f9fa9571ce9d /src/gpuwattch/cacti/technology.cc
parentce1e13752fa620aad6f57326beb1ba5d9c5a8462 (diff)
fixing some valgrind erros by initializing uninitialized values in CACTI
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14839]
Diffstat (limited to 'src/gpuwattch/cacti/technology.cc')
-rw-r--r--src/gpuwattch/cacti/technology.cc46
1 files changed, 34 insertions, 12 deletions
diff --git a/src/gpuwattch/cacti/technology.cc b/src/gpuwattch/cacti/technology.cc
index 7cade1a..70ab6e6 100644
--- a/src/gpuwattch/cacti/technology.cc
+++ b/src/gpuwattch/cacti/technology.cc
@@ -56,13 +56,25 @@ double wire_capacitance(double wire_width, double wire_thickness, double wire_sp
void init_tech_params(double technology, bool is_tag)
{
- int iter, tech, tech_lo, tech_hi;
- double curr_alpha, curr_vpp;
- double wire_width, wire_thickness, wire_spacing,
- fringe_cap, pmos_to_nmos_sizing_r;
+ int iter = 0;
+ int tech = 0;
+ int tech_lo = 0;
+ int tech_hi = 0;
+ double curr_alpha = 0;
+ double curr_vpp = 0;
+ double wire_width = 0;
+ double wire_thickness =0;
+ double wire_spacing = 0;
+ double fringe_cap = 0;
+ double pmos_to_nmos_sizing_r = 0;
// double aspect_ratio,ild_thickness, miller_value = 1.5, horiz_dielectric_constant, vert_dielectric_constant;
- double barrier_thickness, dishing_thickness, alpha_scatter;
- double curr_vdd_dram_cell, curr_v_th_dram_access_transistor, curr_I_on_dram_cell, curr_c_dram_cell;
+ double barrier_thickness = 0;
+ double dishing_thickness = 0;
+ double alpha_scatter = 0;
+ double curr_vdd_dram_cell = 0;
+ double curr_v_th_dram_access_transistor = 0;
+ double curr_I_on_dram_cell = 0;
+ double curr_c_dram_cell = 0;
uint32_t ram_cell_tech_type = (is_tag) ? g_ip->tag_arr_ram_cell_tech_type : g_ip->data_arr_ram_cell_tech_type;
uint32_t peri_global_tech_type = (is_tag) ? g_ip->tag_arr_peri_global_tech_type : g_ip->data_arr_peri_global_tech_type;
@@ -73,12 +85,22 @@ void init_tech_params(double technology, bool is_tag)
g_tp.reset();
double gmp_to_gmn_multiplier_periph_global = 0;
- double curr_Wmemcella_dram, curr_Wmemcellpmos_dram, curr_Wmemcellnmos_dram,
- curr_area_cell_dram, curr_asp_ratio_cell_dram, curr_Wmemcella_sram,
- curr_Wmemcellpmos_sram, curr_Wmemcellnmos_sram, curr_area_cell_sram,
- curr_asp_ratio_cell_sram, curr_I_off_dram_cell_worst_case_length_temp;
- double curr_Wmemcella_cam, curr_Wmemcellpmos_cam, curr_Wmemcellnmos_cam, curr_area_cell_cam,//Sheng: CAM data
- curr_asp_ratio_cell_cam;
+ double curr_Wmemcella_dram = 0;
+ double curr_Wmemcellpmos_dram = 0;
+ double curr_Wmemcellnmos_dram = 0;
+ double curr_area_cell_dram = 0;
+ double curr_asp_ratio_cell_dram = 0;
+ double curr_Wmemcella_sram = 0;
+ double curr_Wmemcellpmos_sram = 0;
+ double curr_Wmemcellnmos_sram = 0;
+ double curr_area_cell_sram = 0;
+ double curr_asp_ratio_cell_sram = 0;
+ double curr_I_off_dram_cell_worst_case_length_temp = 0;
+ double curr_Wmemcella_cam = 0;
+ double curr_Wmemcellpmos_cam = 0;
+ double curr_Wmemcellnmos_cam = 0;
+ double curr_area_cell_cam = 0;//Sheng: CAM data
+ double curr_asp_ratio_cell_cam = 0;
double SENSE_AMP_D, SENSE_AMP_P; // J
double area_cell_dram = 0;
double asp_ratio_cell_dram = 0;