

MODEL (explaining those thoroughly is a topic for another tutorial). I am assuming that the reader knows the difference between a. MODEL statement will not sufficiently model the complex behavior of modern parts. SUBCKT statements, because often time a simple. Most Spice models downloaded from the internet will have. lib) extension as explained in the previous section. Adding the Spice Model to your LTspice Libraryįor this tutorial we will be using a Spice model for a made up diode called the 1NADAM, named after your beloved engineer, me! You can either download the file here ( righ click on link > save as), or simply copy the code below, paste it into a text document, and save it with the. If you tried typing the file name without the quotes you would get instead of the desired 1N4148.sub. Where you type the file name in the file name text box, type the exactly desired file name in quotes, and the program will name it exactly that. I’m not going to go into depth on renaming text file extensions, however one method to do it is to first open up the model in notepad (in Windows 7, right click on the file > open with > notepad). If the file contains multiple models, then the file should be named with the. In the case of LTspice, if the model file contains only a single model, it should be named with the.

A Spice model file is nothing more than a text file with a different extension. Once you have found the model you want to use, you need to make sure it is in the correct format with the correct extension.

The best format to use is the Spice3 model, however the PSpice model will usually work in LTspice as well. Different design tools use different versions of Spice, hence, part manufacturers will often have the Spice file for their part available in a couple different formats. Sometimes you will have to switch tabs, or it will simply be link on their part’s web page such in the following screenshot:Īn unfortunate characteristic of the Spice world is that over time it has become fairly fragmented. The second method is to directly search the part manufacturer’s web page for the part. If the part is popular enough and isn’t some incredibly complex part, your search will usually turn up some hits. The easiest method is to simply Google the phrase “ spice model”. This can usually be done in one of two ways. It might seem obvious, but the first thing you need to do is find a suitable Spice model. Conclusion and tl dr (too long didn’t read).Adding the Spice Model to your LTspice Library.Finding and Downloading the Spice Model.While it is very easy once you know how to do it, there are a couple pitfalls that can cause serious headaches if you are unaware. This tutorial is going to cover adding custom Spice models into your LTspice simulations and library.
