I need to know how to add a SPICE model of a diode to an existing symbol, or a new symbol. Here is the model id like to use.
.model D1N5817 D(Is=2.835u Rs=47.12m Ikf=.3227 N=1 Xti=0 Eg=1.11 Cjo=472.4p+ M=.6215 Vj=.75 Fc=.5 Isr=37.75u Nr=2)
Im using spectre to run simulations. I found this post of someone who has done this but its not explained how it was accomplished. Is there an online tutorial that covers this, or can someone explain what file i can add my spice model to, and in what format. Thanks.
You could start with "spectre -h diode" to make sure that all the parameters are supported or mapped to the appropriate Spectre diode parameter names (I think that most are, though I did not see an exact match for ikf, or isr, perhaps "ikf" maps to "ik", "ikp", "ikr" or "kf"? and "isr" to "ir", "is" or "isw"?).
spectre -h diode
Create a file, say diode_D1N5817.scs, and include the appropriate spectre diode model definition, e.g.
model D1N5817 diode is=2.835u rs=47.12m ...
Then have this file as an include file in the Analog Design Environment window aspart of the simulation setup.
Then, place an instance of a diode component, e.g. analogLib diode, and set the model parameter to be the name of the model as named in the file, e.g. D1N5817 - then, when you netlist and simulate, the model file is included and the simulator knows all of the model parameters (plus the instance-specific parameter settings if defined, such as area or region etc.)
I hope that this answers your question.