Prof. Dr. Thorsten Jungmann (last updated 2026-10-19)

Relates to DET-03 Representation and minimization of logic functions

Task

Your smartphone can be set to Do Not Disturb, for example at night. It rings audibly only if silent mode is off. Do Not Disturb silences incoming calls, with two exceptions: calls from your favourites, and a repeated call (German: wiederholter Anruf), when the same person calls again shortly after a first call. Silent mode has priority over both exceptions. The inputs and the output are:

  • : silent mode is on
  • : the caller is one of your favourites
  • : Do Not Disturb is on
  • : the call is a repeated call
  • : the ringtone is audible

a) Set up the truth table of .

b) Give the minterm list and the maxterm list of .

c) Minimize with a Karnaugh map, once with loops of ones and once with loops of zeros. Which of the two results needs fewer gates?

d) Draw the circuit of the result with fewer gates, according to the standard of the International Electrotechnical Commission (IEC), IEC 60617.

e) Without repeated calls, the circuit fulfilled the description. Show with a counterexample that it does not fulfil the new description.

◀️ Back to the task


Solution

Given

Given explicitly:

  • the inputs (‘silent mode on’), (‘caller is a favourite’), (‘Do Not Disturb on’) and (‘repeated call’), and the output (‘ringtone audible’)
  • the rule: with silent mode on, the phone stays silent; Do Not Disturb silences calls, except calls from favourites and repeated calls
  • e) the earlier circuit

Known:

  • Steps 1 and 2: from the description to the truth table (DET-03)
  • Minterm and maxterm lists (DET-03)
  • The Karnaugh map with four inputs, loops of ones and loops of zeros (DET-03, DET-03, DET-03)
  • Effort of a circuit (DET-03); from the minimized expression to the circuit (DET-03)
  • Checking a circuit with a counterexample (DET-03)

Required

a) the truth table of
b) the minterm list and the maxterm list of
c) the minimized DNF and the minimized CNF of , and the one with fewer gates
d) the circuit of the result with fewer gates
e) a counterexample that shows that does not fulfil the new description

a) Truth table

With silent mode on, the phone stays silent whatever the other inputs say: a 0 in rows 8 to 15. With silent mode off, it rings unless Do Not Disturb blocks the call. Do Not Disturb blocks a call only if it comes neither from a favourite nor repeatedly: Do Not Disturb on, not a favourite, not repeated – that is row 2. In all other rows with silent mode off, the phone rings: without Do Not Disturb in rows 0, 1, 4 and 5, with Do Not Disturb for a repeated call in row 3 and for a favourite in rows 6 and 7 (DET-03, 1.2):

Row
000001
100011
200100
300111
401001
501011
601101
701111
810000
910010
1010100
1110110
1211000
1311010
1411100
1511110

Check by counting: half of the 16 rows have silent mode on. Of the eight others, only row 2 has a blocked call, so the table has ones ✓

b) Minterm and maxterm lists

The minterm list names the seven rows with a 1, the maxterm list the nine rows with a 0 (DET-03, 2.5):

Check: together, the two lists contain each of the 16 row numbers exactly once ✓

c) Minimization with the Karnaugh map

With four inputs, the map has on the left of the rows and on the right of them, above and below the columns. Row by row, the cells contain the minterms 0, 2, 6 and 4; 1, 3, 7 and 5; 9, 11, 15 and 13; 8, 10, 14 and 12 (DET-03, 4.1). The ones lie in the two upper rows, the rows with , except the cell of 2.

Loops of ones (figure): the seven ones form three loops of four (DET-03, 4.2):

  • the cells of 4, 5, 6 and 7, a square in the two right columns of the upper rows:
  • the cells of 0, 1, 4 and 5 in the first and the last column of the upper rows, neighbours across the left and the right edge:
  • the cells of 1, 3, 5 and 7, the whole second row:

Karnaugh map of the ringtone with repeated calls in which seven ones fill the two upper rows except one cell and three loops of four surround them, one of them across the left and the right edge
Karnaugh map of the ringtone with repeated calls in which seven ones fill the two upper rows except one cell and three loops of four surround them, one of them across the left and the right edge

Loops of zeros (figure): the lower half of the map, the eight cells with , forms a loop of eight; there, is 1, so the sum term is . The remaining zero, in the cell of 2 at the top of the second column, has a neighbour across the top and the bottom edge: the zero in the cell of 10 at the bottom of the same column. In both, is 0, is 1 and is 0, while changes, so the sum term is (DET-03, 4.3):

Karnaugh map of the ringtone with repeated calls with a loop around the eight zeros of the lower half and a loop that connects the zero at the top of the second column with the zero at its bottom across the edge
Karnaugh map of the ringtone with repeated calls with a loop around the eight zeros of the lower half and a loop that connects the zero at the top of the second column with the zero at its bottom across the edge

Counted as in the lesson (DET-03, 3.1):

Minimized formAND gatesOR gatesGate inputsInverters
DNF (loops of ones)3192
CNF (loops of zeros)1152

The CNF needs two gates with five gate inputs instead of four gates with nine; both forms need inverters for and . Read the CNF: the phone rings if silent mode is off and one of three things holds: the caller is a favourite, Do Not Disturb is off, or the call is repeated.

Check: factoring out from the DNF gives the CNF:

✓

d) Circuit

The minimized CNF becomes a two-level circuit directly (DET-03, 5.1): an OR gate with three inputs forms the sum term , and an AND gate combines it with . The sum term has a single literal and needs no OR gate; it comes directly from an inverter. A second inverter provides (figure). As in the lesson, the intermediate node at the output of the OR gate is called :

Minimized circuit of the ringtone with repeated calls in which inverters turn A and C into A bar and C bar, an OR gate combines B, C bar and D into the intermediate node X, and an AND gate combines A bar and X into Y
Minimized circuit of the ringtone with repeated calls in which inverters turn A and C into A bar and C bar, an OR gate combines B, C bar and D into the intermediate node X, and an AND gate combines A bar and X into Y

Check in row 2, the only row with silent mode off in which the phone stays silent. For , , and :

✓

e) Counterexample

does not contain ; it treats a repeated call like any other call. A difference can therefore only occur where a repeated call matters: silent mode off, Do Not Disturb on, the caller not a favourite and the call repeated. This is row 3 (DET-03, 5.3). For , , and :

The description demands a 1: the same person calls again shortly after a first call, and Do Not Disturb lets the call through. The old circuit delivers a 0, and the phone stays silent. Row 3 is a counterexample, so does not fulfil the new description.

Check with the minterm lists: the old circuit is 1 where silent mode is off and either the caller is a favourite or Do Not Disturb is off, whatever is:

The minterm list of from b) contains row 3 as well; apart from it, the two lists agree ✓

The simulation shows both circuits, driven by the same four inputs: the new one with the output above, the old one with the output below. It starts in row 3, the counterexample: shows 1 and shows 0. Switch the inputs through all 16 rows: the two outputs differ only in row 3.

Simulation of the new circuit with the output Y and the old circuit with the output Y old, driven by the same inputs with A and B low and C and D high, so that Y is high and Y old is low
Simulation of the new circuit with the output Y and the old circuit with the output Y old, driven by the same inputs with A and B low and C and D high, so that Y is high and Y old is low

Open in the simulator