kicad:using_arbitrary_spice_engines_in_kicad_5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
kicad:using_arbitrary_spice_engines_in_kicad_5 [2018/09/09 07:34] – mithat | kicad:using_arbitrary_spice_engines_in_kicad_5 [2018/09/09 14:21] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using Arbitrary SPICE Engines in KiCad 5 ====== | ====== Using Arbitrary SPICE Engines in KiCad 5 ====== | ||
- | SPICE support in KiCad 5 has been significantly reworked to make it a better simulation platform. One casualty of this is that the OldWays no longer | + | Simulation |
- | So I hacked together a script that makes it relatively easy to convert KiCad 4 simulation setups | + | I have a lot of simulations I built under KiCad 4. So I hacked together a bash script that makes it relatively easy to convert KiCad 4 simulations |
<code bash> | <code bash> | ||
Line 14: | Line 14: | ||
# Usage: | # Usage: | ||
# * Put all the stuff to be prepended (e.g., -PSPICE stuff) in pre.cir. | # * Put all the stuff to be prepended (e.g., -PSPICE stuff) in pre.cir. | ||
- | # * Put all the stuff to be appended | + | # * Put all the stuff to be appended (e.g., +PSPICE stuff) in post.cir. |
# * In this script: | # * In this script: | ||
- | # * Set CIRCUITNAME to point to the .cir file Kicad 5 generates. | + | # * Set CIRCUITNAME to point to the .cir file KiCad 5 generates. |
# * Set SPICE_ENGINE to your desired SPICE engine. (You' | # * Set SPICE_ENGINE to your desired SPICE engine. (You' | ||
# hack the line where it's invoked to add command line | # hack the line where it's invoked to add command line | ||
# | # | ||
- | # * Set the simulator | + | # * In the KiCad Netlist dialog SPICE tab, set the simulator to this file using an absolute path. |
- | # * Run Simulator | + | # * In KiCad, |
### --- config ------------------------------------------------------- # | ### --- config ------------------------------------------------------- # | ||
- | # The name of the cir file to simulate with (w/o extension). | + | # The name of the cir file to simulate with (w/o extension): |
CIRCUITNAME=opa-x5-spice | CIRCUITNAME=opa-x5-spice | ||
- | # The SPICE engine you want to use. | + | # The command for the SPICE engine you want to use: |
SPICE_ENGINE=spiceopus | SPICE_ENGINE=spiceopus | ||
# -------------------------------------------------------------------- # | # -------------------------------------------------------------------- # |
kicad/using_arbitrary_spice_engines_in_kicad_5.txt · Last modified: 2019/01/04 21:41 by mithat