AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Model-Based Development (DO-331)

Mapping Tools to Objectives

Which kind of tool supports which objective, and which need qualification under DO-330.

Desk summary

  • 01A model-based toolchain has three kinds of tools: development tools whose output becomes airborne software (modeller, code generator, compiler), verification tools that check things (model checkers, test managers, coverage, static analysers), and support tools (requirements, CM, reporting).
  • 02Whether a tool needs qualification depends on two questions: could its output insert an error, or could it fail to detect one — and are you using it to eliminate, reduce or automate a DO-178C activity without verifying its output?
  • 03DO-178C Table 12-1 turns the answer (criterion 1, 2 or 3) plus the software level into a TQL; DO-330 then says what qualification data is needed at that TQL.
  • 04Most MBD programmes leave the modeller and code generator unqualified and verify their output; they qualify the verification tools (TQL-5, or TQL-4 when the tool’s output also justifies dropping other activities).
  • 05The case study’s one-utility-per-activity scripts make a good backbone for mapping: each utility = one activity = one set of objectives = one tool with a qualification decision.

Intuition

Think of it like a kitchen inspection

The oven (code generator) actually makes the food; if it is faulty it can poison someone, so either you certify the oven to the highest standard or you taste-test every dish. The thermometer (a verification tool) cannot poison anyone, but if it reads wrong you might serve undercooked chicken — so if you rely on it instead of cutting the chicken open, it needs calibrating. The recipe book printer (report generator) only needs checking if nobody re-reads the recipes it prints.

The decision: does this tool need qualifying?

DO-178C Table 12-1 — TQL by criterion and software level

CriterionLevel ALevel BLevel CLevel D
1 — output can insert an error into airborne softwareTQL-1TQL-2TQL-3TQL-4
2 — verification tool whose output justifies reducing other processesTQL-4TQL-4TQL-5TQL-5
3 — verification tool that could fail to detect an errorTQL-5TQL-5TQL-5TQL-5

Note

DO-178B vs DO-178C

DO-178B had only “development” and “verification” tool categories. DO-178C and DO-330 introduced the three criteria and five TQLs, which created the criterion-2 case — exactly the situation of many MBD verification tools, such as an automated source-to-model inspector or a static-analysis prover that is used to cut manual review effort. See Tool Qualification.

The big map: activity → tool → objective → qualification

Model-based activities and the tools that support them

ActivityTool categoryExample toolsObjectives supported (DO-178C / DO-331)Qualification need
Requirements capture & traceRequirements management, link managerDOORS-class tools, model-integrated requirement editorsA-2 (HLR, derived HLR), trace objectives in A-3/A-4Usually none: links and reports are reviewed
Specification / design modellingDataflow + state-machine modellerSimulink/Stateflow, SCADE Suite, other synchronous-language editorsA-2 (architecture, LLRs)None: model is reviewed and verified
Model-standard conformanceModel rule checkerModel Advisor-type checkers, SCADE checkers, custom rule enginesA-3/A-4 conformance-to-standard objectives (model standard, §MB.11.23)TQL-5 if the report replaces a manual standards review
Model metrics & complexityModel metrics toolBuilt-in metric dashboardsSupports standards conformance and verifiabilityUsually none (informational)
Design-error / dead-logic analysisFormal model analyserDesign Verifier-type provers, model checkersA-4 accuracy & consistency, verifiability; dead logic for coverage resolutionTQL-5 if results replace review or analysis
Property proving on modelsModel checker / proverProperty provers on synchronous modelsA-3/A-4 compliance (with DO-333 if formal methods credit)TQL-5 (or per DO-333 plan)
Requirement-based simulationSimulator + test managerSimulation engine, test harness/sequence toolsA-4 compliance with HLRs; MB simulation-correctness objectivesSimulator/test manager TQL-5 if simulation results earn credit without other check
Model coverageModel coverage analyserModel coverage tools (decision, condition, MC/DC on models)§MB.6.7 activity supporting A-7 (detect unintended function in the design model)TQL-5 when its report is used as evidence
Automatic test generationTest-case generatorFormal test generatorsSupplementary LLR tests; coverage closure assistanceTQL-5 if tests earn credit; independence issues if same tech as code generator
Design description exportReport generatorModel-to-document generatorsProduces SDD content (A-2 output)TQL-5 if the document is not reviewed against the model
Code generationAutomatic code generatorEmbedded Coder-type, qualified KCG-typeA-2 (source code); with qualification, A-5 creditUnqualified + verify output, or TQL-1 (Level A) to drop code verification
Source-to-model verificationModel-to-code inspectorCode Inspector-type toolsA-5 compliance with LLRs, traceability to LLRsTQL-5 or TQL-4 depending on credit claimed (the case-study plan template classes it as criterion 2, i.e. TQL-4 at A/B)
Coding-standard checkCoding-rule checkerMISRA C checkers in static analysersA-5 conformance to code standardTQL-5 (TQL-4 if used to drop other activities)
Defect detectionBug-finding static analyserBug-finder-type toolsA-5 accuracy & consistencyTQL-5 / TQL-4 depending on credit
Run-time error proofAbstract interpreterCode Prover-type, Astrée-typeA-5 accuracy & consistency (overflow, divide-by-zero, bounds); supports A-6 robustnessTQL-5, or TQL-4 if it replaces testing/reviews
SIL / PIL / target testingTest harness + executionTest managers with SIL/PIL modes, target rigsA-6 (PIL/target), A-7 test procedure/result correctnessTQL-5 if pass/fail verdicts are not reviewed
Structural code coverageCode coverage analyserInstrumenting coverage toolsA-7 statement / decision / MC/DCTQL-5
Data & control couplingCoupling / call-graph analyserStatic call-graph and data-flow toolsA-7 data and control couplingTQL-5 if analysis relied on
WCET & stackTiming / stack analyserStatic WCET tools, stack analysersA-5/A-6 target compatibilityTQL-5 if results relied on
BuildCompiler, linker, loaderTarget cross-compilersA-2 (EOC); verified via EOC testingNone per DO-178C (verified by testing)
Configuration managementVersion control, CM systemGit/SVN/PLM, model-aware diff/mergeA-8None (process controls)

Pitfall

Qualifying the tool but not the way you use it

A qualification kit proves the tool meets its operational requirements in a reference environment. It does not prove your installation, settings, check configuration, compiler or model constructs are within those requirements. DO-330 expects user activities: installing in the operational environment, running the kit’s tests there, reviewing known problems, and constraining usage to the qualified features (for example only inspector-supported blocks).

The case-study utilities as a concrete backbone

The case study wraps every activity in a script named after what it verifies. Reading the names as sentences gives a neat mental model: verify model to requirements, verify source code to model, verify object code to requirements. The table below maps each one.

Case-study utilities mapped to objectives and tools

UtilityWhat it doesTool category usedObjectives supportedQualification kit in DO_06
checkModelStdsRuns the model-standard check set and writes a conformance reportModel rule checkerA-4 LLR/architecture conform to standards (model standard)Verification & validation tool set
computeModelMetricsMeasures model size/complexityModel metricsSupports standards & verifiability(informational)
detectDesignErrsFormal analysis for overflow, divide-by-zero, ranges; option for dead logicFormal model analyserA-4 accuracy & consistency; coverage resolutionDesign verifier
verifyModel2ReqsRuns HLR-based simulation tests on the model; collects model coverageSimulator, test manager, model coverageA-4 compliance with HLRs; MB simulation objectives; §MB.6.7Test manager; V&V tool set
genLowLevelTestsGenerates tests for model-coverage objectives not reached by HLR testsTest generatorSupplementary LLR testing, coverage closureDesign verifier
verifyModel2LowLevelTestsRuns generated tests on the model with coverageSimulator, test managerLLR test coverage on the modelTest manager
mergeModelCoverageMerges HLR-based and generated-test model coverageModel coverage§MB.6.7 evidenceV&V tool set
genSrcCodeGenerates C for a model (top or referenced)Code generatorA-2 source code developedNone — output verified
verifySrcCode2ModelInspects generated code against the modelSource-to-model inspectorA-5 code complies with and traces to LLRsCode inspector
checkCodeStdsMISRA C:2012 rule check of generated codeCoding-rule checkerA-5 conformance to code standardBug finder
detectCodingErrs / findCodeDefectsDefect detection and code metricsBug-finding analyserA-5 accuracy & consistencyBug finder
proveCodeQualityProves absence of run-time errors across the model hierarchyAbstract interpreterA-5 accuracy & consistency; supports A-6 robustnessCode prover
computeCodeMetricsCode metricsBug-finding analyserSupports verifiability, standardsBug finder
verifySrcCode2ReqsRuns HLR tests on generated code in SIL; code coverageTest manager (SIL), code coverageEarly A-6-style evidence on host; engineering coverageTest manager
verifySrcCode2LowLevelTestsRuns generated tests in SIL; code coverageTest manager (SIL)Model/code equivalence evidenceTest manager
mergeCodeCoverage / mergeCodeCoveragePILMerges code coverage from HLR and generated tests (host or target)Code coverageA-7 structural coverageV&V tool set
verifyObjCode2ReqsRuns HLR tests on target code in PILTest manager (PIL) + targetA-6 EOC complies with HLRs; target compatibilityTest manager
verifyObjCode2LowLevelTestsRuns generated tests on target in PILTest manager (PIL) + targetA-6 EOC complies with LLRsTest manager
genSDD / genReqReportExports design descriptions and requirement reportsReport generatorSDD and SRD contentReport generator
getModelChecksumStamps model checksums into resultsModel environmentConfiguration identification (A-8)—
rmiSetup / rmiSync2DoorsStandardises link settings; synchronises with an external requirements toolRequirement link managerTrace dataNone — links reviewed

What is in a qualification kit folder

The case study’s DO_06_ToolQualification contains seven folders — bug finder, code prover, code inspector, design verifier, report generator, test manager, and the model verification & validation tool set — each filled by exporting the vendor’s qualification-kit project. A kit is not a certificate; it is a head start on the DO-330 data the applicant must own.

Typical DO-330 qualification data in a kit

ItemPurposeWho completes it
Tool Qualification Plan (TQP)States TQL, credit sought, qualification approachApplicant (from vendor template)
Tool Operational Requirements (TOR)What the tool must do in operation, including which checks/features are qualifiedVendor; applicant confirms fit to use
Tool test cases and proceduresDemonstrate each TOR in the operational environmentVendor supplies; applicant runs
Tool test resultsPass/fail evidence on the applicant’s installationApplicant
Known problems / limitationsErrata that may affect the projectVendor; applicant assesses impact
Tool Configuration IndexExact versions, patches, environmentApplicant
Tool Accomplishment Summary (TAS)Summary of qualification for the authorityApplicant

Practitioner tip

Use only qualified checks

Rule-checking tools often ship hundreds of checks, but only a subset is covered by the qualification kit. Split your model-standard check configuration into a qualified set (whose reports you take as evidence) and an advisory set (whose findings are reviewed like any other review aid). The case study keeps separate check configurations for exactly this reason.

Code-generation strategy drives the whole map

Two generator strategies

Unqualified generator + verified output

▸Generator output treated like hand code
▸Code review automated by a qualified source-to-model inspector or done manually
▸Full code-level verification: standards, static analysis, testing, structural coverage
▸Tool updates are cheaper; more verification each regeneration

Qualified generator (TQL-1 at Level A)

▸Credit for code-related A-5 objectives may be claimed on the qualified generator
▸EOC testing (A-6) and structural coverage of EOC still required in most approaches
▸Strict model subset and generator options; any change re-triggers qualification evidence
▸Expensive tool, cheaper per-change verification

What the auditor looks for

Questions reviewers ask about the toolchain

Which tool versions, patches and settings were used for each piece of evidence (SECI)? Which credit is claimed per tool and where is its TQP? Were kit tests run in your environment? How do you ensure only qualified checks and supported blocks were used? If the code generator is unqualified, show me the evidence for every A-5 objective on the generated code.

Self-check

On a Level A project, a static analyser that proves absence of run-time errors is used both to verify the code and to justify reducing robustness testing. What TQL applies?

Sources & further reading

  • DO-178C §12.2 and Table 12-1 (tool qualification criteria and TQLs)
  • DO-330 Software Tool Qualification Considerations (TQL-1 to TQL-5 objectives and data)
  • DO-331 §MB.6.7, §MB.6.8, §MB.11.23
  • Rierson, Developing Safety-Critical Software (2013), ch. 13 (tool qualification) and ch. 14 (MBD tool risks)
  • MathWorks DO-178C/DO-331 case study project: tools/utilities/verification scripts, DO_06_ToolQualification folders, PSAC template tool tables
  • MathWorks — DO Qualification Kit (DO-178C/DO-331) ↗
  • MathWorks — Simulink Code Inspector ↗

← Previous

Case Study: Helicopter Flight Control

Model-Based Development (DO-331)

Next →

MBD Pitfalls & Auditor Findings

Model-Based Development (DO-331)

On this page

The decision: does this tool need qualifying?The big map: activity → tool → objective → qualificationThe case-study utilities as a concrete backboneWhat is in a qualification kit folderCode-generation strategy drives the whole map