ISO 26262 Part 6 Clause 9 Requirement
ISO 26262 Part 6 Clause 9.4.2 requires that for software units with ASIL-B and above, the equivalence of the model (specification) and the generated code (implementation) is verified by back-to-back testing. The standard specifies:
- The same test cases used for MiL testing are re-run in SiL mode
- Output signals are compared; differences must be within the quantisation error of the production data types
- Any difference larger than quantisation error is a code generation defect that must be resolved
The back-to-back comparison is not just a quality check -- it is a safety argument: it demonstrates that the generated code faithfully implements the algorithm specified in the model, closing the gap between the design artefact (model) and the implementation artefact (code).