LTspice

Last updated
LTspice
Original author(s) Mike Engelhardt [1]
Developer(s) Linear Technology, [1] Analog Devices [2]
Initial releaseOctober 1999;
24 years ago
 (1999-10) [1]
Stable release
24.0.9 [3] / February 2, 2024 (2024-02-02) [3]
Operating system Windows 7, 8, 8.1, 10, macOS 10.15+
Platform IA-32, x86-64
Size Windows (78 MB),MacOS (95 MB)
Available inEnglish
Type Electronic design automation
License Freeware [4] [5]
Website LTspice webpage

LTspice is a SPICE-based analog electronic circuit simulator computer software, produced by semiconductor manufacturer Analog Devices (originally by Linear Technology). [2] It is the most widely distributed and used SPICE software in the industry. [6] Though it is freeware, [4] [5] LTspice is not artificially restricted to limit its capabilities (no feature limits, no node limits, no component limits, no subcircuit limits). [6] [7] It ships with a library of SPICE models from Analog Devices, Linear Technology, Maxim Integrated, and third-party sources.

Contents

Overview

LTspice provides schematic capture to enter an electronic schematic for an electronic circuit, an enhanced SPICE type analog electronic circuit simulator, and a waveform viewer to show the results of the simulation. [2] Circuit simulation analysis based on transient, noise, AC, DC, DC transfer function, DC operating point can be performed and plotted as well as fourier analysis. [8] Heat dissipation of components can be calculated and efficiency reports can also be generated.[ citation needed ] It has enhancements and specialized models to speed the simulation of switched-mode power supplies (SMPS) in DC-to-DC converters. [2] [9]

LTspice does not generate printed circuit board (PCB) layouts, but netlists can be exported to PCB layout software. [10] While LTspice does support simple logic gate simulation, it is not designed specifically for simulating logic circuits.

It is used by many users in fields including radio frequency electronics, power electronics, audio electronics, digital electronics, and other disciplines.

LTspice/SwitcherCAD III

In 1999, LTspice III was released, the first public release. [1] It is designed to run on Windows 95, 98, 98SE, ME, NT4.0, 2K, XP. This version is no longer available for download from Analog Devices. Initially, LTspice III was internally released to Linear Technology's Field Application Engineers (FAE) in October 1999, who then gave it away during customer visits via CD-ROM media. [1] In June 2001, it was released for public downloading from the Linear Technology website. [1] [9] Originally, LTspice/SwitcherCAD ran only on Microsoft Windows platforms, but since 2003 it is able to run under the Wine Windows compatibility layer on Linux. [11]

LTspice IV

In 2008, LTspice IV was released. [1] [7] [12] It is designed to run on Windows 2K, XP, Vista, 7 with a processor that contains a minimum instruction set similar to a Pentium 4 processor. [13] Though IV is still available for download, it is no longer maintained. LTspice was originally called SwitcherCAD, but that name was removed when IV was released. [1] A native Apple macOS 10.7+ application was introduced in 2013. [14]

LTspice XVII

In 2016, LTspice XVII was released, and is currently the latest version. [6] It is designed to run on 32-bit or 64-bit editions of Windows 7, 8, 8.1, 10, and macOS 10.9+. [2]

Summary of major changes from LTspice IV to LTspice XVII are:

Updates

Every month, LTspice updates have been released with new SPICE models, fixed SPICE models, or software changes. At any time, a user can manually update LTspice by choosing "Sync Release" from the "Tools" pulldown menu. From the "Help" pulldown menu, "Show Change Log" displays a list of every SPICE model and software change since LTspice XVII was first released. [3]

In March 2017, Linear Technology merged into Analog Devices. Over time, SPICE models for Analog Devices components have gradually been added to LTspice.

In August 2021, Maxim Integrated merged with Analog Devices. Since then, SPICE models for Maxim components are being gradually added into LTspice.

Updates are no longer provided for Windows XP and MacOS 10.9, as well as older versions of Windows and MacOS.

Device models

LTspice ships with thousands of third-party models (capacitors, diodes, inductors, resistors, transistors, ferrite beads, opto-isolators, 555 timer, and more), as well as macro models for Analog Devices and Linear Technology parts (ADCs, analog switches, comparators, DACs, filters, opamps, timers, voltage references, voltage supervisors, voltage regulators, 0.01% quad resistor networks, and more). [2] [7] In the device library, Analog Devices part numbers start with "AD", and Linear Technology parts start with "LT". [15]

LTspice allows a user to choose from device models that ship with LTspice, as well as allows the user to define their own device model, or use 3rd party models from numerous electronic component manufacturers, or use a model from a 3rd party device library. [16] Starting with LTspice XVII, control panel settings were added to allow the user to specify search directories for 3rd party device symbols and libraries. See option setting at LTspice -> Tools -> Control Panel -> Sym. & Lib. Search Paths. [17]

The text that describes intrinsic SPICE models can be placed directly on an LTspice schematic by using the spice directive .op button. [18] The advantage of this method is the 3rd party model is self-contained as part of the schematic when you distribute the schematic file. The same .model can also be copied to an ASCII text file on your computer too, [19] but it won't "travel" with a schematic when you copy it to another computer. For example, the following diode part numbers aren't included in the current LTspice device library:

.model 1N4004_WIKI D(Is=500p Rs=0.12 N=1.6 Tt=4u Cjo=40p M=0.35 BV=400 Ibv=5.00u Mfg=BobCordellBook Type=Silicon) [20] [21]
.model 1N4007_WIKI D(Is=7.02767n Rs=0.0341512 N=1.80803 Tt=1e-07 Cjo=1e-11 Vj=0.7 M=0.5 Eg=1.05743 Xti=5 Fc=0.5 BV=1000 Ibv=5e-08 Mfg=OnSemiconductor Type=Silicon) [22] [23]
.model 1N5408_WIKI D(Is=63.0n Rs=14.1m N=1.70 Tt=4.32u Cjo=53.0p M=0.333 BV=1000 Ibv=10.0u Mfg=DiodesInc Type=Silicon) [24] [25]

Number conventions

In LTspice, numeric values can be expressed in four different ways: integer (i.e. 1000), real (i.e. 1000.0), scientific e-notation (i.e. 1e3, 1.0e3), scale factor notation (i.e. 1K, 1K0). [26]

If the first character after a number is not the letter "e" for scientific e-notation or a scale factor suffix (left column of table), then trailing characters are ignored. [26] For example, 5 is treated the same as 5V / 5Volt / 5Volts / 5 Hz / 5Hertz.

Scale factors

Integer and real numbers supports a scale factor (multiplier) suffix. [26] These are based mostly on metric conventions.

The suffix (left column) can be upper / lower / mixed case, known as case insensitive. [26] For example, 1MEG / 1meg / 1Meg represents 1000000; 1k / 1K represents 1000.

Any appended text after the suffix (left column) is ignored. [26] For example, 2MegHz / 2MegaOhm represents 2000000; 3mV / 3mOhm represents 0.003; 4uF / 4uHenry represents 0.000004.

In LTspice, any suffix (left column) can replace the decimal point of a real number, a common format for printed schematics. [26] [17] For example, 4K7 represents 4700, 1u8 represents 0.0000018.

SPICE
Suffix [26]
Metric
Name
English
Name
Power
of 10
Numeric
Value
Notes and Common Mistakes
TteraTrillion10121000000000000
GgigaBillion1091000000000
MEGmegaMillion1061000000Wrong use of m / meg / mil are common mistakes in all SPICE programs
kkiloThousand1031000Wrong use of K (instead of k) is accepted in LTSpice
mmilliThousandth10−30.001"1m" & "1M" doesn't mean "1 megaohm, instead "1MEG" is correct [26]
u or µ microMillionth10−60.000001Older SPICE software does not support the µ (Mu) character [17]
nnanoBillionth10−90.000000001
ppicoTrillionth10−120.000000000001
ffemtoQuadrillionth10−150.000000000000001"1f" & "1F" doesn't mean "1 farad, instead "1" is correct [26]
milthou25.4 x 10−60.0000254mil is a thousandth of an inch (0.001") which is 25.4  μm [26]

Compatibility

Although LTspice was originally based upon Berkeley SPICE 3f5 source code, [1] it no longer is, thus some of its features may create non-portable files. Competitor SPICE programs have non-portable features too.

LTspice features that may not be supported by some SPICE programs:

LTspice does not support the following features:

Node name conventions

In LTspice, a node/net (connection point) on the schematic can be labeled by using the Label Net tool button or F4 key. The "Label Net" wizard has three choices for a label, two predefined graphical symbols (GND, COM), or a user-defined node/net name. [27]

The two graphical symbols represent:

Historically, SPICE and older version of LTspice software only supported printable ASCII characters for node/net names, then LTspice XVII added support for Unicode characters. [6]

A user-defined name supports two optional features that can be prepended to the text name:

When a node/net name is placed on a schematic, it will have one of five different visual representations. Two are automatically determined, while three others are chosen by the "Port Type" field in the "Label Net" wizard. [27]

File format

Many of the LTspice files are stored as an ASCII text file, which can be viewed or edited with any ASCII text editor programs. One of the side benefits of an ASCII file format is that a schematic can be listed in a printed document / book / magazine / datasheet / research paper / homework assignment, which allows the reader to recreate LTspice files without electronic file distribution.

LTspice filename extensions: [30]

Example

The following example can be viewed by copying each into two different text files. For each, copy the text in the gray box from this article, paste into an ASCII text editor, saving as a text file. Both files must have the same "base name" and sit in the same directory. To see it, opening the "asc" file with LTspice then click the "Run" button inside LTspice software.

Schematic file

LTspice schematics are stored as an ASCII text file with a filename extension of "asc". [30]

The following example shows the contents from a small LTspice schematic file for a simple RC circuit with four schematic symbols: V1 is 10 volt DC voltage source, R1 is 1K ohm resistor, C1 is 1 uF capacitor, ground. The bottom three TEXT lines are: 1) a transient simulation directive with a stop time parameter of 10 ms (.tran 10mS), 2) a SPICE directive to set the initial condition of RC "out" net to zero volts (.ic v(OUT)=0V), and 3) a text comment (title).

Version 4 SHEET 1 880 680 WIRE 224 96 128 96 WIRE 128 160 128 96 WIRE 224 192 224 176 WIRE 288 192 224 192 WIRE 224 208 224 192 WIRE 128 288 128 240 WIRE 224 288 224 272 WIRE 224 288 128 288 WIRE 224 304 224 288 FLAG 224 304 0 FLAG 288 192 OUT IOPIN 288 192 Out SYMBOL res 208 80 R0 SYMATTR InstName R1 SYMATTR Value 1K SYMBOL cap 208 208 R0 SYMATTR InstName C1 SYMATTR Value 1uF SYMATTR SpiceLine V=50 SYMBOL voltage 128 144 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 WINDOW 0 7 10 Left 2 WINDOW 3 -20 57 Left 2 SYMATTR InstName V1 SYMATTR Value 10V TEXT 120 344 Left 2 !.tran 10mS TEXT 120 376 Left 2 !.ic v(OUT)=0V TEXT 8 72 Left 2 ;RC Circuit - LTspice - Wikipedia 

Plot file

LTspice waveform viewer plot settings are stored as an ASCII text file with a filename extension of "plt". [30] If this optional plot file is present, then all plot planes will automatically be displayed after the "Run" button is pressed, otherwise the user will need to click on each net to see the waveform(s). To create a plot file on Windows, after a plot graph is displayed, right-click on it and choose "File", then choose "Save Plot Settings". [32]

The following example for the above schematic shows settings for a "transient analysis" simulation with two waveforms on one plot plane consisting of the RC voltage at "out" net and current through resistor R1, which are labeled V(out) and I(R1) at the top of the plot graph.

[Transient Analysis] {    Npanes: 1    {       traces: 2 {524290,0,"V(out)"} {34603011,1,"I(R1)"}       X: ('m',0,0,0.001,0.01)       Y[0]: (' ',0,0,1,10)       Y[1]: ('m',0,0,0.001,0.01)       Volts: (' ',0,0,0,0,1,10)       Amps: ('m',0,0,0,0,0.001,0.01)       Log: 0 0 0       GridStyle: 1    } } 

See also

Related Research Articles

<span class="mw-page-title-main">Electrical network</span> Assemblage of connected electrical elements

An electrical network is an interconnection of electrical components or a model of such an interconnection, consisting of electrical elements. An electrical circuit is a network consisting of a closed loop, giving a return path for the current. Thus all circuits are networks, but not all networks are circuits. Linear electrical networks, a special type consisting only of sources, linear lumped elements, and linear distributed elements, have the property that signals are linearly superimposable. They are thus more easily analyzed, using powerful frequency domain methods such as Laplace transforms, to determine DC response, AC response, and transient response.

In electronic design, a netlist is a description of the connectivity of an electronic circuit. In its simplest form, a netlist consists of a list of the electronic components in a circuit and a list of the nodes they are connected to. A network (net) is a collection of two or more interconnected components.

In computer engineering, a hardware description language (HDL) is a specialized computer language used to describe the structure and behavior of electronic circuits, most commonly to design ASICs and program FPGAs.

SPICE is a general-purpose, open-source analog electronic circuit simulator. It is a program used in integrated circuit and board-level design to check the integrity of circuit designs and to predict circuit behavior.

<span class="mw-page-title-main">Standard cell</span>

In semiconductor design, standard-cell methodology is a method of designing application-specific integrated circuits (ASICs) with mostly digital-logic features. Standard-cell methodology is an example of design abstraction, whereby a low-level very-large-scale integration (VLSI) layout is encapsulated into an abstract logic representation.

<span class="mw-page-title-main">OrCAD</span> Electronic design automation software

OrCAD Systems Corporation was a software company that made OrCAD, a proprietary software tool suite used primarily for electronic design automation (EDA). The software is used mainly by electronic design engineers and electronic technicians to create electronic schematics, and perform mixed-signal simulation and electronic prints for manufacturing printed circuit boards (PCBs). OrCAD was taken over by Cadence Design Systems in 1999 and was integrated with Cadence Allegro in 2005.

gEDA

The term gEDA refers to two things:

  1. A set of software applications used for electronic design released under the GPL. As such, gEDA is an ECAD or EDA application suite. gEDA is mostly oriented towards printed circuit board design. The gEDA applications are often referred to collectively as "the gEDA Suite".
  2. The collaboration of free software/open-source developers who work to develop and maintain the gEDA toolkit. The developers communicate via gEDA mailing lists, and have participated in the annual "Google Summer of Code" event as a single project. This collaboration is often referred to as "the gEDA Project".
<span class="mw-page-title-main">Ngspice</span> Analog circuit simulator software

Ngspice is an open-source mixed-level/mixed-signal electronic circuit simulator. It is a successor of the latest stable release of Berkeley SPICE, version 3f.5, which was released in 1993. A small group of maintainers and the user community contribute to the ngspice project by providing new features, enhancements and bug fixes.

<span class="mw-page-title-main">Quite Universal Circuit Simulator</span>

Quite Universal Circuit Simulator (Qucs) is a free-software electronics circuit simulator software application released under GPL. It offers the ability to set up a circuit with a graphical user interface and simulate the large-signal, small-signal and noise behaviour of the circuit. Pure digital simulations are also supported using VHDL and/or Verilog. Only a small set of digital devices like flip flops and logic gates can be used with analog circuits. Qucs uses its own SPICE-incompatible backend simulator Qucsator, however the Qucs-S fork supports some SPICE backends.

SmartSpice is a commercial version of SPICE developed by Silvaco. SmartSpice is used to design complex analog circuits, analyze critical nets, characterize cell libraries, and verify analog mixed-signal designs. SmartSpice is compatible with popular analog design flows and foundry-supplied device models. It supports a reduced design space simulation environment. Among its usages in the electronics industry is dynamic timing analysis.

<span class="mw-page-title-main">CircuitLogix</span> Electronic circuit simulator software

CircuitLogix is a software electronic circuit simulator which uses PSpice to simulate thousands of electronic devices, models, and circuits. CircuitLogix supports analog, digital, and mixed-signal circuits, and its SPICE simulation gives accurate real-world results. The graphic user interface allows students to quickly and easily draw, modify and combine analog and digital circuit diagrams. CircuitLogix was first launched in 2005, and its popularity has grown quickly since that time. In 2012, it reached the milestone of 250,000 licensed users, and became the first electronics simulation product to have a global installed base of a quarter-million customers in over 100 countries.

<span class="mw-page-title-main">Electronic circuit simulation</span>

Electronic circuit simulation uses mathematical models to replicate the behavior of an actual electronic device or circuit. Simulation software allows for modeling of circuit operation and is an invaluable analysis tool. Due to its highly accurate modeling capability, many colleges and universities use this type of software for the teaching of electronics technician and electronics engineering programs. Electronics simulation software engages its users by integrating them into the learning experience. These kinds of interactions actively engage learners to analyze, synthesize, organize, and evaluate content and result in learners constructing their own knowledge.

Spectre is a SPICE-class circuit simulator owned and distributed by the software company Cadence Design Systems. It provides the basic SPICE analyses and component models. It also supports the Verilog-A modeling language. Spectre comes in enhanced versions that also support RF simulation (SpectreRF) and mixed-signal simulation.

This page is a comparison of electronic design automation (EDA) software which is used today to design the near totality of electronic devices. Modern electronic devices are too complex to be designed without the help of a computer. Electronic devices may consist of integrated circuits (ICs), printed circuit boards (PCBs), field-programmable gate arrays (FPGAs) or a combination of them. Integrated circuits may consist of a combination of digital and analog circuits. These circuits can contain a combination of transistors, resistors, capacitors or specialized components such as analog neural networks, antennas or fuses.

In electronic design automation, parasitic extraction is the calculation of the parasitic effects in both the designed devices and the required wiring interconnects of an electronic circuit: parasitic capacitances, parasitic resistances and parasitic inductances, commonly called parasitic devices, parasitic components, or simply parasitics.

EasyEDA is a web-based EDA tool suite that enables hardware engineers to design, simulate, share - publicly and privately - and discuss schematics, simulations and printed circuit boards. Other features include the creation of a bill of materials, Gerber files and pick and place files and documentary outputs in PDF, PNG and SVG formats.

<span class="mw-page-title-main">Proteus Design Suite</span> Electronic design automation software

The Proteus Design Suite is a proprietary software tool suite used primarily for electronic design automation. The software is used mainly by electronic design engineers and technicians to create schematics and electronic prints for manufacturing printed circuit boards.

<span class="mw-page-title-main">NL5 circuit simulator</span> Software product

NL5 is a mixed-signal electronic circuit simulator with ideal and piecewise-linear components.

<span class="mw-page-title-main">SPICE OPUS</span> Analog circuit simulator software

SPICE OPUS is a free general purpose electronic circuit simulator, developed and maintained by members of EDA Group, University of Ljubljana, Slovenia. It is based on original Berkeley’s SPICE analog circuit simulator and inlcudes various improvements and advances, such as memory-leak bug fixes and plotting tool improvements. SPICE OPUS is specially designed for fast optimization loops via its built-in optimizer.

Mike Thomas Engelhardt is an American computer programmer, author, and entrepreneur. He is renowned for developing the SPICE-based analog electronic circuit simulator computer software known as LTspice and QSPICE.

References

  1. 1 2 3 4 5 6 7 8 9 "LTspice Genealogy - The Heritage of Simulation Ubiquity". LTwiki. Archived from the original on December 2, 2018.
  2. 1 2 3 4 5 6 "LTspice". Analog Devices . Archived from the original on December 3, 2018.
  3. 1 2 3 4 "LTspice - Change Log". Analog Devices . Archived from the original on September 4, 2021.
  4. 1 2 Mike Engelhardt: LTspice IV Help → F.A.Q. → License and Distribution. (Help of software version 4.19u of 4 September 2013)
  5. 1 2 Mike Engelhardt: LTspice IV Help → Introduction → License Agreement/Disclaimer. (Help of software version 4.19u of 4 September 2013)
  6. 1 2 3 4 5 6 7 8 9 10 11 12 "LTspice XVII Introduction". LTwiki. Archived from the original on December 2, 2018.
  7. 1 2 3 "Linear released LTspice IV for multicore processors". EE Herald. February 13, 2009. Archived from the original on December 2, 2018.
  8. "Simulation Command". LTwiki. Archived from the original on May 13, 2019.
  9. 1 2 "Linear Technology announces SwitcherCAD III a fully functional Spice Simulator for switcher applications". AboutSpice.com. May 16, 2001. Archived from the original on December 5, 2018.
  10. "PCB Netlist Extraction". LTwiki. Archived from the original on May 13, 2019.
  11. news:sci.electronics.cad: LTspice/SwitcherCAD III now runs on Linux accessdate=September 27, 2013
  12. Pell, Rich (January 13, 2009). "Free SPICE software exploits multicore processors". EE Times . Retrieved January 17, 2011.
  13. news:sci.electronics.cad: Announce: Multi-threaded LTspice accessdate=September 27, 2013
  14. "LTspice IV Is Now Native on Mac OS X". Evaluation Engineering. November 9, 2013.
  15. "General Ordering Information" (PDF). Linear Technology . September 18, 2008. Archived from the original (PDF) on October 3, 2016.
  16. "Third-party Models". LTwiki. Archived from the original on May 13, 2019.
  17. 1 2 3 4 5 "LTspice - Control Panel". LTwiki. Archived from the original on December 5, 2018.
  18. Adding Third-Party Models to LTspice IV on YouTube
  19. Thomas Mosteller (2017). "Importing Third-Party SPICE Models (slides)" (PDF). Analog Devices. Archived (PDF) from the original on March 8, 2020.
  20. "SPICE Models". Cordell Audio. Archived from the original on March 8, 2020.
  21. "Cordell Audio SPICE Model Library". Cordell Audio. April 20, 2011. Archived from the original on March 8, 2020.
  22. "1N4007 Datasheet" (PDF). ON Semiconductor . Archived (PDF) from the original on March 8, 2020.
  23. "Standard.dio library". LTwiki. Archived from the original on March 8, 2020.
  24. "1N5408 Datasheet" (PDF). Diodes Inc . Archived (PDF) from the original on March 8, 2020.
  25. "Spice Model Library". Diodes Inc . Archived from the original on March 8, 2020.
  26. 1 2 3 4 5 6 7 8 9 10 "LTspice - General Conventions". LTwiki. Archived from the original on December 5, 2018.
  27. 1 2 3 4 5 "Label a node name". LTwiki. Archived from the original on December 9, 2018.
  28. "LTspice: Undocumented Shortcuts". Analog Devices . Archived from the original on December 9, 2018.
  29. 1 2 3 4 5 "Port Type drawing". LTwiki. Retrieved December 9, 2018.
  30. 1 2 3 4 5 6 7 8 9 10 What are the different LTspice file types; LTwiki.
  31. 1 2 Subcircuit structure guide; Audio perfection.
  32. Save Plot Configurations; LTwiki.

Further reading

Books with LTspice chapters