Algorithm Search⌘K

Definitionintro

Don't-care condition

Also called incompletely specified function, don't-care set.

An input combination where the output of a function may be 0 or 1, which a minimizer may choose to make the circuit smaller.

A don't-care condition is an input of a Boolean function where the output may be 0 or 1. The designer does not care, usually because the input never occurs or because nobody looks at the output then. The set of these inputs is the don't-care set DD. A minimizer may give each point of DD the value that makes the circuit smaller, and an implicant may contain points of DD. In a Karnaugh map these cells hold an x, and a group of 1s may take them in. A digit circuit is the classic case: a 4-bit code for a decimal digit never takes the values 10 to 15, so those six inputs are don't-cares, and the circuit for "digit at least 5" shrinks from 9 literals to 5.

Definition

A function with don't-cares on nn variables is a map

f:{0,1}n→{0,1,∗},f : \{0,1\}^n \to \{0, 1, *\},

where ∗* means "either". It gives three disjoint sets that cover {0,1}n\{0,1\}^n: the on-set F=f−1(1)F = f^{-1}(1), the off-set R=f−1(0)R = f^{-1}(0) and the don't-care set D=f−1(∗)D = f^{-1}(*). Each point of DD is a don't-care condition. The set F∪RF \cup R is the care set.

Realization. A completely specified function g:{0,1}n→{0,1}g : \{0,1\}^n \to \{0,1\} realizes ff if g=fg = f on the care set, that is,

F⊆g−1(1)⊆F∪D.F \subseteq g^{-1}(1) \subseteq F \cup D.

So the realizations of ff form the interval [F,F∪D][F, F \cup D] in the lattice of functions ordered by g≤hg \le h when g(x)≤h(x)g(x) \le h(x) for all xx. There are 2∣D∣2^{|D|} realizations. A cover of ff, in the sense of the implicant page, is a sum of products of some realization.

Kinds of don't-cares. The definition does not say where DD comes from. In practice there are three sources.

  1. Input don't-cares, also called satisfiability or controllability don't-cares. The input never occurs: an unused code, or a combination that the logic before this block cannot produce.
  2. Output don't-cares, also called observability don't-cares. The input occurs, but the output does not change any primary output of the whole circuit then. They come from the context of a node in a Boolean network.
  3. External don't-cares. The specification leaves the output free, for example for the unused states of a state machine. These lead to incompletely specified FSM minimization.

Two-level minimizers take DD as given, as a cover of cubes or a list of minterms, and do not care which kind it is.

Examples and non-examples

  • BCD digit at least 5. The inputs abcda b c d hold a decimal digit in binary, so the codes 10 to 15 never occur. Let f=1f = 1 for the digits 5 to 9: F={5,6,7,8,9}F = \{5, 6, 7, 8, 9\}, D={10,…,15}D = \{10, \ldots, 15\}, R={0,…,4}R = \{0, \ldots, 4\}. Without the don't-cares the minimum SOP is abˉcˉ+aˉbd+aˉbca \bar{b} \bar{c} + \bar{a} b d + \bar{a} b c, with 3 cubes and 9 literals. With them it is a+bd+bca + b d + b c, with 3 cubes and 5 literals. The cube aa covers 8, 9 and the six don't-cares. This realization sets all six don't-cares to 1, and it is one of the 26=642^6 = 64 realizations.
  • One don't-care. For ∑m(1,3,6,7)\sum m(1, 3, 6, 7) over x1x2x3x_1 x_2 x_3, the minimum SOP is x1x2+xˉ1x3x_1 x_2 + \bar{x}_1 x_3, with 4 literals. With minterm 5 as a don't-care, it is x1x2+x3x_1 x_2 + x_3, with 3 literals, and the realization is 1 at minterm 5.
  • All don't-cares. If F=∅F = \emptyset, the empty cover realizes ff, with no cube at all. If R=∅R = \emptyset, the cube with no literal does. A minimizer never needs a cube that lies inside DD alone.
  • Non-example: a required value. An input that can occur and whose output the specification fixes is not a don't-care, even if the designer thinks it is rare. If a minimizer treats it as one, the circuit gives a fixed value there, which may be wrong.
  • Non-example: a value per use. A realization gives each point of DD one value. A two-output design may have a point that is a don't-care for one output and a 1 for the other, but in one output the point is either 0 or 1. Two cubes of one cover cannot treat the same point in two ways, since the cover is the union of its cubes.

A trap in practice. A don't-care that comes from "this input never occurs" is only as good as that claim. After synthesis the circuit has a fixed value at each point of DD. If the input does occur, the circuit gives that value, and a simulation of the source that showed an unknown value at that point will not match the netlist. For the same reason, an equivalence check of the source against the netlist must compare them on the care set only.

References

  1. Robert K. Brayton, Gary D. Hachtel, Curtis T. McMullen and Alberto L. Sangiovanni-Vincentelli, Logic Minimization Algorithms for VLSI Synthesis, Kluwer, 1984, Chapter 2, Basic Definitions (the on-set, off-set and don't-care set of a function)
  2. Giovanni De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994, Chapter 7, Two-Level Combinational Logic Optimization
  3. Gary D. Hachtel and Fabio Somenzi, Logic Synthesis and Verification Algorithms, Kluwer, 1996, Chapter 4, Synthesis of Two-Level Circuits

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/J7N02D/text.yaml