Desk summary
- 01A model-based DO-178C/DO-331 project still walks the same life cycle — plan, requirements, design, code, integrate, verify, close out — but several boxes are now produced or checked by tools working on the model.
- 02The most common industrial pattern is: textual HLRs → design model (LLRs + architecture) → generated code. Specification models above the design model are optional and add a layer to verify.
- 03Each step has a gate: the outputs are reviewed, checked against standards, traced, and baselined before the next step consumes them.
- 04Simulation of the model earns credit only for objectives about the model; the executable object code must still be tested on the target (or a representative) against the requirements.
- 05Closing a model-based project means closing two coverage loops — model coverage on the design model and structural coverage on the generated code — plus the usual trace, data/control coupling and configuration evidence that feed the SAS.
Intuition
Think of it like building a house from a 3-D architectural model
The client’s brief (system requirements) becomes a written specification (HLRs). The architect builds a detailed 3-D model (the design model) that you can walk through and test before anything is built (simulation). A machine then cuts the timber straight from the model (code generation). But the building inspector still checks the real house — the walls, wiring and plumbing — not just the model, and wants to see that every room in the model was in the brief and every item in the brief has a room.
The workflow at a glance
Model-based development
Which model pattern are you running?
Before step one, decide what each model is. If the model is a design model, it carries LLRs and architecture, and you must have requirements above it (textual HLRs or a specification model). If you also use a specification model for the HLRs, it gets its own verification and its own model standard. A single model can never be both. See Specification vs Design Models for the usage patterns.
Step by step
Twelve steps from planning to the Software Accomplishment Summary
1. Plan the model-based life cycle
Inputs: system requirements, preliminary safety assessment, certification basis. Activities: write the PSAC and companion plans stating which life-cycle data each model represents, which supplement applies to which component (DO-178C for hand code, DO-331 for models), what simulation credit is sought, which tools need qualification and at which TQL. Write the requirements, design, code and model standards. Outputs: plans and standards (with tool qualification plans). Objectives: Table A-1 (and its MB counterpart). Gate: plans reviewed and agreed with the authority (SOI 1).
2. Capture and validate system requirements
Inputs: aircraft functions, safety assessment. Activities: allocate functions to software, assign the software level, define interfaces and performance. A system-level plant + controller model is often used here for design exploration and gain tuning — that model is a systems artefact, not yet software life-cycle data. Outputs: allocated system requirements with IDs. Gate: system requirements baselined and validated per the system process.
3. Develop the high-level software requirements
Inputs: allocated system requirements, requirements standard. Activities: write HLRs (textual or as a specification model) covering function, interfaces, ranges, rates, modes and failure behaviour; flag derived HLRs and send them to the safety process; link each HLR to its parent system requirement. Outputs: Software Requirements Data and trace data. Objectives: A-2 (HLRs developed, derived HLRs defined). Tools: a requirements-management tool, optionally a specification modelling tool.
4. Verify the HLRs
Activities: review for compliance with system requirements, accuracy, consistency, verifiability, conformance to the requirements standard, compatibility with the target and algorithm accuracy; review the trace. For a specification model add model-standard checks, and if simulation is used for credit, verify the simulation cases, procedures and results. Outputs: review records and checklists. Objectives: Table A-3. Gate: HLRs baselined; open issues logged as problem reports.
5. Build the design model
Inputs: baselined HLRs, model standard, approved block libraries, model templates and locked configuration sets. Activities: create the model hierarchy (the architecture), implement LLRs as subsystems, charts and functions, define data types, buses and parameters in controlled data dictionaries, link elements to HLRs, flag derived logic. Outputs: design model, data dictionaries, trace links, a design description exported from the model. Objectives: A-2 (architecture and LLRs developed, derived LLRs defined).
6. Statically verify the design model
Activities: run automated model-standard checks; perform model reviews with a checklist (compliance with HLRs, accuracy, consistency, target compatibility, verifiability, architecture consistency, partitioning); run formal design-error detection (overflow, division by zero, range violations, dead logic). Outputs: standard-conformance reports, review checklists, analysis reports with every finding dispositioned. Objectives: Table A-4 review/analysis objectives. Tools: model checkers, formal analysis tools (qualification TQL-5 if their output replaces a review).
7. Verify the design model dynamically (simulation)
Activities: write requirement-based simulation cases from the HLRs (normal range and robustness), build test harnesses, simulate, compare against expected results, and review cases, procedures and results. Measure model coverage and analyse every gap (missing test, missing requirement, derived logic, dead logic). Generated tests may be added to reach remaining coverage, with analysis. Outputs: simulation cases/procedures (SVCP), results and coverage reports (SVR). Objectives: A-4 compliance objectives, the MB simulation-correctness objectives, and the model-coverage activity of §MB.6.7.
8. Generate and build the code
Inputs: verified design model, locked code-generation configuration. Activities: generate C, produce the code-generation traceability report, integrate any hand-written code (drivers, scheduler, I/O), compile and link with the qualified build procedure. Outputs: source code, executable object code, build records. Objectives: A-2 (source code developed, EOC produced and integrated). Tools: code generator (TQL-1 only if its output will not be verified), compiler, linker.
9. Verify the source code
Activities: show that code complies with and traces to the model (manual review using the trace report, or a qualified source-to-model checker); check the code standard (e.g. MISRA C subset); run static analysis or abstract interpretation for run-time errors; review integration outputs (link map, memory). Outputs: code review records, conformance and analysis reports. Objectives: Table A-5.
10. Test the executable object code
Activities: run the HLR-based and LLR-based tests, including robustness, against the EOC — ideally reusing the simulation cases — on host (SIL) for early feedback and on the target processor (PIL) or the integration rig for credit; perform hardware/software integration testing; measure worst-case execution time and stack. Outputs: executable test procedures and results. Objectives: Table A-6 (compliance and robustness with HLRs/LLRs, compatibility with target). Gate: all tests pass or failures are problem reports.
11. Close the coverage loops
Activities: review test procedures and results; confirm requirement coverage; measure structural coverage of the code to the level required (statement, decision, MC/DC); analyse data and control coupling; at Level A analyse object code not traceable to source. Merge coverage from requirement-based and supplementary tests and justify every remaining gap. Outputs: coverage reports and analyses. Objectives: Table A-7.
12. Close out the project
Activities: freeze the SCI and SECI (including exact versions of every modelling, generation and verification tool and every library), complete SQA and conformity reviews, close or disposition all problem reports, and write the SAS summarising deviations from plans. Objectives: Tables A-8 to A-10. Gate: SOI 4 and final authority acceptance.
Inputs, outputs and gates in one table
Step-by-step data flow
| Step | Key inputs | Key outputs (data items) | Primary objectives | Typical tool categories |
|---|---|---|---|---|
| Planning | System reqs, safety assessment | PSAC, SDP, SVP, SCMP, SQAP, standards incl. model standard, TQPs | A-1 | Document templates, CM |
| HLR development | Allocated system reqs | SRD, trace data | A-2 (1, 2) | Requirements management; specification modelling |
| HLR verification | SRD, requirements standard | Review records | A-3 | Review tooling; spec-model checkers |
| Design model | HLRs, model standard, libraries, templates | Design model (SDD), data dictionaries, links | A-2 (3, 4, 5) | Dataflow/state-machine modelling environment |
| Model static verification | Design model | Standard-check reports, review checklists, design-error reports | A-4 reviews/analyses | Model checkers, formal design analysers |
| Model simulation | Design model, HLR-based cases | SVCP (simulation), SVR, model coverage | A-4 compliance, MB simulation objectives, A-7 (via §MB.6.7 activity) | Simulator, test manager, model coverage, test generator |
| Code generation | Verified model, locked config | Source code, trace report, EOC | A-2 (6, 7) | Code generator, compiler, linker |
| Code verification | Source code, model | Code review/inspection reports, MISRA reports, run-time analysis | A-5 | Source-to-model checker, coding-rule checker, abstract interpretation |
| EOC testing | Test cases, EOC, target | Executable test results, WCET, stack | A-6 | SIL/PIL harness, target rig, timing analysers |
| Coverage closure | All test results | Coverage reports, coupling analysis, gap justifications | A-7 | Code coverage tools, coupling analysers |
| Close-out | All of the above | SCI, SECI, SQA/CM records, SAS | A-8 to A-10 | CM, problem reporting |
Where the model changes the gates
DO-178C Table A-4
Verification of Outputs of Software Design Process
| # | Objective | Ref | A | B | C | D | Outputs |
|---|---|---|---|---|---|---|---|
| 1 | Low-level requirements comply with high-level requirements | 6.3.2.a | · | Software Verification Results (11.14) | |||
| 2 | Low-level requirements are accurate and consistent | 6.3.2.b | · | Software Verification Results (11.14) | |||
| 3 | Low-level requirements are compatible with target computer | 6.3.2.c | · | · | Software Verification Results (11.14) | ||
| 4 | Low-level requirements are verifiable Unlike the high-level equivalent (A-3 obj 4), not required at Level C. | 6.3.2.d | · | · | Software Verification Results (11.14) | ||
| 5 | Low-level requirements conform to standards | 6.3.2.e | · | Software Verification Results (11.14) | |||
| 6 | Low-level requirements are traceable to high-level requirements | 6.3.2.f | · | Software Verification Results (11.14) | |||
| 7 | Algorithms are accurate | 6.3.2.g | · | Software Verification Results (11.14) | |||
| 8 | Software architecture is compatible with high-level requirements | 6.3.3.a | · | Software Verification Results (11.14) | |||
| 9 | Software architecture is consistent Components, data flow and control flow fit together correctly. | 6.3.3.b | · | Software Verification Results (11.14) | |||
| 10 | Software architecture is compatible with target computer | 6.3.3.c | · | · | Software Verification Results (11.14) | ||
| 11 | Software architecture is verifiable | 6.3.3.d | · | · | Software Verification Results (11.14) | ||
| 12 | Software architecture conforms to standards | 6.3.3.e | · | Software Verification Results (11.14) | |||
| 13 | Software partitioning integrity is confirmed Conditional: only applies when partitioning is used; the only A-4 objective at Level D. | 6.3.3.f | Software Verification Results (11.14) |
A:13 B:13 C:9 D:1
Table A-4 (verification of the outputs of the software design process) is where most model-based effort lands, because the design model is the LLRs and architecture. On a hand-coded project these objectives are met mainly by peer review of a design document. On a model-based project they are met by a mix of automated model-standard checks, structured model reviews, formal design-error analysis and requirement-based simulation, with model coverage showing that the simulation exercised the whole model.
What the auditor looks for
The gate questions a reviewer asks
At each transition the reviewer wants to see: the inputs were baselined; the outputs were verified against the right standard; every finding is closed or in a problem report; trace is complete in both directions; and the configuration that was verified is the one that moved forward. On model-based projects the last point is the one most often broken — the model is tweaked after review and regenerated without re-running the checks.
Practitioner tip
Automate the gate, not just the work
Wrap each verification activity in a script that opens the model with its data, runs the check, writes the report into a fixed folder named for the model and activity, and stamps the model checksum into the report. Then a gate review is a matter of comparing checksums and reading reports, not re-running tools by hand. The reference project in the case study does exactly this with one utility per activity.
Verification credit by platform
What each execution platform can support
| Platform | What runs | Credit typically sought | Cannot replace |
|---|---|---|---|
| Model simulation | The design model in the simulator | LLR/architecture compliance with HLRs (A-4), model coverage, early defect detection | Testing of the executable object code (A-6) |
| Software-in-the-loop (SIL) | Generated code compiled for the host | Early equivalence between model and code; host-based code coverage as an engineering measure | Target compatibility; usually not final A-6 credit |
| Processor-in-the-loop (PIL) | Generated code compiled for, and running on, the target processor | A-6 compliance/robustness for the component, structural coverage on target code (if instrumentation is accounted for) | Hardware/software integration with real I/O and timing |
| Target / integration rig | Full EOC on flight-representative hardware | A-6 including target compatibility, HW/SW integration, timing | — |
Pitfall
Treating passing simulations as finished verification
A green simulation report proves the model meets the HLR test cases on the host. It does not prove the compiler, the target arithmetic, the scheduler or the I/O behave. Plan from day one which tests run on the target and how model, SIL and target results are compared. See Simulation for Verification Credit.
Configuration control of model artefacts
Everything that influences generated code or simulation results is a configuration item: the model files, referenced models, libraries, data dictionaries, bus and type definitions, configuration sets, requirement link files, test harnesses, test data and baselines, code-generation settings, custom checks and templates, and the exact tool versions (including patches). Model checksums are a practical way to show that the model reviewed, simulated and generated was the same one — record the checksum in each verification report and in the SCI. See Configuration Management.
- —Lock the model configuration set in a shared template; check it with an automated rule every build.
- —Put shared data (enumerations, buses, type aliases, calibration constants) in common data dictionaries with their own owner and review.
- —Treat block libraries as software: requirements, review, tests and coverage per library block.
- —Keep work-in-progress and caches in a separate folder from baselined data so build artefacts never leak into the evidence.
Self-check
On a design-model project, which evidence is normally required for objective A-6 (executable object code complies with the HLRs)?