I have saved it as diode.m and I linked it to the analogLib/diode model. But it doesn't work. I can't understand why.:-(
Could anybody tell me what is the worng with it?
Unfourtonately, it doesn't work:-(.
I use Spectre. I copied what you wrote and after it I saved it as diode.scs. I have linked this file to the diode in the schematic.
What fault do I make?
The simulator said me, that : to avoid possible problems from scale factor differences, do not use the native format "model d_name d ..." statements when in the Spice extension input mode. Use the Spice ".model" form instead.