Properties Of An Ideal Diode