Design and Simulation of Diode Characteristics