[Gems-users] "DYNAMIC_AF" or "STATIC_AF", question about opal power


Date: Wed, 16 Apr 2008 12:42:34 -0400
From: Guoqiang Yang <nkyangguoqiang@xxxxxxxxx>
Subject: [Gems-users] "DYNAMIC_AF" or "STATIC_AF", question about opal power
Hi there,

I'm back again~

I am now trying to see the power consumed every N cycles. To do so, I call "update_power_status" every N cycles, and dump the variable "current_COMPONENT_NAME_power_cc3". After I got this information I found that the register file power and result bus power is zero!!!

So I checked opal/power/power.C[.h], i found it had something to do with STATIC_AF and DYNAMIC_AF. Since "window_af_b" is increased by function "incrementWinNumPopCount" defined in power.h, but that function is never invoked, so i was using STATIC_AF instead of DYNAMIC_AF, and then I found that those variables "current_COMPONENT_NAME_power_cc3" seemed to be forgotten using "STATIC_AF".

Any idea about this? Also, I found another function "output_periodic_power", it seems to me that "output_periodic_power" really dumps the total cc3 power of each component, but I don't know much about it. Am I doing the right thing to use "update_power_status"?

Many thanks,

Guoqiang Yang
[← Prev in Thread] Current Thread [Next in Thread→]