Skip to main content

CMOS Flip-Flop

CI

CircuitSim

·

Created Oct 3, 2026

·

Updated Oct 3, 2026

Preview will appear once the owner saves the schematic
Details

Components

6


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

About this circuit

Two cross-coupled CMOS NAND gates store one bit controlled by active-low set and reset inputs.

Circuit notes

CMOS Flip-Flop

Two cross-coupled CMOS NAND gates store one bit controlled by active-low set and reset inputs.

Circuit operation

Cross-coupled NAND gates create positive feedback that stores one bit. A low SetBar forces Q high; a low ResetBar forces Q low. Both inputs return high between commands so the stored value persists.

Expected behavior

S‾=0⇒Q=1\overline{S}=0\Rightarrow Q=1 R‾=0⇒Q=0\overline{R}=0\Rightarrow Q=0

The saved pulses never assert SetBar and ResetBar simultaneously. Driving both low is the forbidden input combination; releasing them together can leave the resulting state indeterminate. This is an asynchronous SR latch, often called an SR flip-flop, and has no clock.

Reading the results

The first voltage probe is green and the second is red. Additional voltage traces use distinct colors. Current probes, when present, start with blue and then purple. The chart opens with separate traces on a fixed time window; the table retains the same probe order. Zoom to extents includes the complete schematic.

The saved transient runs for 4.0 ms with a maximum step of 1.00 µs. Compare settled cycles after startup and use time-axis cursors to measure delays or periods.

Try a change

Set V1 pulse width to 300 µs; Q remains latched after SetBar returns high. Restore the saved values after comparing the result.

Model limits

These are generic transistor models, not a specific manufactured part. The CMOS models use illustrative threshold, transconductance, junction-capacitance and series-resistance parameters. Device mismatch, temperature drift, layout parasitics, breakdown and detailed noise are not represented. The schematic and component properties expose the values used.

Components used

Components used
6 components
NameManufacturerMPNCountType

N-channel MOSFET

Generic

—

4

Official

P-channel MOSFET

Generic

—

4

Official

Pulse Voltage Source

Generic

—

2

Official

Capacitor

Generic

—

1

Official

DC Voltage Source

Generic

—

1

Official

Resistor

Generic

—

1

Official

Try this circuit yourself

Free to get started. No download — runs in your browser with a full SPICE engine.