Ltspice For Mac
Original author(s) | Mike Engelhardt[1] |
---|---|
Developer(s) | Linear Technology,Analog Devices[2] |
Initial release | October 1999[1] |
Stable release | |
Operating system | Windows 7, 8, 8.1, 10,macOS 10.7+ |
Platform | IA-32, x86-64 |
Size | Windows (41 MB),MacOS (101 MB) |
Available in | English |
Type | Electronic design automation |
License | Freeware[4][5] |
Website | LTspice webpage |
LTspice is freeware[4][5] computer software implementing a SPICEelectronic circuit simulator, produced by semiconductor manufacturer Linear Technology, now part of Analog Devices.[2] It is used in-house at Linear Technology for IC design, and the most widely distributed and used SPICE program in the industry.[3] LTspice isn't artificially crippled to limit its capabilities (no node limits, no component limits, no subcircuit limits).[3][6]
Hi, On mac versions, eagle doesn't have a ulp that simply converts the schematic to ascii that LTspice uses. It would be nice if there's a ulp for macs, but I'm unable to find one. I have the LTspice mac version, which works well. I have eaglecad for macs, which works. I'm just having troubles converting the files, or importing/exporting if possible. Mac os x version of LTspice: LTspiceIV.dmg Mac os x short cuts can be found in LTspiceShortcutsForMacOSX.pdf 2. Download and open the following simple circuit file: rchighpass.asc Click on the little running fellow to run the simulation.
- 1Overview
- 1.3LTspice XVII
- 2Number conventions
- 4File format
- 4.1Example
Overview[edit]
LTspice provides schematic capture to enter an electronic schematic for an electronic circuit, an enhanced SPICE type analog electronic circuitsimulator, 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.[7] 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][8]
A user can create their own device models, import downloaded models from many electronic component manufacturers, or use a model from the device library.[9] 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][6] In the device library, Analog Devices part numbers start with 'AD', and Linear Technology parts start with 'LT'.[10]
LTspice does not generate printed circuit board (PCB) layouts, but netlists can be exported to layout programs.[11] 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[edit]
In 1999, LTspice III was released, the first public release.[1] It's 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 CDROM media.[1] In June 2001, it was released for public downloading from the Linear Technology website.[1][8] 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.[12]
LTspice IV[edit]
In 2008, LTspice IV was released.[1][6][13] It's designed to run on Windows 2K, XP, Vista, 7 with a processor that contains a minimum instruction set similar to a Pentium 4 processor.[14] 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.[15]
LTspice XVII[edit]
In 2016, LTspice XVII was released, and is currently the latest version.[3] It's designed to run on 32-bit or 64-bit editions of Windows 7, 8, 8.1, 10, and macOS 10.7+.[2]
Summary of major changes from LTspice IV to LTspice XVII are:
- Add 64-bit executables.[3]
- Add Unicode characters in schematics, netlists, plot.[3]
- Add device equations for IGBT, diode soft recovery, arbitrary state machine.[3]
- Add user symbol and library directory search paths. See option setting at LTspice -> Tools -> Control Panel ->
Sym. & Lib. Search Paths
.[16] - Add schematic thumbnail and preview support on Microsoft Windows.[3]
- Add editors for most SPICE commands.[3]
- Add multi-monitor support.[3]
Updates[edit]
After Analog Devices purchased Linear Technology in 2016, models for Analog Devices parts were added to the LTspice device library over time.
Every month, minor updates are released by Analog Devices for software fixes, updates for existing device models, and new device models. A user can manually update their installed copy by doing a 'Sync Release' from the pulldown menu. LTspice has a 'Show Change Log' screen that lists every change to the software and models since LTspice XVII was released. LTspice doesn't show any subversion numbers as many software programs do, though the software 'build date' could be treated as such. For example, on 64-bit Windows, the 'about' screen shows 'LTspice XVII(x64)' then a build date and time.
Number conventions[edit]
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).[17]
If the first character after a number isn't the letter 'e
' for scientific e-notation or a scale factor suffix (left column of table), then trailing characters are ignored.[17] For example, 5 is treated the same as 5V / 5Volt / 5Volts / 5 Hz / 5Hertz.
Scale factors[edit]
Integer and real numbers supports a scale factor (multiplier) suffix.[17] These are based mostly on metric conventions.
The suffix (left column) can be upper / lower / mixed case, known as case insensitive.[17] For example, 1MEG / 1meg / 1Meg represents 1000000; 1k / 1K represents 1000.
Any appended text after the suffix (left column) is ignored.[17] 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.[17][16] For example, 4K7 represents 4700, 1u8 represents 0.0000018.
SPICE Suffix[17] | Metric Name | English Name | Power of 10 | Numeric Value | Notes and Common Mistakes |
---|---|---|---|---|---|
T | tera | Trillion | 1012 | 1000000000000 | |
G | giga | Billion | 109 | 1000000000 | |
MEG | mega | Million | 106 | 1000000 | Wrong use of m / meg / mil are common mistakes in all SPICE programs |
K | kilo | Thousand | 103 | 1000 | |
m | milli | Thousandth | 10−3 | 0.001 | '1m' & '1M' doesn't mean '1 megaohm, instead '1MEG' is correct[17] |
u or µ | micro | Millionth | 10−6 | 0.000001 | Older SPICE software doesn't support the µ (Mu) character[16] |
n | nano | Billionth | 10−9 | 0.000000001 | |
p | pico | Trillionth | 10−12 | 0.000000000001 | |
f | femto | Quadrillionth | 10−15 | 0.000000000000001 | '1f' & '1F' doesn't mean '1 farad, instead '1' is correct[17] |
mil | thou | 25.4 x 10−6 | 0.0000254 | mil is a thousandth of an inch (0.001') which is 25.4 μm[17] |
Compatibility[edit]
Although LTspice was originally based upon Berkeley SPICE 3f5 source code,[1] it no longer does, 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:
- Unicode characters in schematics, netlists, plot.[3] This is a new feature in LTspice XVII, thus older versions of LTspice don't support Unicode.[3]
- µ (Mu) character as an alternate symbol for micro (10−6) scale factor, which is Unicode decimal 181 (hex 0xB5). See option setting at LTspice -> Tools -> Control Panel -> Netlist Options ->
Convert 'µ' to 'u'
.[16] - Suffix replacing decimal point. See option setting at LTspice -> Tools -> Control Panel -> SPICE ->
Accept 3K4 as 3.4K
.[16]
LTspice doesn't support the following features:
- LTspice doesn't support scale factors of 'atto' 10−18, 'peta' 1015, or 'exa' 1018.
- HSPICE supports
'a'
for 'atto' 10−18, which must be replaced with'e-18'
to be compatible with LTspice and other SPICE software. - HSPICE supports
'X'
as a synonym for 'meg' 106, which must be replaced with'e6'
or'MEG'
to be compatible with LTspice and other SPICE software.
Node name conventions[edit]
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.[18]
Recipe: Classic Baked Macaroni and Cheese Give up the box mix, making Classic Baked Macaroni and Cheese from scratch is easier than you think. Even if you have never tried to make your own mac ‘n’ cheese. In a large saucepan, melt butter over medium-high heat. Once the butter has melted, whisk in flour and cook until it begins to smell nutty and fragrant, about 45-60 seconds. Whisk in milk and stock, and continue whisking vigorously until flour and butter have dissolved. Bring to sauce. How to make cheese for macaroni and cheese. Oct 01, 2019 HOW LONG DO YOU BAKE MAC AND CHEESE. Pour half of the pasta mixture into the prepared baking dish. Top with 1 1/2 cups of grated cheeses, then top that with the remaining pasta mixture. Sprinkle the top with the last 1 1/2 cups of cheese and bake for 15 minutes, until cheesy is bubbly and lightly golden brown. Oct 22, 2018 Cook your pasta to slightly less than al dente, about one minute shy is perfect. The reason is that this is baked mac and cheese so the pasta will continue to cook in the homemade cheese sauce in the oven. You don’t want soggy macaroni. I used elbow pasta but really, any tubular past will work. This mac and cheese recipe.
The two graphical symbols represent:
GND
- The ground symbol assigns a node with a special global net name of '0'.[18]COM
- The COM symbol assigns a node with a net name of 'COM', which doesn't have any special significance.[18]
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.[3]
A user-defined name supports two optional features that can be prepended to the text name:
_
- An underscore causes an overbar to be placed above the entire name, which commonly means an active low signal. For example, '_RESET' is shown on the schematic as 'RESET'.[19]$G_
- This means a node is global, no matter where the name occurs in the circuit hierarchy. For example, '$G_ENABLE' / '$G_ERROR'. It should be noted the ground symbol is treated in a similar way, but it doesn't have '$G_' prepended to it.[18]
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.[18]
None
- Bare text. This is the default.[20]Global
- 'Rectangle' around the text. This is automatically shown for a global net name that starts with '$G_'.[20]Input
- 'Rectangle with triangle end' around the text. This is chosen by the 'Port Type' field in the 'Label Net' wizard.[20]Output
- 'Rectangle with triangle on other end' around the text. This is chosen by the 'Port Type' field in the 'Label Net' wizard.[20]Bidirectional
- 'Rectangle with triangle on two ends' around the text. This is chosen by the 'Port Type' field in the 'Label Net' wizard.[20]
File format[edit]
Many of the LTspice files are stored as an ASCIItext 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:[21]
asc
- schematic. It consists of a netlist based on SPICE text-based commands.[21]asy
- electronic symbol shown in a schematic.[21]cir
- external netlist input.[21]fft
- FFT binary output.[21]lib
- model library subcircuits.[22]plt
- waveform viewer plot settings.[21]raw
- binary output, optional ASCII output.[21]sub
- subcircuit.[22]lib
/sub
/mod
/model
- device model. While any file extension is allowed, users tend to gravitate towards common ones.[21]
Example[edit]
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.
- LTspice_RC.asc
- LTspice_RC.plt
Schematic file[edit]
LTspice schematics are stored as an ASCII text file with a filename extension of 'asc
'.[21]
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 ohmresistor, C1 is 1 uFcapacitor, 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).
Plot file[edit]
Linear Tech Spice
LTspice waveform viewer plot settings are stored as an ASCII text file with a filename extension of 'plt
'.[21] 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'.[23]
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.
See also[edit]
References[edit]
- ^ abcdefgh'LTspice Genealogy - The Heritage of Simulation Ubiquity'. LTwiki. Archived from the original on December 2, 2018.
- ^ abcdef'LTspice'. Analog Devices. Archived from the original on December 3, 2018.
- ^ abcdefghijklm'LTspice XVII Introduction'. LTwiki. Archived from the original on December 2, 2018.
- ^ abMike Engelhardt: LTspice IV Help → F.A.Q. → License and Distribution. (Help of software version 4.19u of 4 September 2013)
- ^ abMike Engelhardt: LTspice IV Help → Introduction → License Agreement/Disclaimer. (Help of software version 4.19u of 4 September 2013)
- ^ abc'Linear released LTspice IV for multicore processors'. EE Herald. February 13, 2009. Archived from the original on December 2, 2018.
- ^'Simulation Command'. LTwiki. Archived from the original on May 13, 2019.
- ^ ab'Linear Technology announces SwitcherCAD III a fully functional Spice Simulator for switcher applications'. AboutSpice.com. May 16, 2001. Archived from the original on December 4, 2018.
- ^'Third-party Models'. LTwiki. Archived from the original on May 13, 2019.
- ^'General Ordering Information'(PDF). Linear Technology. September 18, 2008. Archived from the original(PDF) on October 3, 2016.
- ^'PCB Netlist Extraction'. LTwiki. Archived from the original on May 13, 2019.
- ^news:sci.electronics.cad: LTspice/SwitcherCAD III now runs on Linux accessdate=September 27, 2013
- ^Pell, Rich (January 13, 2009). 'Free SPICE software exploits multicore processors'. EE Times. Retrieved January 17, 2011.
- ^news:sci.electronics.cad: Announce: Multi-threaded LTspice accessdate=September 27, 2013
- ^'LTspice IV Is Now Native on Mac OS X'. Evaluation Engineering. November 9, 2013.
- ^ abcde'LTspice - Control Panel'. LTwiki. Archived from the original on December 4, 2018.
- ^ abcdefghij'LTspice - General Conventions'. LTwiki. Archived from the original on December 4, 2018.
- ^ abcde'Label a node name'. LTwiki. Archived from the original on December 8, 2018.
- ^'LTspice: Undocumented Shortcuts'. Analog Devices. Archived from the original on December 8, 2018.
- ^ abcde'Port Type drawing'. LTwiki. Retrieved December 9, 2018.
- ^ abcdefghijWhat are the different LTspice file types; LTwiki.
- ^ abSubcircuit structure guide; Audio perfection.
- ^Save Plot Configurations; LTwiki.
Further reading[edit]
- SPICE Differentiation; Mike Engelhardt; Linear Technology; LT Journal of Analog Innovation; 7 pages; January 2015.
- The LTspice IV Simulator: Manual, Methods and Applications; Gilles Brocard; Würth Elektronik; 744 pages; 2013; ISBN978-3899292589. (Table of Contents)
- Semiconductor Device Modeling with SPICE; 2nd Ed; Giuseppe Massobrio and Paolo Antognetti; McGraw Hill; 479 pages; 1993; ISBN978-0070024694. (Table of Contents)
- Books with LTspice chapters
- Designing Audio Power Amplifiers; 2nd Ed; Bob Cordell; McGraw Hill; 776 pages; 2019; ISBN978-1138555440. (Chapters 23 & 24) (LTspice models)
- Op-Amp Circuits - Simulations and Experiments; 1st Ed; Sid Antoch; Zap Studio; 128 pages; 2016; ISBN978-1935422150.
External links[edit]
Ltspice Mac Simulation Menu
|
|
In order to setup the folders properly, the ltspice_lib folder needs to be copied to the lib folder in EAGLE's installation directory. Once there rename it to just ltspice.
Macspice
In order to setup the folders properly, the ltspice_example folder needs to be copied to the projects/examples folder in EAGLE's installation directory. Once there rename it to just ltspice.
In order to setup the folders properly, the misc folder needs to be copied to the root of the installation directory(It needs to be in the same location with lib, bin, etc.). Once there rename it to just ltspice.
Ltspice Mac Shortcuts
In order to setup the icons properly, the win_eagle.scr file needs to be copied to the scr folder in root of the installation directory. Once there rename it to eagle.scr.