A method, a computer program, and an apparatus are provided for generating
circuit energy models for a macro using multiple clock gating inputs.
Circuit energy models are used to estimate system power consumption. The
present invention enables circuit energy models to be created for macros
that contain multiple clock gating inputs. Energy tables are created
based upon the macro's input switching factor and the clock activation
percentage. The clock activation percentage is produced by turning on and
off the multiple clock gating inputs during the simulations. These energy
tables are generated from a minimum number of power simulations. By using
clock activation percentage as a parameter accurate power estimations are
produced.