Phase II:
In this phase, the methodology of the power tool was proposed. I chose TCL language to code as it is somewhat similar to C++. A basic code from scrap is built at first. The inputs taken for this code are supply voltage (VDD), load capacitance (CL), switching frequency (f) used in circuit and it gives the calculated switching power value. The equation used for calculating switching power
is
P_dynamic = 1/2 CL * Vdd^2 * F
The main challenge for me in this phase is coding in TCL language which is completely unknown to me. I have to learn it and write the code to calculate the required power values.
Phase III:
After Phase II evaluation, feedback from Kunal Ghosh helped to build up this power tool. Later, the basic idea to find average switching power and leakage power from ngspice netlist is given by Prof. Sudhakar Mande from Don Bosco Institute of Technology, Mumbai. The idea is taken from textbook CMOS digital Integrated circuits by Kang.
A separate power meter is built which gives the average power of the circuit. The integral of instantaneous supply voltage VDD and the current drawn from power meter shown in fig2 over a period for a periodic input gives the average switching power of entire circuit which acts as sub circuit in power meter. The mathematical approach is clearly given in the textbook CMOS digital Integrated circuits by
Kang.