Hello, Is there any specific way to use the diode ...
# xschem
l
Hello, Is there any specific way to use the diode from the devices folder. I wanted to just do a small test using it but got a small error saying that "d1n914 diode model cannot be found". I have attached image for reference. Could anyone tell me how to solve this issue? Thank you
s
You can use the "generic" diode from xschem devices/ directory, but you must provide a model for it. the model is something like this in the spice netlist:
.model D1N914 D ( IS=...
+ ....
+ ...
+  )
this one is a good model for a discrete diode:
Copy code
.MODEL D1N914 D  ( IS=6.2229E-9
+ N=1.9224
+ RS=.33636
+ IKF=42.843E-3
+ CJO=764.38E-15
+ M=.1001
+ VJ=9.9900
+ ISR=11.526E-9
+ NR=4.9950
+ BV=100.14
+ IBV=.25951
+ TT=2.8854E-9 )
You can embed the model by using a
device_model
attribute in your diode instance. Click the diode, press 'q' and add the above text; remember to use double quotes:
device_model="
...
...
"
t
@Laxman Chinnannavar: I see that your simulation environment is sky130; If you are using that for your device models, then maybe the proper solution is to choose a sky130 diode device.
l
@Stefan Schippers I will try this approach. Thanks..
@Tim Edwards Oh ok. I will check the available options from the sky130 devices.