Spice - Circuit
LTspice (free, best for beginners), ngspice (open-source), PSpice (commercial), HSPICE (high-precision). 2. The Core Components of a SPICE Netlist A netlist is the text description of your circuit. Every line follows this pattern:
.PROBE .END
.OP Sweeps frequency, plots gain/phase (Bode plot). Syntax: .AC oct 100 1 1Meg → 100 points/octave from 1 Hz to 1 MHz. spice circuit
// Set initial condition .IC V(VOUT)=1.5 Every line follows this pattern:
R1 1 2 1k → Resistor R1 between nodes 1 and 2, 1 kΩ. Basic Components | Component | Prefix | Syntax Example | Meaning | |-----------|--------|----------------|---------| | Resistor | R | R1 1 2 1k | 1 kΩ | | Capacitor | C | C1 2 3 10u | 10 µF | | Inductor | L | L1 3 0 100m | 100 mH | | Voltage source | V | V1 1 0 DC 5 | 5V DC | | Current source | I | I1 2 0 DC 1m | 1 mA DC | Basic Components | Component | Prefix | Syntax
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.
