I have tried to add a third party model to my LTspice program (2016 version) but when I run the simulation many errors show up. The model is made for PMOS and NMOS ( saved at the same link) Link of the models:(http://ptm.asu.edu/modelcard/180nm_bulk.txt). I have followed this tutorial (http://www.linear.com/solutions/1083) to add the models. Here is the circuit that is needed to be simulated to find the DC operating point and the AC gain.
Here is my schemetic:
I have used .inc order and I have used the SAME link for each of NMOS and PMOS. I In the model text file:
.model NMOS NMOS
+Level = 49
bla bla
.model PMOS PMOS
the words NMOS and PMOS are repeated twice. I think one of them will be set as value for NMOS/PMOS in LTspice and the next word must be set as prefix in Ltspice as I understood. However, the program does not recognize the elements if I change the prefix part of NMOS/PMOS from "MN"/"PN" (original prefixes) to "NMOS"/"PMOS". And if I don't change the prefix a long list of errors shows up too. Here is my error for DC sweep for example:
(https://textuploader.com/dlynf)
Why are these errors happening? Are there built-in errors in the model file? How can I set W/L for the MOSFET? The errors occur also When I give DC voltage the source "V2". Should I use the models in separated files for each? In such a circuit to determine the input impedance I should apply Vin/Iin when Iout=0 and for output impudence I should apply Vout/Iout when Iin=0 and deactivate all the independent sources. Can I do this in LTsipce?