Design of power supply in automotive