Desk summary
- 01Two model kinds: a specification model holds HLRs only; a design model holds LLRs and/or architecture (and anything code is generated from). Never both. Always requirements above the model.
- 02DO-331 keeps DO-178C’s objectives and adds model-specific ones: model standards, identification of non-contributing model elements, simulation cases/procedures/results correctness, and model coverage analysis as an activity.
- 03Simulation can earn credit for model-level objectives; it never replaces testing of the executable object code on the target.
- 04Model coverage (unintended function in the model) and structural coverage (code) are different and both are expected.
- 05Code generator: verify its output (common) or qualify it at TQL-1 for Level A (rare and costly). Verification tools: TQL-5, or TQL-4 if their output justifies reducing other activities.
Model kinds
Specification model vs design model
Specification model
Design model
DO-331 model usage examples (Table MB.1-1, summarised) — details in Specification vs Design Models
| Example | Requirements above the model | HLRs | LLRs / architecture | Typical code |
|---|---|---|---|---|
| 1 (most common) | Requirements allocated to software | Textual HLR | Design model | Generated |
| 2 | Requirements from which the model is developed | Specification model | Design model | Generated |
| 3 | Requirements from which the model is developed | Specification model | Textual LLR / design description | Hand-written |
| 4 | System-level requirements (they take the HLR role) | — (requirements above the model) | Design model built by the software team | Generated |
| 5 | System-level requirements plus a design model from the system process | — (requirements above the model) | Design model received from systems | Generated |
Pitfall
Instant red flag
A single model with nothing above it except “implement the model”. See MBD Pitfalls.
What DO-331 changes
DO-178C area → DO-331 change
| Area | DO-331 adds or changes |
|---|---|
| Planning | Plans say what each model represents, which supplement applies where, simulation credit sought, model standards, simulator qualification rationale |
| Standards | A Software Model Standard per model kind (§MB.11.23): language, allowed elements, style, complexity limits, tool constraints, trace and derived-requirement methods |
| Development | Model elements that do not contribute to requirements or architecture (comments, annotations) must be identified |
| Libraries | Model element libraries need assurance to the software level; unassured elements prohibited |
| Reviews & analyses | Apply to models; model standard conformance added; model simulation may assist |
| Simulation | May satisfy some verification objectives; adds objectives that simulation cases, procedures and results are correct |
| Coverage | Model coverage analysis for design models (§MB.6.7), listed as an activity; structural coverage of code still required |
| Life-cycle data | Software Model Standard (§MB.11.23); SVCP/SVR include simulation cases, procedures and results |
Verification methods and the credit they can earn
Method → what it supports → what it cannot replace
| Method | Supports | Does not replace |
|---|---|---|
| Model review (checklist) | Compliance, accuracy, consistency, verifiability, trace of model content | Testing of EOC |
| Automated model-standard checks | Conformance to model standard (if checker qualified, without manual re-check) | Review of intent and correctness |
| Formal design-error / property analysis | Accuracy & consistency (overflow, divide-by-zero, ranges), dead logic, property compliance | EOC testing; undecided results are not proofs |
| Requirement-based simulation | Model compliance with requirements above it; robustness of the model; feeds model coverage | A-6 testing of EOC on target |
| Model coverage analysis | Detects unintended function and missing tests in the design model | Structural coverage of code |
| Generated tests | Coverage-gap finding; model/code equivalence (back-to-back) | Requirement-based tests |
| Source-to-model review / inspection | Code complies with and traces to the design model (A-5) | EOC testing; structural coverage |
| Coding-standard and static analysis | Code standards, accuracy & consistency, run-time error absence | Requirement-based testing |
| SIL | Early model/code equivalence on host; engineering coverage | Target compatibility |
| PIL / target testing | EOC compliance and robustness (A-6); structural coverage on target code | — |
Coverage types
Coverage quick reference
| Coverage | Measured on | Purpose | Required for |
|---|---|---|---|
| Requirements coverage | Requirements ↔ tests | Every requirement verified (normal + robustness) | All levels (A-7) |
| Model coverage | Design model elements (decisions, conditions, MC/DC, states, transitions, lookup ranges) | Find unintended function / missing tests in the model | Design models (§MB.6.7 activity) |
| Statement coverage | Source code | Every statement executed | Levels A, B, C |
| Decision coverage | Source code | Every decision both ways | Levels A, B |
| MC/DC | Source code | Each condition shown to independently affect its decision | Level A |
| Object-code analysis | Object vs source | Code added by the compiler is verified | Level A where object code is not traceable to source |
| Data & control coupling | Interfaces between components | Tests exercised the couplings | Levels A, B, C |
Code-generation strategies
Generator choices
| Strategy | Generator qualification | Code-level verification still needed | Typical use |
|---|---|---|---|
| Unqualified generator, full verification | None | Review (manual or qualified inspector), standards, static analysis, testing, structural coverage | Most common; flexible tool updates |
| Unqualified generator + qualified source-to-model inspector | Inspector qualified (TQL-5/4) | Inspector replaces manual review; testing and coverage remain | Large generated code bases |
| Qualified generator (Level A TQL-1) | TQL-1 (TQL-2 at B…) | Credit on some A-5 objectives; EOC testing and coverage still expected | Synchronous-language toolchains, high reuse |
| Hand-written code from design model | N/A | Full DO-178C coding and verification | Small components, drivers, legacy |
Data items and tool qualification quick map
Life-cycle data on an MBD project
| Data item | Model-based content |
|---|---|
| PSAC / SDP / SVP | Model usage pattern, supplement applicability, simulation credit, tool qualification |
| Software Model Standard (§MB.11.23) | One per model kind |
| SRD | Textual HLRs or specification model + trace |
| SDD | Design model (and description exported from it), data dictionaries, libraries |
| Source code / EOC | Generated code, hand code, build records |
| SVCP | Review/analysis procedures, simulation cases & procedures, executable test cases & procedures |
| SVR | Review checklists, check reports, simulation results, model & code coverage, analysis reports |
| Trace data | Requirement ↔ model element ↔ code ↔ test links |
| SECI / SCI | Exact tool versions, model checksums, configuration sets, libraries |
Tool qualification at a glance (Level A/B)
| Tool | Usually | TQL if qualified |
|---|---|---|
| Modeller / simulator | Not qualified (output verified); simulator qualified if simulation credit relies on it | TQL-5 (verification use) |
| Code generator | Not qualified, output verified | TQL-1 (A) / TQL-2 (B) |
| Model-standard checker, model coverage, test manager, report generator | Qualified when reports are evidence | TQL-5 |
| Source-to-model inspector, prover, bug finder | Qualified | TQL-5, or TQL-4 when output justifies reducing other activities |
| Compiler | Not qualified | — (EOC testing) |
Model
An unambiguous abstract representation of aspects of a system used for analysis, verification, simulation or code generation.
Specification model
A model expressing high-level requirements only.
Design model
A model expressing low-level requirements and/or architecture; any model used to produce code.
Model simulator
The tool or device that executes a model to demonstrate its behaviour for verification or validation.
Model coverage analysis
Analysis of which parts of a design model were not exercised by requirement-based verification, to detect unintended function.
Non-contributing element
A model element (comment, annotation, layout) that implements no requirement or architecture and must be identified as such.
SIL / PIL
Software-in-the-loop (generated code on host) / processor-in-the-loop (generated code on the target processor).
Back-to-back testing
Running the same inputs through model and code and comparing outputs to show equivalence.
Dead logic
Model logic whose outcomes can never occur under the declared input ranges.
TQL
Tool Qualification Level 1–5 from DO-178C Table 12-1, governing the DO-330 data needed.
Practitioner tip
Where to go next
Concepts: MBD in Plain Terms, DO-331: What Changes, Specification vs Design Models. Practice: End-to-End Workflow, Case Study, Tool Map.