Course contentsShow

Module 01 · Lesson 2

Requirements, Interfaces and ICDs

Requirements flow from mission needs down to individual software functions, and interface control documents fix what each side may assume. This lesson shows how both are written, verified and traced.

8 minute readUpdated November 23, 2026

Learning objectives

After this lesson you will be able to:

  • Trace how a mission requirement flows down to subsystem and software requirements
  • Judge whether a requirement is verifiable and choose a suitable verification method
  • Compare an interface control document with an API specification and state where they differ

From one sentence to many

The foundation course explained what makes a good requirement and named the four verification methods. This lesson follows requirements down to the level where a software engineer meets them, shows how the evidence is organized, and introduces the document that governs every boundary between teams: the interface control document.

Flow-down to software

Requirements are arranged in levels: mission, system, subsystem, and then individual hardware and software items. Each level answers the one above it. The process is called flow-down.

Consider a mission requirement that each image shall be located on the ground to within 50 meters. No single component can satisfy it. The systems engineer splits the 50 meters into allocations: so much for knowledge of the orbit, so much for knowledge of where the camera was pointing, and so much for timing. Timing matters because the point beneath a low Earth orbit satellite moves across the ground at about 7 km per second, so one millisecond of timing error is about 7 meters of position error.

The timing allocation becomes a system requirement, and then a software one: the flight software shall time-tag each image line to within 0.5 milliseconds of GPS time. Along the way the design adds derived requirements that no customer asked for, such as rejecting a time message that fails its checksum. They exist because of a design decision, and they still need a parent.

A software team therefore receives its obligations from two directions: parent requirements, which say what the software must do, and interface documents, which say what it may assume about its neighbors.

What makes a requirement verifiable

A verifiable requirement states a measurable condition, the circumstances in which it applies and a limit. It reads like an acceptance criterion written before the code, with one difference: it is usually contractual.

WeakVerifiable
The software shall respond to commands promptly.The software shall begin executing a received command within 100 milliseconds of the end of the command frame.
The software shall handle invalid time messages.The software shall discard any time message whose checksum is incorrect and increment a telemetry counter.

All four verification methods apply to software:

  • Test - run the software on a test bench and measure the result.
  • Analysis - calculate or simulate, for example a worst-case execution time.
  • Inspection - examine the code or documents, for example to confirm that a field layout matches the interface document.
  • Demonstration - show that a function works, such as an operator completing a procedure, without detailed measurement.

The verification matrix

The verification matrix has one row per requirement: its identifier, the chosen method, the level at which it will be verified, the evidence and the status. It resembles a continuous integration dashboard organized by requirement instead of by test.

The parallel is useful but incomplete. A row closes when reviewed evidence is accepted, not when a job turns green. The evidence may be an analysis report with no executable test behind it, and one requirement often needs several kinds of evidence at several levels of integration.

Interface control documents

An interface control document, or ICD, defines everything two parties need in order to build their sides independently. For an interface between two units it typically covers:

  • Mechanical and electrical detail - connectors, pin assignments, voltage levels
  • Data - message formats, byte order, units, valid ranges, rates
  • Timing - when messages are sent and how quickly each side must respond
  • Behavior - startup sequence, error handling, what happens when data is missing

Both parties approve it, and from then on it changes only through formal change control, with the effect on each side assessed first.

Compared with an API specification

An ICD and an API specification are both contracts. Both let two teams work in parallel, both can be used to build a simulator or mock of the other side, and both make a breaking change visible. The comparison breaks down in three places.

  • Scope. An ICD reaches down to the wire. Software can be correct and still fail because a signal edge was read the wrong way.
  • No negotiation. A web client and server can agree a version at run time. A flight interface usually cannot. Both ends are fixed at launch, and one of them may be a supplier's unit whose firmware will never change.
  • Form. ICDs are often prose and tables. Telemetry and command definitions are commonly held in databases, and exchange formats such as XTCE exist for them, but much of an ICD is not machine-readable.

A contract also has to be tested from both sides with real data. The loss of Mars Climate Orbiter, described in the foundation course, involved an interface whose specification called for metric units while one piece of ground software supplied English units.

Traceability

Traceability records the links in both directions: up to the parent, which explains why a requirement exists, and down to the design, code and evidence, which shows how it is satisfied. Projects keep these links in a requirements management tool, and audits of them are routine. The idea fits in a few lines.

type VerificationMethod = "test" | "analysis" | "inspection" | "demonstration";

interface Requirement {
  id: string;
  text: string;
  parent: string | null; // id of the requirement this one derives from
  methods: VerificationMethod[]; // planned verification methods
  evidence: string[]; // ids of the reports that close the requirement
}

const requirements: Requirement[] = [
  { id: "MIS-010", text: "Locate each image on the ground to within 50 m.",
    parent: null, methods: ["analysis", "test"], evidence: [] },
  { id: "SYS-120", text: "Know image acquisition time to within 1 ms.",
    parent: "MIS-010", methods: ["analysis"], evidence: ["AN-0042"] },
  { id: "FSW-311", text: "Time-tag each image line within 0.5 ms of GPS time.",
    parent: "SYS-120", methods: ["test"], evidence: [] },
  { id: "FSW-312", text: "Record the receiver firmware version at startup.",
    parent: null, methods: [], evidence: [] },
  { id: "FSW-313", text: "Discard time messages that fail their checksum.",
    parent: "SYS-125", methods: ["test"], evidence: ["TR-0107"] },
];

function auditRequirements(reqs: Requirement[], topLevelPrefix: string) {
  const ids = new Set(reqs.map((r) => r.id));
  const untraced = reqs.filter((r) =>
    r.parent === null ? !r.id.startsWith(topLevelPrefix) : !ids.has(r.parent));
  const noMethod = reqs.filter((r) => r.methods.length === 0);
  const open = reqs.filter((r) => r.methods.length > 0 && r.evidence.length === 0);
  return { untraced, noMethod, open };
}
const report = auditRequirements(requirements, "MIS-");
for (const [finding, list] of Object.entries(report)) {
  console.log(`${finding}: ${list.map((r) => r.id).join(", ") || "none"}`);
}

Running it prints:

untraced: FSW-312, FSW-313
noMethod: FSW-312
open: MIS-010, FSW-311

FSW-312 has no parent and no verification method. FSW-313 points to a parent that does not exist, perhaps because it was renumbered. The open items are normal during development, and all of them must be closed before flight.

A practical example: a timing requirement and its interface

To meet FSW-311, the onboard computer takes time from a GPS receiver over two signals: a pulse once per second, and a data message giving the time of a pulse. The software lead reviews the draft ICD and asks questions that it does not yet answer.

  • Does the rising or the falling edge of the pulse mark the second?
  • Does the message describe the pulse that has just occurred or the one that comes next?
  • Is the time in the message GPS time or UTC? The two differ by a whole number of seconds, as Module 3 explains.
  • How long after the pulse may the message arrive, and what does the receiver send when it has lost its position fix?

Each unanswered question is a way to be wrong by a second, or by many seconds, while every unit test passes. The answers go into the ICD and both parties approve it.

Verification then uses three methods. An analysis bounds the delay between the pulse and the software's response to it. A test on the bench, with a signal simulator feeding the receiver, measures the time-tag error against the 0.5 millisecond limit. An inspection confirms that the decoding code matches the field layout in the approved document.

Requirements and interfaces state what must be true. The next lesson covers how scarce resources are shared out so that it can be: budgets, margins and trade studies.

Key takeaways

  • Every lower-level requirement derives from a parent, and the recorded link shows why it exists and what a change will affect.
  • A verifiable requirement states a measurable condition, and the verification matrix records the method and the evidence that closes it.
  • An interface control document is a contract agreed by both sides, covering mechanical, electrical, data, timing and behavioral detail.
  • Unlike most APIs, a flight interface usually cannot negotiate versions at run time, so both sides have to be right before launch.

Knowledge check

Check your understanding. These questions are not graded and you can retry as often as you like.

Question 1 of 3· Select one answerWhich software requirement is verifiable as written?
Question 2 of 3· Select all that applyWhich statements about an interface control document for a flight interface are correct? Select all that apply.
Question 3 of 3· Select one answerAn audit finds a flight software requirement with no parent requirement. What is the appropriate response?

0 of 3 questions answered.

Glossary

Flow-down

The process of deriving lower-level requirements from higher-level ones, from the mission to the system, the subsystem and finally individual hardware and software items.

Derived requirement

A requirement that no stakeholder stated directly but that follows from a higher-level requirement or from a design decision.

Verification matrix

A table listing every requirement with its verification method, the level at which it is verified and the evidence that closes it.

Interface control document

A controlled document, agreed by both parties, that defines everything each side of an interface may assume about the other. Usually shortened to ICD.

Traceability

Recorded links from each requirement up to its parent and down to the design, code and verification evidence that satisfy it.

References and further reading

Finished this lesson?

Loading your progress…

Lesson version 1.0.0.