kicad:kicad_spice_quick_guide
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:kicad_spice_quick_guide [2012/09/23 21:23] – [Configuring a project] mithat | kicad:kicad_spice_quick_guide [2014/06/01 21:58] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Quick Guide to using KiCad for SPICE simulation | + | ====== Quick Guide to Using KiCad for SPICE Simulation |
{{: | {{: | ||
Line 5: | Line 5: | ||
===== What you'll need ===== | ===== What you'll need ===== | ||
+ | You'll need the following to get a working SPICE setup: | ||
* [[http:// | * [[http:// | ||
- | * A SPICE engine | + | * A [[http:// |
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
- | * Component | + | * Any others? |
+ | * Component | ||
* There is a library of basic SPICE components that ships with KiCad. It's good enough for initial experimentation. | * There is a library of basic SPICE components that ships with KiCad. It's good enough for initial experimentation. | ||
- | * In Debian-based Linux (and likely others), it's at ''/ | + | * The library isn't included in Eeschema projects by default. You'll have to add it manually if you want to use it. In Debian-based Linux, it's at ''/ |
- | * EESchema does not include this library in projects by default. | + | * I am developing |
- | * I am maintaining | + | |
===== Configuring a project ===== | ===== Configuring a project ===== | ||
- Create a new project in the conventional way. | - Create a new project in the conventional way. | ||
- | - Open EESchema | + | - Open Eeschema |
- Manually add one or more libraries with SPICE components to the project. | - Manually add one or more libraries with SPICE components to the project. | ||
- | * The SPICE library that comes packaged with KiCad is //not// included by default in new KiCad projects. | + | * Note that the SPICE library that comes packaged with KiCad is //not// included by default in new KiCad projects. |
- | - Specify the SPICE engine you want to use. | + | - Specify the SPICE engine you want to use: |
* Click the " | * Click the " | ||
* Select the " | * Select the " | ||
Line 33: | Line 34: | ||
- Do your schematic capture, subject to a couple best practices: | - Do your schematic capture, subject to a couple best practices: | ||
* For named nets, use global labels instead of local labels. | * For named nets, use global labels instead of local labels. | ||
- | * In the netlists, global identifiers will be used as-is. However, | + | * The reason for this is that in the netlists, global identifiers will be used as-is but local labels get text prepended to the name---which makes it hard for you to remember/ |
* Use the "'' | * Use the "'' | ||
- | * "'' | + | * "'' |
- | - Specify the simulations you want to run and the output you want to display by adding a text block (i.e., " | + | - Specify the simulations you want to run and the output you want to display by adding a text block (i.e., " |
- | +pspice | + | +PSPICE |
.control | .control | ||
ac dec 66 1kHz 120kHz | ac dec 66 1kHz 120kHz | ||
Line 44: | Line 45: | ||
plot vp(vout) | plot vp(vout) | ||
.endc</ | .endc</ | ||
- | * The line '' | + | * The line '' |
- | * :!: There appears to be a bug in the parser that requires you to add a space after '' | + | * :!: There appears to be a bug in the parser that requires you to add a space after '' |
- | * There is a corresponding '' | + | * There is a corresponding '' |
- | * If you don't like seeing | + | * If you don't like seeing |
* Yes, this means you need to learn some [[http:// | * Yes, this means you need to learn some [[http:// | ||
- Run the simulation: | - Run the simulation: |
kicad/kicad_spice_quick_guide.txt · Last modified: 2018/10/17 14:56 by mithat