AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Development

Traceability

Bidirectional trace from system requirements to code and tests, and how to keep it honest.

Desk summary

  • 01Traceability answers two questions: is everything that was required implemented and verified, and was everything that was implemented actually required?
  • 02DO-178C asks for bidirectional trace between system requirements and HLRs, HLRs and LLRs, LLRs and source code (§5.5), and between requirements, test cases, test procedures and test results (§6.5).
  • 03New in DO-178C: trace data (§11.21) is an explicit life-cycle output. DO-178B implied tracing through verification objectives but never named the artefact.
  • 04Trace quality matters as much as completeness: wrong links, many-to-many tangles and links added after the fact are common findings.
  • 05Auditors sample traces in both directions — a system requirement down to tests, a random function up to its parents — and expect every hop to be quick and convincing.

Intuition

A family tree for every line of code

Imagine each line of code has to prove its ancestry: which LLR it implements, which HLR that came from, which system requirement started it all, and which tests checked it. Trace data is that family tree. Looking down from the ancestors finds children never born (requirements nobody implemented or tested); looking up from the children finds orphans (code or requirements nobody asked for). You need both directions because each finds a different kind of problem.

The trace chain in DO-178C

§5.5 defines the development trace: system requirements allocated to software to HLRs, HLRs to LLRs, and LLRs to source code, each in both directions. §6.5 defines the verification trace: requirements to test cases, test cases to test procedures, and test procedures to test results. Several Annex A objectives cannot be shown without this data.

Which objectives lean on which trace links

Trace linkObjectives that depend on itWhat it lets you show
System reqs ↔ HLRTable A-3 obj 1 and 6HLRs fully implement the allocated system requirements; untraced HLRs are identified as derived
HLR ↔ LLRTable A-4 obj 1 and 6LLRs fully implement HLRs; derived LLRs are identified
LLR ↔ source codeTable A-5 obj 1 and 5Code implements the LLRs and only the LLRs
Requirements ↔ test casesTable A-7 obj 3 and 4 (test coverage of HLRs and of LLRs)Every requirement is tested, normal and robustness
Test cases ↔ procedures ↔ resultsTable A-7 obj 1 and 2 (procedures correct, results correct and discrepancies explained)The tests claimed were actually run, as written, with recorded outcomes

Forward and backward: what each direction catches

Bidirectional trace

Forward (top-down)

▸Starts at a parent and asks: is it fully implemented by its children?
▸Finds missing or partial implementation and untested requirements.
▸Example: SR “use the average of two valid AHRS” has an HLR, but no test case exercises the two-valid case with one sensor at a range limit.

Backward (bottom-up)

▸Starts at a child and asks: why does this exist?
▸Finds unintended functionality, gold-plating and unflagged derived requirements.
▸Example: a function that latches a maintenance flag traces to no LLR — either an LLR is missing or the code should not be there.

Pitfall

One direction complete, the other assumed

A trace matrix in which every system requirement has children looks complete — until someone checks whether every child has a parent. Tools often report only one direction by default. Review both, at every level, as part of the A-3, A-4 and A-5 reviews rather than in one big exercise at the end.

Trace data as a life-cycle output: DO-178B versus DO-178C

DO-178B required traceability through its verification sections and objectives but did not name an artefact, so projects stored trace in requirement documents, verification reports or spreadsheets, and evidence was sometimes thin. DO-178C made two changes: it added explicit development-process trace activities (§5.5) and verification trace activities (§6.5), and it defined trace data (§11.21) as a life-cycle data item. Trace data now appears as an output of the development objectives in Table A-2 and of the verification processes. It still does not prescribe the format — a database export, a matrix or links embedded in the artefacts are all acceptable — as long as it exists as identifiable, controlled evidence.

DO-178B (1992)

▸Traceability described within verification (reviews and test coverage).
▸Bidirectional trace implied by objectives, not stated as such.
▸No named trace artefact.

DO-178C (2011)

▸Trace activities in development (§5.5) and verification (§6.5).
▸“Bidirectional” stated explicitly.
▸Trace data (§11.21) is a defined life-cycle output, under configuration control.

Note

Implicit tracing still needs evidence

Some projects trace implicitly — by naming conventions, document structure, or one-to-one numbering between LLRs and functions. Authorities have accepted this, but under DO-178C the project must still be able to produce trace data. Write the implicit rules into the standards and plans, apply them consistently, and make sure reviews explicitly confirm them.

Granularity and trace quality

A trace link is a claim: “this child implements (part of) that parent”. Reviewers check that the claim is true, not just that a link exists. Ratios and patterns in the trace data reveal problems with the requirements themselves.

Trace smells and what they usually mean

PatternLikely causeResponse
Many parents map 1:1 to children with near-identical textChild level adds no detail; requirements copied downRework the lower level, or justify a merged level in the plans
One parent with dozens of childrenParent is too broad, such as “the software shall implement the control laws”Split the parent; trace to specific parents
Widespread many-to-many linksPoorly organised requirements or tracing done after the factRestructure; keep many-to-many only where genuinely needed, with notes
High proportion of derived requirementsMissing parents being hiddenSample justifications; raise problem reports against the higher level
Links to headings or whole documentsToo coarse to verifyLink to individual identified requirements
Code traced to LLRs only at file levelCannot show which function implements whatTrace at function or procedure level as a minimum

Practitioner tip

Annotate weak links

Some links are debatable — the child is related to the parent without being a straightforward decomposition of it. Keep the link if it helps change impact analysis, but add a one-line note explaining the relationship. The note costs seconds and saves the next reviewer, or maintainer, from guessing.

Pitfall

Tracing after the fact

Trace created at the end by someone who did not write the requirements is the most reliable way to get bad trace data: partial links that look complete, orphans marked derived to make them disappear, and links to vague parents. Trace as you write, and let the author record the reasoning while they still know it.

Tools and keeping trace current

Requirements management tools, model-linking features, code annotations and test management tools all hold pieces of the trace. The job is to keep them connected, under configuration control, and current through change. Tools help with storage, reporting and gap detection; they do not know whether a link is correct.

  • —Generate gap reports routinely, not only before audits: requirements with no children, children with no parents, requirements with no tests, tests with no requirements.
  • —Use trace for change impact. When a requirement changes, the trace identifies the design, code and tests to revisit. A change impact analysis that does not use the trace is guesswork. See Problem Reporting & Change Impact.
  • —Baseline the trace with the artefacts. Trace data must correspond to the versions listed in the Software Configuration Index; a trace report generated from today’s database against last month’s baseline is not evidence.
  • —Tool qualification is usually not needed for trace tools, because trace is reviewed by people as part of the A-3, A-4 and A-5 reviews. If you rely on a tool’s automatic report to eliminate that review, qualification may become necessary.

Worked example

A model-generated trace gap report

In the helicopter reference project, each design description ends with a section listing model elements that have no requirement links; for the AHRS voter it reports that 9 of the model’s 17 subsystem and block children carry links. Such a report is not a finding in itself — many unlinked blocks are routing elements such as bus selectors and multiplexers — but each unlinked element needs a reason. The zero-valid default branch of the voter is exactly the kind of element whose missing link should prompt a derived requirement.

How auditors sample traces

A typical trace thread at SOI 2 or SOI 3

01

Pick a safety-relevant system requirement

Often one tied to a hazardous or catastrophic failure condition, such as sensor voting or actuator monitoring.

02

Follow it down

To its HLRs, LLRs, source functions, test cases, procedures and results. At each hop the auditor reads both sides and asks whether the child really implements or verifies the parent.

03

Pick a random code function and go up

Which LLRs does it implement? Which HLRs and system requirements do they serve? Is anything in the function not explained by those requirements?

04

Sample derived requirements

Read the justification and ask for evidence that the safety team saw and dispositioned it.

05

Check configuration consistency

Do the trace data, the reviewed artefacts and the test results all refer to the versions in the SCI?

06

Check the reviews

Do the A-3, A-4 and A-5 review records show that trace was actually reviewed, not just generated?

What the auditor looks for

What makes a trace thread go badly

Long pauses while someone searches for the link; links that exist but connect unrelated requirements; test cases that trace to a requirement yet do not test its stated condition; derived requirements with no safety disposition; and trace reports that do not match the baselined versions. Any one of these usually triggers wider sampling.

Model-based development

Tracing through models

With models, trace links run from textual requirements to model elements (subsystems, blocks, states, transitions), from model elements to generated code, and from requirements to simulation and test cases. DO-331 keeps the same bidirectional expectations, applied to the model. Two practical questions dominate. First, granularity: linking an entire model to an HLR is too coarse, while linking every block is noisy; trace at the level of meaningful functional elements, as the reference project does when it links each HLR to specific blocks of the voter, loop and actuator models. Second, model-to-code trace: generators can annotate code with the originating model element, which makes the LLR-to-code link largely mechanical — but it still has to be reviewed or obtained from a qualified tool. See Traceability Through Models.

Self-check

Every system requirement allocated to software traces down to at least one HLR. What has this established?

Sources & further reading

  • DO-178C §5.5 (Software Development Process Traceability), §6.5 (Software Verification Process Traceability), §11.21 (Trace Data); Annex A Tables A-2 to A-7
  • Rierson, Developing Safety-Critical Software (2013), ch. 6 (§6.11)
  • DO-331 (model-based supplement), MB.5.5 and MB.6.5
  • FAA AC 20-115D (recognition of DO-178C)
  • Model-based DO-178C/DO-331 reference project (helicopter FCC): requirement reports with link data, design descriptions with unlinked-element reports

← Previous

Integration & Executable Object Code

Development

Next →

Verification Overview

Verification

On this page

The trace chain in DO-178CForward and backward: what each direction catchesTrace data as a life-cycle output: DO-178B versus DO-178CGranularity and trace qualityTools and keeping trace currentHow auditors sample traces