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

Relates to DET-02 Logic operations

Task

The four circuits below come from the textbook by LaMeres [5, pp. 146–147]; here they are drawn according to the standard of the International Electrotechnical Commission (IEC), IEC 60617. The number next to each gate is its propagation delay. In each circuit, label the intermediate nodes first, that is, the outputs of the gates inside the circuit.

Circuit 1 has the inputs and and the output .

Circuit 1 according to IEC 60617, in which the input A passes an inverter with 1 ns and then, together with B, an XOR gate with 2 ns that drives the output Y1 on the right.
Circuit 1 according to IEC 60617, in which the input A passes an inverter with 1 ns and then, together with B, an XOR gate with 2 ns that drives the output Y1 on the right.

a) Determine the logic expression of the output of circuit 1.

b) Set up the truth table of circuit 1, with a column for each intermediate node.

c) Determine the propagation delay of circuit 1.

Check your truth table of b) in the simulation of circuit 1 by switching the inputs through all combinations.

Simulation of circuit 1 with an inverter and an XOR gate, in which the inputs A and B are low and the output Y1 is high.
Simulation of circuit 1 with an inverter and an XOR gate, in which the inputs A and B are low and the output Y1 is high.

Open in the simulator

Circuit 2 has the inputs , and and the output .

Circuit 2 according to IEC 60617, in which A passes an inverter with 15 ns, B and C pass an XOR gate with 10 ns, and the inverter, B and the XOR gate feed an OR gate with three inputs and 10 ns that drives the output Y2 on the right.
Circuit 2 according to IEC 60617, in which A passes an inverter with 15 ns, B and C pass an XOR gate with 10 ns, and the inverter, B and the XOR gate feed an OR gate with three inputs and 10 ns that drives the output Y2 on the right.

d) Determine the logic expression of the output of circuit 2.

e) Set up the truth table of circuit 2, with a column for each intermediate node.

f) Determine the propagation delay of circuit 2.

Check your truth table of e) in the simulation of circuit 2 by switching the inputs through all combinations.

Simulation of circuit 2 with an inverter, an XOR gate and an OR gate with three inputs, in which all inputs are low and the output Y2 is high.
Simulation of circuit 2 with an inverter, an XOR gate and an OR gate with three inputs, in which all inputs are low and the output Y2 is high.

Open in the simulator

Circuit 3 has the inputs , and and the output .

Circuit 3 according to IEC 60617, in which A, B and C feed a NAND gate with three inputs and 35 ns, the input C inverted by an inverter with 5 ns and the input B feed a NAND gate with 25 ns, and both NAND gates feed a third NAND gate with 25 ns that drives the output Y3 on the right.
Circuit 3 according to IEC 60617, in which A, B and C feed a NAND gate with three inputs and 35 ns, the input C inverted by an inverter with 5 ns and the input B feed a NAND gate with 25 ns, and both NAND gates feed a third NAND gate with 25 ns that drives the output Y3 on the right.

g) Determine the logic expression of the output of circuit 3.

h) Set up the truth table of circuit 3, with a column for each intermediate node.

i) Determine the propagation delay of circuit 3.

Check your truth table of h) in the simulation of circuit 3 by switching the inputs through all combinations.

Simulation of circuit 3 with three NAND gates and an inverter, in which all inputs are low and the output Y3 is low.
Simulation of circuit 3 with three NAND gates and an inverter, in which all inputs are low and the output Y3 is low.

Open in the simulator

Circuit 4 has the inputs , and and the output .

Circuit 4 according to IEC 60617, in which an OR gate with three inputs and 10 ns combines A, B and C, two OR gates with 6 ns combine A with the inverted C and the inverted B with C, each inverter with 3 ns, and an AND gate with three inputs and 10 ns combines the three ORs into the output Y4 on the right.
Circuit 4 according to IEC 60617, in which an OR gate with three inputs and 10 ns combines A, B and C, two OR gates with 6 ns combine A with the inverted C and the inverted B with C, each inverter with 3 ns, and an AND gate with three inputs and 10 ns combines the three ORs into the output Y4 on the right.

j) Determine the logic expression of the output of circuit 4.

k) Set up the truth table of circuit 4, with a column for each intermediate node.

l) Determine the propagation delay of circuit 4.

Check your truth table of k) in the simulation of circuit 4 by switching the inputs through all combinations.

Simulation of circuit 4 with three OR gates, two inverters and an AND gate with three inputs, in which all inputs are low and the output Y4 is low.
Simulation of circuit 4 with three OR gates, two inverters and an AND gate with three inputs, in which all inputs are low and the output Y4 is low.

Open in the simulator

◀️ Back to the task


Solution

Given

Given explicitly:

  • Circuit 1 [5, Fig. 4.27]: an inverter (1 ns) and an XOR gate (2 ns); inputs and , output
  • Circuit 2 [5, Fig. 4.28]: an inverter (15 ns), an XOR gate (10 ns) and an OR gate with three inputs (10 ns); inputs , and , output
  • Circuit 3 [5, Fig. 4.29]: a NAND gate with three inputs (35 ns), an inverter (5 ns) and two NAND gates with two inputs (25 ns each); inputs , and , output
  • Circuit 4 [5, Fig. 4.31]: an OR gate with three inputs (10 ns), two inverters (3 ns each), two OR gates with two inputs (6 ns each) and an AND gate with three inputs (10 ns); inputs , and , output

Known:

  • Analysis of a circuit: label every intermediate node, then write down the expression of each node from the inputs to the output (DET-02)
  • Truth table with rows and a column for each intermediate node, evaluated from left to right (DET-02)
  • Expressions of the gates, among them the XOR gate, (DET-02), and the XNOR gate, (DET-02)
  • De Morgan’s laws, (DET-02), and involution, (DET-02)
  • Propagation delay of a circuit, stage by stage: a gate switches only when the slowest of its inputs has arrived, so that the delay at its output is the largest delay at its inputs plus its own propagation delay; the delay of the circuit is that of its longest path (DET-02)

Required

a), d), g) and j) the logic expressions of to
b), e), h) and k) the truth tables of the four circuits
c), f), i) and l) the propagation delays of the four circuits

a) Expression of circuit 1

Circuit 1 has one intermediate node, the output of the inverter; we call it . From the inputs to the output, each node follows from the nodes before it (DET-02, 6.1):

Read: ‘Y1 equals A bar exclusive-or B’.

b) Truth table of circuit 1

With two inputs, the table has rows, numbered from row 0 to row 3. In each row, we evaluate the nodes from left to right (DET-02, 6.2):

0011
0110
1000
1101

is 1 in rows 0 and 3, where and are equal: circuit 1 works like an XNOR gate.

Check with the expressions of the XOR gate and of the XNOR gate (DET-02, 4.3, DET-02, 4.4):

The expression of circuit 1 is that of the XNOR gate ✓

c) Propagation delay of circuit 1

Stage by stage from the inputs to the output, each node is valid after the largest delay at the inputs of its gate plus the delay of the gate itself; the inputs are valid from the start, after 0 ns (DET-02, 6.3):

The XOR gate at the output waits for the slowest of its inputs, after 1 ns; is valid at once. The propagation delay of circuit 1 is therefore .

Check along all paths from an input to the output:

  • → inverter → XOR gate:
  • → XOR gate:

The longest path takes 3 ns ✓

Propagation delays in the simulator

The gates of the simulations have no propagation delay: the simulator shows only the logic of the circuits, like the ideal timing diagrams of the lesson (DET-02, 2.7). The propagation delays of the figures apply to the calculations in c), f), i) and l).

d) Expression of circuit 2

Circuit 2 has two intermediate nodes: at the output of the inverter and at the output of the XOR gate. Input leads both to the XOR gate and directly to the OR gate:

The parentheses around show that the XOR gate is evaluated before the OR gate.

e) Truth table of circuit 2

With three inputs, the table has rows:

000101
001111
010111
011101
100000
101011
110011
111001

is 0 only in row 4, for , and : only there are all three inputs of the OR gate 0.

Check of row 4 with the expression. For , and :

✓

A gate too many

The table has a single 0, in row 4. The expression is 0 in exactly this row as well, so that : circuit 2 would work without its XOR gate. How to find such simplifications systematically is the topic of DET-03.

f) Propagation delay of circuit 2

Stage by stage from the inputs to the output, each node is valid after the largest delay at the inputs of its gate plus the delay of the gate itself; the inputs are valid from the start, after 0 ns:

The OR gate with three inputs at the output waits for the slowest of its inputs, after 15 ns; is valid after 10 ns and is valid at once. The propagation delay of circuit 2 is therefore .

Check along all paths from an input to the output:

  • → inverter → OR gate with three inputs:
  • or → XOR gate → OR gate with three inputs:
  • → OR gate with three inputs:

The longest path takes 25 ns ✓

g) Expression of circuit 3

Circuit 3 has three intermediate nodes: at the output of the NAND gate with three inputs, at the output of the inverter and at the output of the NAND gate with two inputs in front:

With De Morgan’s laws (DET-02, 5.5) and involution (DET-02, 5.3), the expression becomes easier to read:

is 1 if , and are all 1 or if is 1 and is 0. The two NAND gates in front and the NAND gate at the output do the same as two AND gates followed by an OR gate. This is why NAND gates alone can replace AND and OR gates (DET-02, 5.6).

h) Truth table of circuit 3

0001110
0011010
0101101
0111010
1001110
1011010
1101101
1110011

is 1 in rows 2, 6 and 7.

Check with the result of g): is 1 in row 7, in rows 2 and 6; together, these are the rows 2, 6 and 7 ✓

i) Propagation delay of circuit 3

Stage by stage from the inputs to the output, each node is valid after the largest delay at the inputs of its gate plus the delay of the gate itself; the inputs are valid from the start, after 0 ns:

The NAND gate at the output waits for the slowest of its inputs, after 35 ns; is valid after 30 ns. The propagation delay of circuit 3 is therefore .

Check along all paths from an input to the output:

  • , or → NAND gate with three inputs → NAND gate:
  • → inverter → NAND gate → NAND gate:
  • → NAND gate → NAND gate:

The longest path takes 60 ns ✓ – it passes only two gates, whereas the path through three gates, → inverter → NAND gate → NAND gate, takes only 55 ns.

j) Expression of circuit 4

Circuit 4 has five intermediate nodes: at the output of the OR gate with three inputs, and at the outputs of the two inverters, and and at the outputs of the two OR gates with two inputs:

The AND gate combines three ORs. The parentheses are necessary, because AND takes precedence over OR (DET-02, 5.2).

k) Truth table of circuit 4

000011110
001101010
010110100
011100010
100111111
101101111
110110100
111100111

is 1 in rows 4, 5 and 7.

Check: the AND gate delivers a 0 wherever one of its three inputs is 0. The three ORs are 0 in these rows: in row 0, in rows 1 and 3 and in rows 2 and 6. The remaining rows 4, 5 and 7 give 1 ✓

l) Propagation delay of circuit 4

Stage by stage from the inputs to the output, each node is valid after the largest delay at the inputs of its gate plus the delay of the gate itself; the inputs are valid from the start, after 0 ns:

The AND gate with three inputs at the output waits for the slowest of its inputs, after 10 ns; and are valid after 9 ns. The propagation delay of circuit 4 is therefore .

Check along all paths from an input to the output:

  • , or → OR gate with three inputs → AND gate with three inputs:
  • → inverter → OR gate → AND gate with three inputs:
  • → inverter → OR gate → AND gate with three inputs:
  • → OR gate → AND gate with three inputs:
  • → OR gate → AND gate with three inputs:

The longest path takes 20 ns ✓ – it passes only two gates, whereas the two paths through three gates take only 19 ns.