AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Desk Reference

MBD Cheat Sheet

DO-331 on one page: model kinds, verification methods, coverage and code-generation options.

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

▸Represents high-level requirements
▸Abstract: function, performance, interfaces, safety characteristics
▸No internal data structures, data flow or control flow of the software
▸Verified against system requirements (Table A-3 equivalents)
▸Needs its own model standard

Design model

▸Represents low-level requirements and/or architecture
▸Prescribes internal data structures, data flow, control flow
▸Any model used to generate code is a design model
▸Verified against the HLRs above it (Table A-4 equivalents) + model coverage
▸Needs its own model standard

DO-331 model usage examples (Table MB.1-1, summarised) — details in Specification vs Design Models

ExampleRequirements above the modelHLRsLLRs / architectureTypical code
1 (most common)Requirements allocated to softwareTextual HLRDesign modelGenerated
2Requirements from which the model is developedSpecification modelDesign modelGenerated
3Requirements from which the model is developedSpecification modelTextual LLR / design descriptionHand-written
4System-level requirements (they take the HLR role)— (requirements above the model)Design model built by the software teamGenerated
5System-level requirements plus a design model from the system process— (requirements above the model)Design model received from systemsGenerated

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

AreaDO-331 adds or changes
PlanningPlans say what each model represents, which supplement applies where, simulation credit sought, model standards, simulator qualification rationale
StandardsA Software Model Standard per model kind (§MB.11.23): language, allowed elements, style, complexity limits, tool constraints, trace and derived-requirement methods
DevelopmentModel elements that do not contribute to requirements or architecture (comments, annotations) must be identified
LibrariesModel element libraries need assurance to the software level; unassured elements prohibited
Reviews & analysesApply to models; model standard conformance added; model simulation may assist
SimulationMay satisfy some verification objectives; adds objectives that simulation cases, procedures and results are correct
CoverageModel coverage analysis for design models (§MB.6.7), listed as an activity; structural coverage of code still required
Life-cycle dataSoftware 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

MethodSupportsDoes not replace
Model review (checklist)Compliance, accuracy, consistency, verifiability, trace of model contentTesting of EOC
Automated model-standard checksConformance to model standard (if checker qualified, without manual re-check)Review of intent and correctness
Formal design-error / property analysisAccuracy & consistency (overflow, divide-by-zero, ranges), dead logic, property complianceEOC testing; undecided results are not proofs
Requirement-based simulationModel compliance with requirements above it; robustness of the model; feeds model coverageA-6 testing of EOC on target
Model coverage analysisDetects unintended function and missing tests in the design modelStructural coverage of code
Generated testsCoverage-gap finding; model/code equivalence (back-to-back)Requirement-based tests
Source-to-model review / inspectionCode complies with and traces to the design model (A-5)EOC testing; structural coverage
Coding-standard and static analysisCode standards, accuracy & consistency, run-time error absenceRequirement-based testing
SILEarly model/code equivalence on host; engineering coverageTarget compatibility
PIL / target testingEOC compliance and robustness (A-6); structural coverage on target code—

Coverage types

Coverage quick reference

CoverageMeasured onPurposeRequired for
Requirements coverageRequirements ↔ testsEvery requirement verified (normal + robustness)All levels (A-7)
Model coverageDesign model elements (decisions, conditions, MC/DC, states, transitions, lookup ranges)Find unintended function / missing tests in the modelDesign models (§MB.6.7 activity)
Statement coverageSource codeEvery statement executedLevels A, B, C
Decision coverageSource codeEvery decision both waysLevels A, B
MC/DCSource codeEach condition shown to independently affect its decisionLevel A
Object-code analysisObject vs sourceCode added by the compiler is verifiedLevel A where object code is not traceable to source
Data & control couplingInterfaces between componentsTests exercised the couplingsLevels A, B, C

Code-generation strategies

Generator choices

StrategyGenerator qualificationCode-level verification still neededTypical use
Unqualified generator, full verificationNoneReview (manual or qualified inspector), standards, static analysis, testing, structural coverageMost common; flexible tool updates
Unqualified generator + qualified source-to-model inspectorInspector qualified (TQL-5/4)Inspector replaces manual review; testing and coverage remainLarge 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 expectedSynchronous-language toolchains, high reuse
Hand-written code from design modelN/AFull DO-178C coding and verificationSmall components, drivers, legacy

Data items and tool qualification quick map

Life-cycle data on an MBD project

Data itemModel-based content
PSAC / SDP / SVPModel usage pattern, supplement applicability, simulation credit, tool qualification
Software Model Standard (§MB.11.23)One per model kind
SRDTextual HLRs or specification model + trace
SDDDesign model (and description exported from it), data dictionaries, libraries
Source code / EOCGenerated code, hand code, build records
SVCPReview/analysis procedures, simulation cases & procedures, executable test cases & procedures
SVRReview checklists, check reports, simulation results, model & code coverage, analysis reports
Trace dataRequirement ↔ model element ↔ code ↔ test links
SECI / SCIExact tool versions, model checksums, configuration sets, libraries

Tool qualification at a glance (Level A/B)

ToolUsuallyTQL if qualified
Modeller / simulatorNot qualified (output verified); simulator qualified if simulation credit relies on itTQL-5 (verification use)
Code generatorNot qualified, output verifiedTQL-1 (A) / TQL-2 (B)
Model-standard checker, model coverage, test manager, report generatorQualified when reports are evidenceTQL-5
Source-to-model inspector, prover, bug finderQualifiedTQL-5, or TQL-4 when output justifies reducing other activities
CompilerNot 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.

Sources & further reading

  • DO-331 §MB.1.6.2, §MB.6.7, §MB.6.8, §MB.11.23, Annex MB.A
  • DO-178C Table 12-1, Annex A
  • DO-330
  • Rierson, Developing Safety-Critical Software (2013), ch. 13–14

← Previous

SOI Readiness Checklists

Desk Reference

Next →

Glossary & Acronyms

Desk Reference

On this page

Model kindsWhat DO-331 changesVerification methods and the credit they can earnCoverage typesCode-generation strategiesData items and tool qualification quick map