Desk summary
- 01In DO-178C the design has two parts: the software architecture (structure, components, interfaces, data and control flow) and the low-level requirements (detail from which code can be written without further information).
- 02LLRs are design, despite the word “requirements”. At Levels A–C they must be verifiable because they are tested.
- 03The commonest trouble is granularity: LLRs that merely restate HLRs leave the coder inventing design, while LLRs that read like code make low-level testing circular.
- 04Design is where safety mechanisms live — monitors, partitioning, defensive handling, deterministic scheduling — and where new derived requirements appear that must go back to the safety team.
- 05Table A-4 has thirteen objectives: seven for LLRs, five for the architecture and one for partitioning integrity.
Intuition
Floor plan and build instructions
The architecture is the floor plan and wiring diagram of a building: which rooms exist, how they connect, what flows between them and where the fire walls are. The LLRs are the detailed build instructions for each room, precise enough that a contractor could build it without phoning the architect. A good design lets a reviewer understand the floor plan on one page and still find every detail when they need it.
Architecture and low-level requirements
DO-178C describes the architecture as the structure selected to implement the software requirements. In practice it identifies components, their interfaces, the data they exchange, how and when they execute, and how resources are allocated and protected. The LLRs decompose the HLRs (and any derived requirements and design constraints) into statements precise enough to code from. §5.2 covers the design process; §11.10 lists what the Design Description should contain.
What usually goes where
| Software architecture | Low-level requirements |
|---|---|
| Component decomposition and hierarchy | Algorithms and equations, with data types, ranges and scaling |
| Data flow and control flow between components | Detailed logic: decision tables, state machines, sequencing |
| Scheduling: tasks, rates, priorities, execution order | Initial values, limits, saturation and rounding rules |
| Interrupt usage and handling strategy | Error and exception responses inside the component |
| Memory allocation, shared data and protection | Interface contracts for each function: inputs, outputs, pre/post-conditions |
| Partitioning, monitoring and redundancy mechanisms | Derived LLRs and their justification |
| Interfaces to hardware, RTOS and libraries | Timing behaviour within the component |
- —Design Description contents (
§11.10) in brief: a description of the design and architecture; the LLRs; input/output and data/control flow; resource limitations and how they are managed (timing, memory); scheduling and inter-processor or inter-task communication; design methods and their details; partitioning methods; descriptions of software components, noting which are new and which reused; derived requirements; and deactivated code design, if any. - —Packaging is free. Architecture and LLRs may be in one document, separate documents, a model, or a mix. What matters is that the relationship between them is clear and each LLR has a unique identifier that can be traced.
Writing LLRs at the right depth
The definition sets a high bar: code must be implementable from the LLRs without further information. That rules out LLRs that simply restate an HLR. It does not mean LLRs should be code written in English. DO-248C FAQ #82 lists the concerns when pseudocode serves as LLRs: a large jump in detail between HLR and LLR, weak architecture description that undermines data and control coupling analysis, difficulty identifying and tracing individual requirements, and low-level tests that only confirm the code matches near-identical pseudocode rather than finding errors.
Three attempts at an LLR for the AHRS mid-value selector
| Depth | LLR text | Verdict |
|---|---|---|
| Too high | MidValue shall output the middle value of the three AHRS inputs. | Restates the HLR. The coder still has to decide data types, vector handling, tie behaviour and NaN handling — that is design done in the code. |
| About right | MidValue shall, each 10 ms frame, output for each of the 5 elements of its input vectors the median of the corresponding elements of ahrs1, ahrs2 and ahrs3, computed as max(min(a,b), min(max(a,b),c)). When two or more inputs are equal, the common value shall be output. Inputs and outputs are IEEE-754 single precision in the units of Table AHRS-IN. | Precise behaviour, data types, rate and edge cases. Implementable and testable without being code. |
| Too close to code | Set t1 to a; if b less than t1 then set t1 to b; set t2 to a; if b greater than t2 then set t2 to b; … | A line-by-line transcription. Testing it against the code proves little, and every code edit forces an LLR edit. |
Pitfall
The “LLR too close to code” problem
When LLRs mirror the code statement by statement, three things go wrong. Reviews stop finding errors because reviewer and author are comparing two copies of the same thinking. Low-level tests derived from the LLRs exercise code structure rather than intended behaviour, so they achieve coverage without demonstrating correctness. And maintenance doubles, because every refactoring changes the requirements. Write LLRs as behaviour of a component — inputs, outputs, conditions, limits — and let the code choose the statements.
Practitioner tip
Higher levels need more detailed LLRs
At Levels A and B, structural coverage (decision coverage, and MC/DC at Level A) must be achieved by requirements-based tests. If the LLRs are vague, conditions in the code have no requirement to drive them, and coverage analysis reports gaps that can only be closed by writing the missing LLRs. Thinking about decisions and conditions while writing LLRs saves rework later. See Structural Coverage & MC/DC.
Derived LLRs
Design is where most derived requirements are born, because it is where decisions that the higher levels could not foresee get made. Table A-2 objective 5 requires derived LLRs to be defined and provided to the system processes, including the safety assessment, exactly as for derived HLRs. Write the justification so a safety engineer who has never seen the design can judge its effect.
- —Defaults and initial values: what a filter or integrator holds at power-up; what an output shows before its first valid computation.
- —Numerical protection: divide-by-zero guards, saturation of integrators (anti-windup), handling of NaN or infinity from a sensor.
- —Scheduling decisions: execution order within a frame that introduces one frame of latency on a path.
- —Fallback behaviour: what a voter does with no valid inputs; how long a stale value is held.
- —Built-in test and monitoring logic added by the design rather than required by the system.
Pitfall
Derived LLRs that are really missing HLRs
If a derived LLR describes behaviour visible at the software boundary — an output value, a flag, a timing — ask whether it should have been an HLR. Behaviour the aircraft can observe usually belongs at the HLR level, where it is tested by high-level requirements-based tests on the target and visible to systems engineering.
Designing for safety and robustness
Good design principles — abstraction, modularity, strong cohesion, loose coupling, information hiding and limited complexity — matter in any software. In airborne software they also make verification feasible: a loosely coupled design has a small, analysable set of data and control couplings; a cohesive component has a small set of LLRs that can be tested in isolation. Beyond general quality, the design must provide the mechanisms the safety assessment relies on and must behave deterministically.
Safety concerns and typical design responses
| Concern | Typical design mechanism |
|---|---|
| Erroneous sensor data | Range, rate and staleness checks; cross-channel comparison; voting with fallback modes |
| Software or processor hang | Hardware watchdog serviced only from the end of a healthy frame; frame-overrun detection |
| Memory corruption | CRC of code and constant data at start-up and in background; RAM tests; memory protection units |
| Interference between functions of different levels | Robust time and space partitioning, or design so the lower-level function cannot write the higher-level data |
| Non-determinism | Static scheduling, fixed frame rates, no dynamic memory after initialisation, bounded loops, no recursion |
| Undetected latent faults | Periodic built-in test with defined coverage, and fault logging |
| Power interruption | Defined cold-start and warm-start behaviour, with which data survive a transient |
- —Usually prohibited by design standards: recursion (unbounded recursion is explicitly a concern in
§6.3.3), self-modifying code, dynamic memory allocation after initialisation, unrestricted interrupts, and complex dynamic tasking. - —Design for testability: observable intermediate values, controllable inputs, decomposable components, test points and fault logs. Involve testers in design reviews.
- —Document design decisions and safety features with their rationale, so reviewers can verify them and maintainers do not remove them by accident.
Partitioning and architectural hooks
DO-178C §2.4 describes system architectural strategies that can limit the impact of software failures: partitioning, multiple-version dissimilar software and safety monitoring. When the architecture relies on partitioning — to host functions of different levels on one processor, or to contain a failure — the partitioning must be designed, documented and verified: that is Table A-4 objective 13, “software partitioning integrity is confirmed”. Partitioning is usually provided by an RTOS or hypervisor plus memory management hardware, but the application design still has to respect it: shared memory, I/O ownership, timing budgets and communication channels must be defined in the architecture. See RTOS & Partitioning.
Practitioner tip
Design the coupling you will later have to analyse
Data and control coupling analysis (Table A-7) checks that tests exercised the interfaces between components as the architecture defines them. If the architecture never wrote down which component writes which shared variable, or which calls which, there is nothing to analyse against. Put a data dictionary with readers and writers, and a call or execution-order description, into the architecture from the start. See Data & Control Coupling.
Verifying the design: Table A-4
Design verification (§6.3.2 for LLRs, §6.3.3 for architecture) is mainly review and analysis. The objectives mirror those for HLRs — compliance, accuracy and consistency, target compatibility, verifiability, conformance to standards, traceability, algorithm accuracy — applied to the LLRs, then a parallel set for the architecture, plus partitioning integrity.
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 grouped
| Objectives | Applies to | Key review questions |
|---|---|---|
| 1–7 | Low-level requirements | Do LLRs fully implement the HLRs and nothing more? Are they correct, consistent, achievable on the target, testable, standard-conformant and traced both ways? Are algorithms correct, especially near limits and discontinuities? |
| 8–12 | Software architecture | Does the architecture support every HLR? Are component interfaces and data/control flows consistent? Does it fit the processor, memory and timing budget? Can it be verified? Does it follow the design standards? |
| 13 | Partitioning | If partitioning is claimed, is the separation of time, memory and I/O between partitions designed and shown to hold, including under failure? |
What the auditor looks for
What a reviewer probes in the design
Expect questions such as: show me where this HLR is implemented in the design and which component owns it; which derived LLRs exist and where did the safety team assess them; how is worst-case frame time budgeted; what happens on a frame overrun; who writes this global variable; is there any recursion or dynamic allocation; how does the design achieve the partitioning claimed in the PSAC. A design that cannot answer these from its own pages, without the author present, is usually judged incomplete.
Model-based development
Design models
Under DO-331 the LLRs and architecture may be expressed as a design model — typically a dataflow or state-machine model from which code is generated. The design objectives still apply, now to the model, and are supplemented by model-specific activities: conformance to a Software Model Standard (allowed blocks, naming, configuration settings), model review, optional simulation for verification credit and model coverage analysis. One rule is strict: a design model needs requirements above it that are not themselves in that model — textual HLRs or a separate specification model. In the helicopter reference project each design model (AHRS voter, inner loop, outer loop, actuator loop) is linked to the textual HLRs, and an automatically generated design description documents every block parameter and the model configuration. Note how “too close to code” takes a new form: a model that is reviewed only by inspecting generated code teaches nobody whether the behaviour is right. See Specification vs Design Models and Model Standards.
Self-check
A team writes LLRs as near line-by-line pseudocode and generates low-level tests from them. What is the main certification concern?