An accurate circuital model of high voltage LDMOSs for switching applications