Algorithm Search⌘K

Definitionadvanced

Observability don't-care

Also called ODC.

The input conditions under which the value of an internal node cannot be seen at any output, so its function may change there.

An observability don't-care of a node in a Boolean network is an input vector of the network at which the value of the node cannot change any primary output. At such a vector, the other inputs of the gates after the node block its value. For example, if a node yy only feeds the AND gate z=yaˉz = y \bar{a}, then every vector with a=1a = 1 hides yy. The set of these vectors, the ODC of the node, is a don't-care condition that the rest of the circuit gives to the node: the node may compute any function that agrees with its own on the other vectors, and the outputs stay the same. Synthesis uses this freedom to make the local function of the node smaller. The set is the complement of a Boolean difference, which is easy to write and expensive to compute for a large network, and the ODCs of two nodes cannot in general be used at the same time.

Definition

Let NN be a Boolean network with primary inputs x=(x1,…,xn)x = (x_1, \ldots, x_n), primary outputs z1,…,zmz_1, \ldots, z_m, and an internal node yy with global function gyg_y. Let NyN_y be the network in which the output of yy is cut from yy and driven by a new primary input ss. In NyN_y, each output is a function zj(x,s)z_j(x, s).

Boolean difference. For a function F(x,s)F(x, s), the Boolean difference with respect to ss is

∂F∂s=F∣s=0⊕F∣s=1,\frac{\partial F}{\partial s} = F|_{s = 0} \oplus F|_{s = 1},

the exclusive OR of the two cofactors. It is 1 at xx exactly when the value of ss changes FF at xx.

Observability don't-care. The ODC of yy for output zjz_j and the ODC of yy are

ODCj(y)={x:∂zj∂s(x)=0},ODC(y)=⋂j=1mODCj(y).\mathrm{ODC}_j(y) = \Big\{x : \frac{\partial z_j}{\partial s}(x) = 0\Big\}, \qquad \mathrm{ODC}(y) = \bigcap_{j = 1}^m \mathrm{ODC}_j(y).

As a function, ODC(y)=∏j∂zj/∂s‾\mathrm{ODC}(y) = \prod_j \overline{\partial z_j / \partial s}. If output zjz_j has its own external don't-care set EjE_j, then ODCj(y)\mathrm{ODC}_j(y) also contains EjE_j.

The freedom of one node (exact). Let h:{0,1}n→{0,1}h : \{0,1\}^n \to \{0,1\}. Changing yy so that its global function becomes hh, with new fanins that are not in the transitive fanout of yy, keeps every primary output function if and only if

h(x)=gy(x)for every x∉ODC(y).h(x) = g_y(x) \quad \text{for every } x \notin \mathrm{ODC}(y).

Proof. Nodes outside the transitive fanout of yy keep their global functions, so after the change each output is zj(x,h(x))z_j(x, h(x)), with the same function zj(x,s)z_j(x, s) of NyN_y. Fix xx. If h(x)=gy(x)h(x) = g_y(x), then zj(x,h(x))=zj(x,gy(x))z_j(x, h(x)) = z_j(x, g_y(x)) for all jj. If h(x)≠gy(x)h(x) \ne g_y(x), the two values of ss are both used, and all outputs agree at xx exactly when ∂zj/∂s(x)=0\partial z_j / \partial s (x) = 0 for every jj, that is, when x∈ODC(y)x \in \mathrm{ODC}(y). So the outputs are unchanged at every xx exactly when hh and gyg_y differ only inside ODC(y)\mathrm{ODC}(y). □\square

So the realizations of yy form the interval of functions between gy⋅ODC(y)‾g_y \cdot \overline{\mathrm{ODC}(y)} and gy+ODC(y)g_y + \mathrm{ODC}(y), as on the don't-care condition page.

Local form. A minimizer works on the local function fyf_y over the fanins u1,…,uku_1, \ldots, u_k, not on gyg_y. Let ϕ(x)=(gu1(x),…,guk(x))\phi(x) = (g_{u_1}(x), \ldots, g_{u_k}(x)). The local don't-care set is

Dloc(y)={w∈{0,1}k:ϕ(x)=w⇒x∈ODC(y) for all x}.D_{\mathrm{loc}}(y) = \{w \in \{0,1\}^k : \phi(x) = w \Rightarrow x \in \mathrm{ODC}(y) \text{ for all } x\}.

It holds the fanin values that never occur, the satisfiability don't-cares, and the values whose every preimage is hidden. Any f′f' that equals fyf_y outside Dloc(y)D_{\mathrm{loc}}(y) is a safe replacement: by the freedom above, the global function changes only at vectors xx with ϕ(x)∈Dloc(y)\phi(x) \in D_{\mathrm{loc}}(y), and these lie in ODC(y)\mathrm{ODC}(y). The local form can lose freedom, since a fanin value with one hidden and one visible preimage must keep its value.

One fanout. If yy has exactly one fanout vv, then

ODC(y)=ODC(v)∪{x:∂fv∂y=0 at x},\mathrm{ODC}(y) = \mathrm{ODC}(v) \cup \Big\{x : \frac{\partial f_v}{\partial y} = 0 \text{ at } x\Big\},

where the derivative of the local function fvf_v is taken with its other fanins at their values for xx. Proof. All paths from yy to the outputs pass through vv, and the other fanins of vv do not depend on yy. Flipping yy at xx either leaves vv the same, when ∂fv/∂y=0\partial f_v / \partial y = 0 at xx, or flips vv, and then the outputs stay the same exactly when x∈ODC(v)x \in \mathrm{ODC}(v). □\square In a network where every internal node has one fanout, this rule computes all ODCs from the outputs back to the inputs.

Compatible don't-cares. Sets D1,…,DrD_1, \ldots, D_r for nodes y1,…,yry_1, \ldots, y_r are compatible if every simultaneous change of each yiy_i inside DiD_i keeps all outputs. The full sets ODC(y1),…,ODC(yr)\mathrm{ODC}(y_1), \ldots, \mathrm{ODC}(y_r) are not compatible in general, so a tool that simplifies many nodes in one pass needs compatible subsets. Savoj and Brayton (1990) compute such compatible observability don't-cares by putting the nodes in an order and giving each node only the vectors that stay hidden whatever the earlier nodes do inside their own sets.

Examples and non-examples

Examples. The inputs are a,b,ca, b, c, and the vectors are written abcabc.

  • Simplification. Let y=a+by = a + b and the only output z=yaˉz = y \bar{a}. Then z∣s=0=0z|_{s=0} = 0 and z∣s=1=aˉz|_{s=1} = \bar{a}, so ∂z/∂s=aˉ\partial z / \partial s = \bar{a} and ODC(y)={a=1}\mathrm{ODC}(y) = \{a = 1\}, the four vectors 100,101,110,111100, 101, 110, 111. Every vector with a=1a = 1 maps to fanin values with a=1a = 1, so Dloc(y)={(a,b):a=1}D_{\mathrm{loc}}(y) = \{(a, b) : a = 1\}. On the care set a=0a = 0, y=by = b, so yy can become the wire bb, and z=baˉz = b \bar{a} is the same function. This saves one literal and one node.
  • Two outputs. Add the output z2=y+cz_2 = y + c. Then ODC2(y)={c=1}\mathrm{ODC}_2(y) = \{c = 1\}, and ODC(y)={a=1}∩{c=1}={101,111}\mathrm{ODC}(y) = \{a = 1\} \cap \{c = 1\} = \{101, 111\}. Now Dloc(y)D_{\mathrm{loc}}(y) over the fanins a,ba, b is empty, since the fanin value (1,0)(1, 0) comes from both 101101, which is hidden, and 100100, which is not. No SOP of one literal agrees with a+ba + b off the ODC, so yy stays as it is.
  • Reconvergent fanout. Let y=aby = a b feed two buffers u=yu = y and v=yv = y, and let z=uvz = u v, so z=abz = a b. For the edge into uu alone, uu is hidden when v=0v = 0, so its ODC is {y=0}\{y = 0\}, the three vectors 00,01,1000, 01, 10 over aba b, and the same holds for vv. The ODC of yy itself is empty, because z=yz = y. Taking the intersection of the ODCs of the fanout edges would claim that yy may become the constant 1, which makes z=1z = 1. So the one-fanout rule does not extend to several fanouts by intersection.
  • Two nodes at once. Let y1=ay_1 = a, y2=ay_2 = a and z=y1+y2z = y_1 + y_2 over one input aa. Each node has ODC={a=1}\mathrm{ODC} = \{a = 1\}, since the other node is 1 there. Each one alone may become the constant 0. Both at once give z=0z = 0, not aa. The compatible sets in the order y1,y2y_1, y_2 are {a=1}\{a = 1\} for y1y_1 and ∅\emptyset for y2y_2.

A script checked each example on all input vectors.

Non-examples.

  • A vector that never occurs at the primary inputs is an input don't-care of the whole circuit, not an observability don't-care. The definition above does not put it in ODC(y)\mathrm{ODC}(y), although tools often add both kinds to the don't-care set of a node.
  • Let a node ww have the fanins y=aby = a b and aa. The fanin value (y,a)=(1,0)(y, a) = (1, 0) of ww never occurs. It is a satisfiability don't-care of that node. It is in DlocD_{\mathrm{loc}}, but it is not a vector of the primary inputs, so it is not in any ODC.
  • A node that drives a primary output directly, with no external don't-cares on that output, has an empty ODC, since ∂z/∂s=1\partial z / \partial s = 1 for z=sz = s.
  • An ODC is not a timing or test property. A node that is hidden at a vector is still computed, and it can still be on a slow path.

References

  1. The use of observability and external don't cares for the simplification of multi-level networks, observability don't cares of the nodes of a network, the computation of subsets of them, and compatible don't cares for several nodes
  2. Robert K. Brayton, Gary D. Hachtel and Alberto L. Sangiovanni-Vincentelli, Multilevel logic synthesis, Proceedings of the IEEE 78(2), 1990, pages 264 to 300, the don't cares of a node in a Boolean network, satisfiability and observability don't cares, and node simplification
  3. Giovanni De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994, Chapter 8, Multiple-Level Combinational Logic Optimization, the sections on don't care conditions in multiple-level networks

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/TPSGJ3/text.yaml