AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Planning

Requirements, Design, Code & Model Standards

The standards that make work consistent and reviewable, including the Software Model Standard.

Desk summary

  • 01DO-178C asks for three project standards — requirements (§11.6), design (§11.7) and code (§11.8); DO-331 adds the Software Model Standard (§MB.11.23).
  • 02Standards are the rules developers follow and the criteria reviewers check against — compliance with them is itself a verification objective in Tables A-3 to A-5.
  • 03Industry standards (MISRA C, high-integrity modeling guidelines) are inputs, not substitutes: tailor them to the project and justify each deviation.
  • 04Good standards mix mandatory rules with advisory guidelines, give the rationale and an example for each, and can vary by software level.
  • 05Standards are required for levels A to C; not required, though still useful, at level D.

Intuition

House style plus safety rails

A newspaper style guide makes a hundred writers sound like one paper. Development standards do the same for requirements, models and code, so that any reviewer can read any engineer’s work. But they also contain safety rails — no recursion, no dynamic memory after initialisation, saturate integer arithmetic — that keep the team away from constructs that make software unpredictable or unverifiable.

Why standards matter for compliance

Standards appear twice in DO-178C. In planning, Table A-1 asks that development standards are defined. In verification, the review objectives ask that high-level requirements, low-level requirements and architecture, and source code each conform to standards. A standard that is vague cannot be reviewed against; a standard nobody reads until verification produces a backlog of non-conformances. A good standard is short enough to be used daily, precise enough to check, and explains its rules so engineers apply their spirit.

Pitfall

Three ways standards fail

They are written only to tick Table A-1; they are pasted from an industry standard without fitting the project’s language, tools or architecture; or they are unknown to developers until reviewers start raising findings. All three are avoidable with project-specific tailoring, rationale and mandatory training.

Software requirements standards

Requirements standards (§11.6) define the methods, notations, tools, rules and constraints for writing high-level requirements, and often low-level requirements too. They are a writing guide, a training tool and the success criteria for requirements reviews.

  • —The Table A-3 review criteria, so authors meet them proactively (compliance, accuracy, consistency, compatibility with target, verifiability, conformance, traceability, algorithm accuracy).
  • —Definitions and examples of high-level, low-level and derived requirements; how to record rationale for derived requirements for the safety team.
  • —Quality attributes: atomic, unambiguous, verifiable, with tolerances and units.
  • —Requirements tool usage: mandatory attributes, identifiers (never reuse a number), status fields, safety and robustness tags.
  • —How to use tables, graphics and models in requirements and how to identify each element for trace.
  • —How to separate requirements from explanatory notes, and how to reference interface control documents.
  • —Rules for robustness requirements — behaviour for invalid, out-of-range and stale inputs.

Software design standards

Design standards (§11.7) govern architecture and low-level requirements. Because design can be expressed in very different ways, generic company design standards are often weak; each project should state its methodology and constraints. The helicopter FCC reference design standard is organised around exactly the questions an architecture reviewer asks.

Topics a design standard should settle (reference project structure, paraphrased)

AreaExamples of rules
Description methodsRequired diagrams (data flow, control flow, state machines, call trees); layout of the design description.
Naming conventionsModule and interface names consistent with the code that will implement them.
Design conditionsScheduling approach; use of interrupts and event-driven architecture; dynamic tasking; re-entry; global data; exception handling.
Design constraintsNo recursion; no dynamic objects after initialisation; restrictions on aliases and compacted expressions; limits on design tools.
Complexity restrictionsMaximum nesting of calls and conditions; restrictions on unconditional branches; single entry and exit points.
Low-level requirementsSame quality attributes as HLR but stating how; trace to HLR; derived LLR with rationale; documenting deactivated code.

Software code standards

Code standards (§11.8) are language-specific: the programming language (and any subset), presentation rules, naming conventions, complexity limits and constraints. Each language used — including assembly — needs coverage. Industry subsets such as MISRA C are excellent inputs. The reference project’s code standard adopts selected MISRA C:2012 directives and rules (for example: no unreachable or dead code, no recursion, no dynamic allocation from the standard library, no setjmp, check data from external sources) and classifies each as mandatory, required or advisory.

c

/* Rule: values received from external sources shall be validated before use.
   Rationale: a corrupted ARINC 429 word must not reach the control law. */

typedef struct { float32_t value; boolean_T valid; } AirspeedIn_T;

float32_t select_airspeed(const AirspeedIn_T *in, float32_t last_good)
{
    float32_t out = last_good;                 /* single exit, no early return */
    if ((in->valid == TRUE) &&
        (in->value >= CAS_MIN_KT) && (in->value <= CAS_MAX_KT)) {
        out = in->value;
    }
    return out;
}

Practitioner tip

Give every rule a why and an example

A rule with a one-line rationale and a recommended/not-recommended pair gets followed; a bare rule gets argued with. Put the rule in one column and its guidance in another, so the checklist stays short while the explanation remains available.

The Software Model Standard (DO-331)

Model-based development

A fourth standard for models

DO-331 §MB.11.23 requires a Software Model Standard for each type of model used for certification credit. It defines the modeling methods and tools, the modeling language and the subset allowed, style guidelines and complexity restrictions, and constraints on the use of the modeling tools — including the configuration settings that affect semantics and code generation. Conformance of models to this standard becomes a review objective, just as code standards are for code.

The reference project’s model standard is the longest planning document by far — around a hundred distinct rules built from published high-integrity modeling guidelines and automotive-origin modeling conventions, tailored per project. Each rule has an identifier, a description, notes, a rationale, the automated check that enforces it, references to the DO-331 objective it supports, and recommended versus not-recommended examples.

Typical model-standard rule categories (reference project)

CategoryIllustrative rule (paraphrased)Rationale
NamingSignals, parameters, blocks and states use only letters, digits and single underscores, under 32 characters, and avoid reserved words.Readability, compiler limits, model-to-code traceability.
Math operationsAbsolute-value blocks avoid unsigned and Boolean inputs and saturate on integer overflow.Keeps simulation and generated code behaviour identical; avoids blocks optimised out of the code.
Division and functionsProtect reciprocal, square root and logarithm against invalid inputs.Robustness; no undefined behaviour in generated code.
Data typesExplicit types on interfaces; restricted implicit conversions; rules for fixed point.Predictable numeric behaviour and reviewable scaling.
State machinesUse one chart semantics consistently (Mealy or Moore), make execution order explicit, forbid recursive behaviour and transitions crossing parallel state boundaries.Analysable, deterministic logic.
ConfigurationMandatory solver, diagnostic and code-generation settings.Model semantics depend on settings — fixing them is part of the standard.

What the auditor looks for

Standards questions at SOI 2

Show me the standard, then show me three artefacts and the review records that checked them against it. Where a rule was deviated from, where is the approved deviation and its rationale? If an automated checker enforces the model or code standard, is it listed in the PSAC, and is it qualified or its results reviewed?

Pitfall

Automated checks without a standard behind them

Running a model or code checker with its default rule set is not a standard. The project must decide which checks apply, which are mandatory, how deviations are approved, and which rules cannot be automated and need manual review.

Self-check

Which statement about MISRA C on a DO-178C project is most accurate?

Sources & further reading

  • Rierson, Developing Safety-Critical Software (2013), ch. 5
  • DO-178C §4.5, §11.6, §11.7, §11.8; Tables A-3 to A-5
  • DO-331 §MB.11.23, Software Model Standards
  • Model-based DO-178C/DO-331 reference project (helicopter FCC): SRS, SDS, SCS and SMS standards
  • MISRA C:2012, Guidelines for the Use of the C Language in Critical Systems

← Previous

PSAC, SDP, SVP, SCMP & SQAP

Planning

Next →

Life Cycles & Transition Criteria

Planning

On this page

Why standards matter for complianceSoftware requirements standardsSoftware design standardsSoftware code standardsThe Software Model Standard (DO-331)