On-chip Thermal Modeling Based on SPICE Simulation