[Gems-users] Power_router_init.C


Date: Fri, 10 Sep 2010 12:40:23 +0930
From: tian <tian@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: [Gems-users] Power_router_init.C

Hi all

 
     I was trying to simulate network power of a 16 tiled processor with shared L2 Cache.  But i got strange results.

     When i track down the reason i found that

      In NetworkPower.C   L145 
     
      Eatomic = arr->data_amp.e_access * info->eff_data_cols * n_read;

      The value of info->eff_data_cols  is very huge and floating

      In Power_router_init.C L131

      //derived
    if(info->data_width != 0){
    info->n_item = info->blk_bits / info->data_width;
  }
  else{
    info->eff_data_cols = info->blk_bits * info->assoc * info->data_nspd;
  }

    return 0;

        Then i found that as long as data_width is not 0,  this eff_data_cols will never been initialized.



    I'm not very familiar with C++, so i havent read all the code. and not very sure this is the reason.

   Anyone know how to fix this? and btw what is this eff_data_cols represent?     
 
    Thank you in advance.


Best Regards

G.Tian
[← Prev in Thread] Current Thread [Next in Thread→]
  • [Gems-users] Power_router_init.C, tian <=