← ProblemsCircuits / Combinational Logic / Basic Gates

Truth tables

36%basicsboolean-algebra

Any combinational function of three variables can be specified completely by a truth table with 8 rows. Implement the function f defined by this table:

Rowx3x2x1f
00000
10010
20101
30111
41000
51011
61100
71111

A direct approach: OR together one AND term (minterm) per row where f = 1 — here rows 2, 3, 5, and 7. Each minterm ANDs all three inputs, inverting those that are 0 in that row. You may also simplify the expression first if you like; any circuit matching the table is accepted.