CMOS generator

Examples

AB AND · A+B OR · A′ NOT · A^B XOR

Schematic

Y = (A · B) + CCMOS schematic with 8 transistors. Inverters are on the left, each with one PMOS and one NMOS. Matching net labels are connected.Y = (A · B) + CInvertersOutput inverterVDDI1PI1NY'YPUN (PMOS)VDDAP1BP2CP3AN1BN2CN3PDN (NMOS)Y'8 transistors total · 6 core · 1 inverterMatching net labels are connected.Generated using Alexander Hamilton'shttps://galexy727.github.io/cmos/
InputsY = 0PDN off · PUN on
Output functionY = (A · B) + CCoreY' = ((A · B) + C)′

Pull-up PMOS

On

Y' = 1via VDD

On when(A′ + B′) · C′ = 1

Pull-down NMOS

Off

Y' = 0via GND

On when(A · B) + C = 1

Inverters 1 inverter

Y = NOT Y'
Network connections

Series requires every branch; parallel requires any branch. Labels identify transistor gates.

PUN / PMOS

Series
  • Parallel
    • A
    • B
  • C

PDN / NMOS

Parallel
  • Series
    • A
    • B
  • C

Notation

AB, A*B, A AND B · A+B, A OR B · A′, !A, NOT A · A^B, A XOR B

Precedence: NOT, AND, XOR, OR. Use parentheses to group. Inputs are case-sensitive letters with optional digit suffixes. Maximum 8 inputs.

Matching net labels are connected. Each inverter contains one PMOS and one NMOS. Optimization chooses the output polarity with fewer inverters; ties use direct output.