Diode ideal