Diode formed of PMOSFET and schottky diodes