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
ABCG1G2F

For the logic circuit shown, how many of the 8 combinations of the inputs A, B and C give the output F = 1? Find N.

A, B, C → F
N =
2.Easy
A = 1B = 1C = 0N1G1G2G3F

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

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

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

F(A, B, C, D) = Σm(0, 2, 4, 5, 6, 9, 11, 13, 14, 15)
N =
4.Medium
ABCD000111100001111000010302040517160121131150140819111010

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

F(A, B, C, D) = Σm(6, 7, 9, 11, 13, 15)
L =
5.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 10 clock edges.

Q₃Q₂Q₁Q₀ = 100110
Q =
6.Hard
DQ3​Q3​DQ2​Q2​DQ1​Q1​DQ0​Q0​CLKSHIFT

A 4-bit shift register Q₃Q₂Q₁Q₀ holds 1010. 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 0, 1, 1, 1, 0 at the 5 edges. Give the final state Q = Q₃Q₂Q₁Q₀ as a decimal number.

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

Answer key

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

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