Power Service's Interface with Client
The Power Estimation Capability exports a certain functionality to its Clients and thus, acts as a Service. The functionality exported by the Power Estimation Capability ables the client to access the Power, Area and Time information calculated by the Service. The Service exports the following interface :
class PowerClientInterface { public: // interface to client // power interface virtual float GetDynEnergy () = 0 ; virtual float GetStaticEnergy () = 0 ; virtual float GetTotalEnergy () = 0 ; virtual float GetDynPower () = 0 ; virtual float GetStaticPower () = 0 ; virtual float GetTotalPower () = 0 ; // Display fucntions virtual void DisplayOutputStats () = 0 ; }; // end class PowerClientInterface
As can be seen, using this interface, the Client can access the Energy/Power dissipated for the particular Cache. And the function DisplayOutputStats() permits the client to display summarized information. The same fact is illustrated in the figure below:
