AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Verification

Data & Control Coupling

What coupling analysis really asks for and how teams demonstrate it.

Desk summary

  • 01Table A-7 objective 8 (Levels A–C) asks for analysis confirming that requirements-based testing exercised the data and control coupling between code components (DO-178C §6.4.4.2.c).
  • 02Data coupling: a component depends on data it does not exclusively control. Control coupling: one component influences whether, when or how another executes.
  • 03It is a coverage-style analysis of integration testing, not just a design or code review — though good design and code reviews of data and control flow are what make it achievable.
  • 04Typical approach: inventory the couples from the architecture and code, map each one to the integration tests that exercise it on the final build, and resolve any that were not exercised.
  • 05Authorities expect a defined, repeatable method in the SVP, an explicit list of couples, evidence from tests on the integrated software, and justified gaps.

Intuition

Statement coverage for the wiring between modules

Structural coverage tells you whether the tests exercised the code inside each component. Coupling analysis asks the same question about the connections between components: every wire in the harness (a shared variable, a message, a parameter, a call, a scheduler slot) should have carried a signal during requirements-based testing on the real, integrated build. A harness whose every connector was tested only on the bench with a test box has never been tested as a harness.

What DO-178C actually asks

DO-178B listed data and control coupling as a Table A-7 objective but said little about what it meant, and the wording was added late in that committee’s work. Many companies interpreted it as a design/code review activity — check that the code’s data and control flow match the design. CAST-19 (2004) clarified the authorities’ intent: the analysis is a measure of whether the requirements-based tests of the integrated components demonstrated the interactions and dependencies between components — that components affect each other as the designer intended and not in unintended ways. DO-178C wrote this into the text: structural coverage analysis includes an analysis confirming that requirements-based testing has exercised the data and control coupling between code components.

Component

A self-contained part of the software performing a distinct function — in practice a module, file, package, class, task or partition, as defined by your architecture. The SVP should state what granularity you use.

Data coupling

The dependence of a component on data not exclusively under its control: inputs it reads that another component writes, shared globals, messages, parameters, shared memory, I/O registers, NVM data.

Control coupling

The manner or degree to which one component influences the execution of another: calls, task activation by a scheduler, mode or enable flags that select which path or component runs, interrupts, exceptions, resets.

Couple

One specific dependency between a producer and a consumer (e.g. AHRS_Voter writes voted_pitch, InnerLoop reads it at 100 Hz).

Note

Where coupling shows up in other objectives

Coupling is built in earlier. The architecture must document data and control flow (§11.10, design description). Architecture reviews check the relationships between components (§6.3.3, Table A-4). Code reviews check that the source matches the data and control flow in the architecture (§6.3.4.b, Table A-5). Software integration testing targets interface errors (§6.4.3). Objective 8 then confirms that the tests actually exercised those relationships. If the earlier steps were weak, objective 8 is almost impossible to complete.

A four-step approach

How most successful programmes do it

01

1. Document the architecture properly

Components, their interfaces, data dictionary (types, units, ranges, rates), data flow, control flow, scheduling, inter-task and inter-partition communication. Without this there is no reference to measure against.

02

2. Review design and code for coupling consistency

Use checklists that address coupling: data initialised before use, units and types consistent, global data access controlled, execution order and rate correct, interrupts and resets handled. Fix discrepancies now.

03

3. Write requirements-based integration tests

Tests on the integrated build, derived from HLR and architecture, aimed at interface errors: initialisation, parameter passing, global data corruption, sequencing, end-to-end resolution.

04

4. Analyse coupling coverage

Produce the list of couples, then show for each one which passing integration test(s) exercised it on the final build. Analyse and resolve the rest.

Coupling items reviewers check (adapted from common practice)

Data coupling itemsControl coupling items
All external and internal inputs and outputs defined and correctOrder of execution identified and correct
Types, units and scaling consistent with the data dictionaryRate of execution identified and correct
Data initialised or read in before first useConditional execution (mode flags, enables) identified and correct
Producer/consumer ordering correct; stale data detectedExecution dependencies identified and correct
Global data and shared structures accessed as designed; corruption preventedInterrupts, exceptions and resets identified and handled
Parameters passed correctly (order, type, by value/reference)Schedulers run in order and at rate; background loop cannot hang
Overflow, underflow and unexpected floating-point values prevented or detectedResponse to power interruption identified and correct

Common approaches to measuring coupling coverage

Methods seen on certified programmes

ApproachHow it worksStrengthsWatch-outs
Interface trace matrixFrom the architecture, list every interface signal and call; trace each to the integration test cases that set and check itSimple, tool-independent, reviewableShows tests were designed for the couple, not that it executed on the final build — combine with execution evidence
Set/use coverage on the integrated buildInstrument or trace the integrated software and record, for each shared variable, where it was written and where it was read during requirements-based testsObjective execution evidence; finds unexpected couples (variables read by components that should not)Needs tooling or scripting; instrumentation effects must be assessed
Call / function coverage at component boundariesRecord which inter-component calls and call sites executed during integration tests (call-pair coverage)Many coverage tools already report function and call coverageCovers control couples only; does not show data values were meaningful
Static analysis + test mappingA static analyser extracts the actual call graph and global variable set/use relationships from the code; compare with the architecture, then map each extracted couple to testsFinds couples the design forgot; good input to step 2 reviewsStatic extraction is not test evidence on its own
Coupling-based integration testingDefine coverage criteria over the definitions and uses of data across component boundaries (research basis in FAA reports AR-07-19 and AR-07-52)Rigorous, measurableMore effort; still requires tooling and planning

Intuition

Why the build must be integrated

A couple only exists when two real components meet. If component B’s tests drive its input from a stub, the stub — not component A — is on the other side of the connection. That proves B handles the values the tester imagined, not that A actually produces them with the right units, at the right rate, in the right order. Coupling evidence therefore has to come from tests on the integrated software, ideally the final build without intrusive instrumentation.

A worked example

Take three components from a helicopter flight control computer: an AHRS voter that selects attitude and rate from three sensors, an inner loop control law that runs at 100 Hz, and a mode manager that decides whether the outer loop is active. The coupling inventory and its evidence might look like the table below.

Illustrative coupling inventory and coverage record (IDs invented for the example)

IDTypeProducer → consumerMechanismExercised by (integration test)Status
DC-01DataAHRS voter → inner loopvoted_fb[5] (pitch, roll, p, q, r), deg and deg/sHSI-012 (step in AHRS2 pitch, check surface command response)Exercised
DC-02DataAHRS voter → mode managerattitude_fail flagHSI-020 (fail all three AHRS, check outer loop disengages)Exercised
DC-03DataMode manager → inner loopouter_loop_active used to select reference inputHSI-021Exercised
DC-04DataNVM → inner loopGain schedule table loaded at start-upHSI-030 (start-up with each configuration)Exercised
CC-01ControlScheduler → AHRS voter, inner loopExecuted in that order each 10 ms frameHSI-040 (frame-sequence check via timing trace)Exercised
CC-02ControlMode manager → outer loopOuter loop task only called when engagedHSI-021, HSI-022Exercised
DC-05DataMaintenance module → inner looptest_gain_override (ground maintenance only)None in flight configurationDeactivated — justified by configuration analysis and ground-test procedure

Worked example

The unexpected couple

A set/use trace on the integrated build shows that the actuator monitor also reads voted_fb[3] — a dependency the architecture does not mention. This is precisely what the analysis exists to catch: either the architecture is incomplete (update it, add a requirement and a test) or the code has an unintended dependency (fix the code). Either way, a problem report is raised and the coupling inventory updated.

What auditors accept

What the auditor looks for

The questions you will be asked

How do you define a component, and where is that in the SVP? Where is the list of data and control couples, and how was it derived (from the design, from the code, or both — and do the two agree)? Which requirements-based tests exercised each couple, and were they run on the integrated, final build? How did you handle couples that were not exercised? How do you treat partition boundaries, interrupts and start-up sequences? Showing only design and code review records, or only module-level unit tests, is the most common inadequate answer.

  • —Acceptable: a documented method in the SVP; a complete couple inventory traced to the architecture; evidence that each couple was exercised by passing requirements-based tests on the integrated software; analysis of every unexercised or unexpected couple with a resolution.
  • —Often accepted with support: combining an interface trace matrix with function/call coverage and global set/use data from the integrated run; or relying on high-level hardware/software integration tests plus analysis showing they pass through every interface.
  • —Usually not accepted alone: design and code reviews of data and control flow (they satisfy A-4/A-5, not A-7 objective 8); module tests with stubs; a statement that “100% statement coverage implies all couples were exercised”.

Pitfall

“Statement coverage covers it”

Executing every statement in a consumer does not prove the values it consumed came from the real producer, in the right order, at the right rate. A variable can be read in a statement that runs while the producer has never yet written it (initialisation coupling) — the classic integration error coupling analysis is designed to expose.

Practitioner tip

Design for coupling analysis

Keep global data to a minimum and document each shared item’s single writer. Pass data through defined interfaces, give each component a clear rate and execution order, and use a data dictionary that records producer, consumers, units, ranges and rate. Then the coupling inventory almost writes itself and step 4 becomes a mapping exercise rather than archaeology.

Model-based development

Coupling in model-based development

In a model-based design, components are often referenced models or subsystems with explicit input and output ports, and data flow is visible as signal lines. This makes the coupling inventory easier: interfaces can be extracted from the model and the generated code mirrors them. But the analysis still targets the code: generated code may merge or inline components, introduce shared state for model-reference boundaries, and the scheduler and hand-written glue (I/O drivers, RTOS integration) sit outside the model. Use the model to derive the inventory and simulation to find early interface problems, then show coupling coverage with requirements-based tests on the integrated executable. In the helicopter FCC reference project the voter, inner loop, outer loop and actuator loop are separate referenced models integrated in an FCC model — the referenced-model boundaries are natural couples to inventory.

Self-check

A team shows design-review and code-review checklists confirming that data and control flow match the architecture. What is still missing for Table A-7 objective 8?

Sources & further reading

  • RTCA DO-178C (2011) §6.4.4.2.c, §6.3.3, §6.3.4.b, §6.4.3, §11.10, glossary (data coupling, control coupling, component) and Table A-7
  • CAST-19, Clarification of Structural Coverage Analyses of Data Coupling and Control Coupling (Rev 2, 2004) — CAST papers are no longer hosted by the FAA but remain widely cited
  • Chilenski and Kurtz, Object-Oriented Technology Verification Phase 2 Handbook — Data Coupling and Control Coupling, DOT/FAA/AR-07/19 (2007)
  • Chilenski and Kurtz, FAA research report on data coupling and control coupling, DOT/FAA/AR-07/52 (2007)
  • Rierson, Developing Safety-Critical Software (2013), ch. 9 (§9.7.4.5) and ch. 21
  • RTCA DO-248C (2011), supporting information on data and control coupling
  • Helicopter FCC DO-178C/DO-331 reference project: FCC architecture with referenced component models

← Previous

Structural Coverage & MC/DC

Verification

Next →

Verifying the Verification & Independence

Verification

On this page

What DO-178C actually asksA four-step approachCommon approaches to measuring coupling coverageA worked exampleWhat auditors accept