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
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 XNOR function shown?

F = (A ⊕ B)′
N =
3.Medium
MUX1I0​CI1​1I2​C′I3​ABS1​S0​F

A 4-to-1 multiplexer has its select inputs S₁ = A and S₀ = B, and its data inputs tied to I₀ = 1, I₁ = C, I₂ = 1, I₃ = C′. For how many of the 8 combinations of A, B and C is the output F = 1? Find N.

I₀ = 1I₁ = CI₂ = 1I₃ = C′
N =
4.Medium
ABCD000111100001111000011302040507061121131151140809111010

Use the Karnaugh map to find the minimal sum-of-products (SOP) form of F(A, B, C, D) = Σm(3, 11, 12, 13, 14, 15). How many literals L does it contain in total (a primed variable counts as one literal)?

F(A, B, C, D) = Σm(3, 11, 12, 13, 14, 15)
L =
5.Hard
ABCD00011110000111100011131214X51706012013X150141819011010

Find the minimal SOP form of F(A, B, C, D) = Σm(1, 2, 3, 4, 7, 8, 9) + d(5, 15), where d marks the don't-care conditions. How many literals L does it contain?

F(A, B, C, D) = Σm(1, 2, 3, 4, 7, 8, 9) + d(5, 15)
L =
6.Hard
DQ3​Q3​DQ2​Q2​DQ1​Q1​DQ0​Q0​CLKRING

A 4-bit ring counter Q₃Q₂Q₁Q₀ starts at 1001. At every clock edge the bits shift one place to the right (Q₃ → Q₂ → Q₁ → Q₀) and Q₃ receives Q₀. Give the state Q = Q₃Q₂Q₁Q₀ as a decimal number after 6 clock edges.

Q₃Q₂Q₁Q₀ = 10016
Q =

Answer key

  1. 1. N = 4
  2. 2. N = 5
  3. 3. N = 6
  4. 4. L = 5
  5. 5. L = 11
  6. 6. Q = 6

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