Skip to main content

K-map F(M,N,O,P) in SOP using NAND

Short answer

Simplified SOP: Y = MO + MP' + N'P' + M'N'O'. Realized with NAND gates by converting to NAND-NAND form, using inverters for complemented inputs.

Simplify the following expression using K-map. Express it in SOP format and realize it using NAND gate only. Y = F(M,N,O,P) = Σm(0,1,2,8,12,14,15) + d(5,10,11)

Given Y=F(M,N,O,P)=Σm(0,1,2,8,12,14,15)+d(5,10,11)Y = F(M,N,O,P) = \Sigma m(0,1,2,8,12,14,15) + d(5,10,11), with M as the MSB.

K-map simplification

        OP
MN      00  01  11  10
      +---+---+---+---+
 00   | 1 | 1 | 0 | 1 |
      +---+---+---+---+
 01   | 0 | X | 0 | 0 |
      +---+---+---+---+
 11   | 1 | 0 | 1 | 1 |
      +---+---+---+---+
 10   | 1 | 0 | X | X |
      +---+---+---+---+
  • Quad m(10,11,14,15) → MOMO
  • Quad m(8,10,12,14) → MP‾M\overline{P}
  • Quad m(0,2,8,10) → N‾ P‾\overline{N}\,\overline{P}
  • Pair m(0,1) → M‾ N‾ O‾\overline{M}\,\overline{N}\,\overline{O}

SOP form

Y=MO+MP‾+N‾ P‾+M‾ N‾ O‾Y = MO + M\overline{P} + \overline{N}\,\overline{P} + \overline{M}\,\overline{N}\,\overline{O}

Check: 14, 15 by MOMO (with 10, 11); 8, 12, 14 by MP‾M\overline{P}; 0, 2, 8 by N‾ P‾\overline{N}\,\overline{P} (with 10); 1 by M‾ N‾ O‾\overline{M}\,\overline{N}\,\overline{O}. (M‾ O‾P\overline{M}\,\overline{O}P, cells 1 and 5, is an equally good choice for the last term.)

Realization using NAND gates only

An SOP expression maps directly to a two-level NAND-NAND circuit (De Morgan: X+Y=X‾⋅Y‾‾X + Y = \overline{\overline{X}\cdot\overline{Y}}). Each product term becomes a first-level NAND and the output NAND replaces the OR gate. Complemented inputs are made with NAND gates whose inputs are tied.

Y=MO‾⋅MP‾‾⋅N‾ P‾‾⋅M‾ N‾ O‾‾‾Y = \overline{\overline{MO}\cdot\overline{M\overline{P}}\cdot\overline{\overline{N}\,\overline{P}}\cdot\overline{\overline{M}\,\overline{N}\,\overline{O}}}
M ──[NAND]── M'   (inputs tied)
N ──[NAND]── N'   (inputs tied)
O ──[NAND]── O'   (inputs tied)
P ──[NAND]── P'   (inputs tied)

M, O       ──[NAND]── G1  ─┐
M, P'      ──[NAND]── G2  ─┤
                           ├──[NAND]── Y
N', P'     ──[NAND]── G3  ─┤
M', N', O' ──[NAND]── G4  ─┘

Gates: 4 NAND inverters, 4 first-level NANDs and one 4-input output NAND.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 3 questions →