PostHeaderIcon MSP430G2152: Three Different Standards for a Successful Copy

Two people can agree that a copy works and mean different things. One means the file compares equal. One means the product does what the original did. One means the product behaves the same in every circumstance the original was ever exposed to, including the ones nobody wrote down.

Those are three different claims with three different costs, and a duplication job that does not establish which one is required will be judged against the strictest one available at the moment of delivery.

The three standards

Byte identity is the easiest to state and the easiest to verify: the destination’s array, read back, equals the source’s array. It is also the weakest claim, because two devices with identical arrays are not necessarily identical in behaviour.

Functional equivalence means the destination performs the product’s function: it starts, it responds, it controls what it is supposed to control. This is what most customers actually need, and it is verifiable with a test procedure rather than a memory comparison.

Behavioural equivalence means the destination is indistinguishable from the source under any input, including timing, power consumption, start-up transients and edge-case behaviour. This is a research programme, not a test.

Standard Evidence required Cost What it misses
Byte identity Readback comparison Minutes Everything about behaviour
Functional equivalence Test procedure on the product Hours Untested conditions
Behavioural equivalence Exhaustive comparison across conditions Weeks Nothing, if done fully

Why byte identity is not enough

The array does not contain everything that determines behaviour. Two things it does not contain are the calibration of the individual die, which lives outside the array, and the analog characteristics of the silicon, which are not stored anywhere.

A destination whose array matches the source exactly will therefore differ from it in clock accuracy if the calibration was carried across, and will differ in it in the opposite direction if it was not. Either way the arrays are identical and the devices are not.

There is also a class of difference that byte identity actively conceals: a copy that is byte-identical to a corrupt source is a faithful reproduction of a fault. If the source’s image contained a damaged constant, the copy inherits it and passes every comparison.

Why behavioural equivalence is not achievable

The claim requires knowing the full input space, which nobody does. It also requires reproducing characteristics that are properties of a specific die, which cannot be copied at all.

What can be done is a bounded version: define the conditions the product operates in, test at the corners of that region, and state the region in the delivery. That is a defensible claim, and it is honest about its boundary.

Designing the acceptance test

The useful approach is to build the test from the product’s function outward, in layers, and to stop adding layers when the marginal cost exceeds the marginal confidence.

  1. Does it start? Power cycle, confirm the device reaches its operating state within the expected time.
  2. Does it respond? Every external interface the product has, exercised with a known input, output compared against the source.
  3. Does it control? The actuator, display, or output path driven to a known state and measured.
  4. Does it measure? Any analog input swept across the product’s range, with the reading compared against the source at each point.
  5. Does it hold at the corners? Supply and temperature at the limits the product specifies, with the functional tests repeated.

Layers one to three catch the majority of duplication faults. Layer four catches the calibration errors that layer three cannot see. Layer five catches the ones that only exist at the edges, which is where field failures come from.

The comparison baseline

Every test above needs a source device in known-good condition, and that baseline is the part of the job that gets the least attention.

A source unit that has been in service for years is not a known-good reference. Its calibration may have drifted, its analog path may have aged, and its behaviour may differ from a new unit of the same product. Comparing a copy against it produces a copy that matches a worn original, which is not what the customer meant.

Where possible the baseline should be a unit the customer considers good, tested against its own specification before being used as a reference. Recording the baseline’s measurements with the delivery turns the acceptance test into something the customer can repeat.

What to write down

The delivery should state, explicitly:

  • which standard was met, in the terms above,
  • which conditions were tested and which were not,
  • the measurements taken on the baseline and on the copy, side by side,
  • the fields that were deliberately changed, and why,
  • the known differences that were accepted, and the reasoning.

The last item is the one that prevents arguments. Every duplication has known differences. Stating them at delivery converts a future complaint into a recorded decision.

Where the standards diverge in practice

A device used as a measurement instrument is usually held to functional equivalence at the corners, because its function is accuracy.

A device used as a controller is usually held to functional equivalence, because its function is sequence.

A device used in a safety path is held to something stricter than either, and that is a conversation to have before any work starts rather than after a device has been produced.

Matching the standard to the product is the judgement this article is asking for. Applying the strictest standard to everything makes the work unaffordable; applying the loosest makes it worthless.

Related reading

FAQ

Is byte identity ever the right standard? When the customer’s own process verifies it and accepts the limits.

Can behavioural equivalence be certified? Only within a stated envelope. Outside it, nothing is certified.

Why compare against a baseline device? Because a copy is only meaningful relative to something known to be good.

What if the source is not available? Then the standard is equivalence to a specification, which is a different project.

Conclusion

Decide the standard before the work. Byte identity is a file comparison, functional equivalence is a test procedure, and behavioural equivalence is a bounded claim about a stated envelope. Name the one you are delivering, test to it, and record the differences you accepted.

Comments are closed.