Digital logic: gates, K-maps & flip-flops worksheet with answers

Free printable Digital logic: gates, K-maps & flip-flops worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
BAF

NAND and NOR are universal gates: any logic function can be built from one of them alone. What is the minimum number N of 2-input NAND gates needed to build the XOR function shown?

F = A ⊕ B
N =
2.Easy
A = 1B = 1C = 1N1G1G2G3F

The inputs of the logic circuit are A = 1, B = 1 and C = 1. Exactly one of its gates has the output 1. Click that gate.

A = 1B = 1C = 1
  1. 1N1
  2. 2G1
  3. 3G2
  4. 4G3
3.Medium
ABCD000111100001111010111302141507061121130151140819011010

Use the Karnaugh map to find the minimal product-of-sums (POS) form of F(A, B, C, D) = Σm(0, 1, 3, 4, 5, 9, 12, 13, 14). How many sum terms (factors) N does it have?

F(A, B, C, D) = Σm(0, 1, 3, 4, 5, 9, 12, 13, 14)
N =
4.Medium
ABC000111100101324576

Simplify F = AC′ + BC + A′B′C to its minimal sum-of-products form. How many literals L does the simplified expression contain?

F = AC′ + BC + A′B′C
L =
5.Hard
ABCD000111100001111000X103020405X7X6012113X151141809011110

Find the minimal SOP form of F(A, B, C, D) = Σm(8, 10, 13, 14) + d(1, 6, 7, 15), where d marks the don't-care conditions. How many product terms N does it have?

F(A, B, C, D) = Σm(8, 10, 13, 14) + d(1, 6, 7, 15)
N =
6.Hard
DQ3​Q3​DQ2​Q2​DQ1​Q1​DQ0​Q0​CLKSHIFT

A 4-bit shift register Q₃Q₂Q₁Q₀ holds 1001. At every clock edge the bits shift one place to the right (Q₃ → Q₂ → Q₁ → Q₀, Q₀ is lost) and the serial input enters Q₃. The serial input is 1, 1, 1, 0 at the 4 edges. Give the final state Q = Q₃Q₂Q₁Q₀ as a decimal number.

Q₃Q₂Q₁Q₀ = 10011, 1, 1, 0
Q =

Answer key

  1. 1. N = 4
  2. 2. G3
  3. 3. N = 4
  4. 4. L = 6
  5. 5. N = 3
  6. 6. Q = 7

Full step-by-step solutions: practise this topic on examproblems.com.