1. What is SPICE? SPICE is the industry standard for analog circuit simulation. It solves Kirchhoff’s laws numerically to predict DC, AC, and transient behavior before you build a physical prototype.
[ComponentName] [Node1] [Node2] [Value]
// End simulation .END | Tool | Best for | |------|-----------| | LTspice | General analog, power electronics, education | | ngspice + KiCad | PCB design integration | | Qucs-S | RF and microwave (with ngspice backend) | | Micro-Cap 12 | (now free) Educational, extensive models | Final rule: Simulate first, then build. But when simulation and reality disagree – trust your oscilloscope. SPICE models are only as good as their parameters. spice circuit
.PROBE .END
RC Filter Simulation V1 IN 0 PULSE(0 5 0 1n 1n 50u 100u) ; 5V square, 10 kHz R1 IN OUT 1k C1 OUT 0 0.1u It solves Kirchhoff’s laws numerically to predict DC,
.OP Sweeps frequency, plots gain/phase (Bode plot). Syntax: .AC oct 100 1 1Meg → 100 points/octave from 1 Hz to 1 MHz.
// Include a model file .INCLUDE my_transistors.lib SPICE models are only as good as their parameters
.TRAN 1u 1m .AC dec 100 10 100k