Definitionadvanced
Safe replaceability
Also called Pixley equivalence.
A design safely replaces another if every output sequence that it can give from any power-up state, the old design can also give from some power-up state.
Safe replaceability is a correctness notion for designs that have no reset, so that they can power up in any state. A new design safely replaces an old design if, for every power-up state of and every input sequence, some power-up state of gives the same output sequence. Then no environment that only drives the inputs and watches the outputs can tell that was replaced, because whatever does, could also have done. Singhal and Pixley (1994) defined it. It needs no initial state and no aligning input sequence. So it differs from sequential equivalence checking from a reset state, which is a reachability question on the product machine, and from the earlier notion of Pixley (1992), which asks that some input sequence bring the two designs to states with the same behaviour.
Definition
Let and be deterministic Mealy machines with the same inputs and outputs and no initial state. For a state and an input sequence , write for the output sequence that gives from on .
is a safe replacement for , written , if
The state may depend on . A state of that agrees with on every input sequence is not required.
Proposition 1 (preorder). is reflexive and transitive, and it is not symmetric.
Proof. Reflexive: take . Transitive: if and , then for and there is with , and then with . The fanout example below is not symmetric.
Proposition 2 (a language inclusion). Let be read as a nondeterministic machine in which every state is initial, and let be the set of input-output sequences of . Then if and only if , where also starts in every state.
Proof. Both sides say that every pair equals for some .
So an exact check is an inclusion into a nondeterministic machine. It follows sets of states of that are still consistent with the outputs seen, as in the subset construction, and fails exactly when some input sequence from some state of makes that set empty. The number of such sets can be exponential in the number of states of , which is why cheaper sufficient tests, such as a simulation relation (see below), are attractive.
Examples and non-examples
Retiming forward across a fanout. has one latch with next value and two outputs and . Retiming the latch forward across the fanout gives with two latches , both with next value , and outputs and .
- is a safe replacement for . For a state of , take ; the outputs then agree on every input sequence.
- is not a safe replacement for . The power-up state gives on the first cycle for every input, and always gives . So no state of matches.
- After one clock cycle, is in a state with , and from then on it behaves like . One cycle of any input brings every pair of states of the two designs to a pair with the same behaviour, so the two designs are equivalent in the sense of Pixley (1992), but not in both directions in the sense of safe replacement. Safe replacement counts the first cycle; the earlier notion does not.
Singhal, Pixley, Rudell and Brayton (1995) studied this effect of retiming in general: a retimed circuit need not be a safe replacement, but it becomes one after a bounded number of clock cycles. We do not prove their bound here.
A different state encoding. If is with its states renamed by a bijection, then and : take the matching state. This is the case of state assignment with all codes used.
Safe replacement, but not equivalence from reset. Let be a 2-bit counter that outputs 1 when it holds 3, and let output 1 when it holds 2. Both count up by 1 on every clock and ignore the input. From state , outputs 1 at the clocks with , and from state outputs 1 at the same clocks. So each state of is matched by a state of for all input sequences, the reverse holds in the same way, and the two are safe replacements of each other. With a reset to 0, the same designs are not equivalent: the first 1 comes at clock 2 in and at clock 3 in . Without a reset, the environment cannot know the phase.
Related definitions
- Sequential equivalence checking fixes one initial state for each design and asks for equal outputs. It is the right notion when a reset exists.
- The earlier notion of Pixley (1992) asks for an aligning sequence after which the two designs are in states with the same behaviour. Safe replacement needs no such sequence and holds from the first cycle.
- Trace equivalence of transition systems is the symmetric closure of the inclusion in Proposition 2, with all states initial.
- A simulation relation from to that relates each state of to some state of is a sufficient condition for : the related state matches on every sequence at once. It is not necessary, because safe replacement lets the state of depend on .
- Latch mapping with a combinational check gives equivalence from all states of a matched pair, so it also gives safe replacement in both directions when the mapping is a bijection of all latches.
References
- V. Singhal and C. Pixley, The verification problem for safe replaceability, CAV 1994, LNCS 818, 311 to 323, the definition of safe replacement with no assumption on the initial state, and the methods to check it
- C. Pixley, V. Singhal, A. Aziz and R. K. Brayton, Multi-level synthesis for safe replaceability, ICCAD 1994, 442 to 449, the use of safe replacement as the correctness notion for sequential logic optimization
- V. Singhal, C. Pixley, A. Aziz and R. K. Brayton, Theory of safe replacements for sequential circuits, IEEE TCAD 20(2), 249 to 265, 2001, the full theory, its comparison with other notions of equivalence for designs without reset, and its use in any environment
- V. Singhal, C. Pixley, R. L. Rudell and R. K. Brayton, The validity of retiming sequential circuits, DAC 1995, 316 to 321, when a retimed circuit is a safe replacement of the original, and the delay after which it becomes one
- C. Pixley, A theory and implementation of sequential hardware equivalence, IEEE TCAD 11(12), 1469 to 1478, 1992, equivalence of designs without reset based on aligning sequences, the earlier notion that safe replacement is compared with
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 749N61 Edit this page History Report an error Markdown