OhmSpice docs

Built-in Components

Built-in components

The library starts with ideal passives, sources, common semiconductors, amplifiers, switches, rails, and ground.

Resistor

Linear resistor. Value in ohms, e.g. 1k, 4.7M.

Passives · 2 pins · R

Capacitor

Linear capacitor. Value in farads, e.g. 100n, 1u.

Passives · 2 pins · C

Inductor

Linear inductor. Value in henries, e.g. 10u, 1m.

Passives · 2 pins · L

Transformer

Multi-winding transformer with explicit signed turns for winding ratio and polarity.

Passives · 4 pins

Diode

General-purpose rectifier or signal diode.

Semiconductors · 2 pins · D

Zener Diode

Reverse-breakdown voltage-reference and clamp diode.

Semiconductors · 2 pins

Schottky Diode

Schottky rectifier: low forward drop and no reverse recovery.

Semiconductors · 2 pins

NMOS

N-channel enhancement MOSFET.

Semiconductors · 3 pins · M

PMOS

P-channel enhancement MOSFET.

Semiconductors · 3 pins · M P

NPN

NPN bipolar junction transistor.

Semiconductors · 3 pins

PNP

PNP bipolar junction transistor.

Semiconductors · 3 pins

Controlled Switch

Four-terminal voltage-controlled switch.

Switches · 4 pins · S

Voltage Source

Independent voltage source. Pick DC/Sine/Square in the inspector.

Sources · 2 pins · V

Current Source

Independent current source. Pick DC/Sine/Square in the inspector.

Sources · 2 pins · I

AC Sweep

Voltage source preset to the AC kind — small-signal stimulus for AC sweeps.

Sources · 2 pins

Ground

Ground reference — its net becomes SPICE node 0.

Sources · 1 pins · G

Ideal Op Amp

Three-pin unpowered ideal operational amplifier.

Amplifiers · 3 pins · O

Powered Op Amp

Five-pin supply-aware operational amplifier.

Amplifiers · 5 pins

Comparator

Five-pin supply-aware voltage comparator.

Amplifiers · 5 pins

Fully Diff Amp

Fully differential amplifier — complementary outputs centered on VOCM; Ideal or Single-pole.

Amplifiers · 5 pins

Port

Subcircuit I/O port — its net becomes a pin of the enclosing .subckt.

Sources · 1 pins