---
title: "Requirements Traceability and V&V for Embedded Systems"
description: "How to link every requirement to the code and tests that prove it, and build V&V, hardware testing and reproducible releases into embedded work."
canonical: "https://mnpsystems.ca/blog/safety-critical-systems-rail-and-defense/"
last_modified: "2026-10-31"
---

# Requirements Traceability and V&V for Embedded Systems

> How to link every requirement to the code and tests that prove it, and build V&V, hardware testing and reproducible releases into embedded work.

Source page: https://mnpsystems.ca/blog/safety-critical-systems-rail-and-defense/
Published: Mar 18, 2026. Author: MNP Systems Team. Category: Engineering.
Topics: requirements traceability, verification and validation, HIL testing, release engineering, reliability, embedded systems.
Narration (MP3): https://mnpsystems.ca/audio/blog/safety-critical-systems-rail-and-defense.mp3
Video summary (MP4): https://mnpsystems.ca/video/shorts/safety-critical-systems-rail-and-defense.mp4

MNP Systems is an engineering consultancy based in Brampton, Ontario, Canada, that takes work from anywhere: remotely, or on site where a job needs hands on the equipment.
Contact: https://mnpsystems.ca/contact/, contact@mnpsystems.ca, or call 1-888-338-1090 (toll-free; an AI receptionist answers).

Requirements traceability is the record that links each requirement to the design, code and tests that satisfy it. Verification and validation (V&V) is the work that shows each link holds: verification proves you built the system right, and validation proves you built the right system. Together they let a team change embedded software after it ships and know exactly what the change touched.

## Reliability Is a Process, Not a Property

A system that works on the bench is a prototype. A system that keeps working across a fleet, through staff changes and years of updates, is an engineered one, and the difference is rarely a single clever fix. Field failures usually trace back to a gap in the process: a requirement nobody tested, a build nobody can reproduce, a change that shipped without a regression run.

The practices below close those gaps. None of them depends on your industry. They apply to an inspection robot, an industrial controller or a telemetry gateway alike.

## Trace Every Requirement to a Test

The V-model pairs each level of design with the test that verifies it:

```mermaid
%% V-Model Development Lifecycle
graph LR
  R[Requirements] --> D[System Design]
  D --> DD[Detailed Design]
  DD --> I[Implementation]
  I --> UT[Unit Test]
  UT --> IT[Integration Test]
  IT --> ST[System Test]
  ST --> AT[Acceptance Test]
  R -.->|traces to| AT
  D -.->|traces to| ST
  DD -.->|traces to| IT
```

Traceability works when it lives in the repository rather than in a spreadsheet:

1.  **Give every requirement an identifier** and name it in the test that verifies it.
2.  **Generate the trace matrix on every build,** so a requirement with no test, or a test that verifies nothing, shows up the same day rather than at audit time.
3.  **Link field issues back to requirements.** When a customer reports a fault, the first question is which requirement it broke. If the answer is none, a requirement is missing.

## Verify on Real Hardware, on Every Change

Unit tests on a laptop cannot catch a timing fault on the target, a driver regression or a board that boots differently when it is warm. Hardware-in-the-Loop (HIL) testing closes that gap: the firmware runs on real hardware while a test harness drives its inputs and checks its outputs, and the pipeline runs it on every commit. [How we build HIL pipelines](https://mnpsystems.ca/blog/embedded-devops-hil-testing/) covers the rig itself.

Static checks belong in the same pipeline. A coding standard such as MISRA C/C++ removes whole classes of undefined behaviour, and a static analyser enforces it automatically, so review time goes to design rather than style.

## Separate What Must Not Fail from What May

Not every part of a system needs the same rigour, and treating it all alike spreads the effort thin. Draw the line explicitly: the functions that control motion, power or safety on one side, and displays, logging and connectivity on the other. Then make sure a fault on the second side can never reach the first.

```mermaid
%% Critical and Non-Critical Isolation
graph TB
  subgraph Critical["Critical functions"]
    S[Sensor input] --> C[Control loop]
    C --> A[Actuators and safe stop]
  end
  subgraph NonCritical["Non-critical functions"]
    O[Operator display] --> T[Telemetry upload]
  end
  Critical -->|"Status only, one way"| NonCritical
```

On embedded Linux this usually means hardening the BSP and kernel for deterministic behaviour, giving critical tasks their own cores or processes, and leaving the non-critical stack no way to write to them.

## Make Every Release Reproducible

If last quarter's firmware cannot be rebuilt exactly, a field fault on it cannot be investigated properly. Containerize the build toolchain, pin every dependency version, and build and package releases only in CI, never on a developer's machine. Each tag should produce a signed artifact with its release notes and test results attached.

## Feed the Field Back into the Requirements

Reliability does not end at release. Instrument the system so a fault in the field leaves evidence: structured logs, health telemetry and a record of the software version that was running. Each investigated failure should end as a new or corrected requirement and a test that would have caught it, so the trace matrix grows more complete with every release.

## When a Safety Standard Applies

If your product must meet a formal functional-safety standard, everything above still applies. The standard decides how much evidence you need and how independently it is checked. Our safety standards quick-reference matrix compares the major standards side by side; you can download it on this page.

If your releases depend on one person and a checklist, or field failures take days to explain, [talk to us](https://mnpsystems.ca/contact/) about bringing these practices into your team.
