SW Architecture & Unit Design
Design safety-related software under ISO 26262-6: traceable requirements, architecture principles and patterns, AUTOSAR, safety mechanisms, freedom from interference, software DFA and unit design.
Free account: a preview of this guide, plus the full Functional Safety Concept guide, 3 templates and 5 exams a month.
- Chapters
- 11
- Chapters
- Figures and interactive visuals
- 68
- Figures and interactive visuals
- Implementation examples
- 4
- Implementation examples
Quick answers
- What does ISO 26262-6 require for software architectural design?
- ISO 26262-6, Clause 7 requires a software architecture that implements the software safety requirements and supports their verification. That means applying design principles appropriate to the ASIL, describing static and dynamic aspects, allocating safety requirements to components, analyzing the architecture for weaknesses and dependent failures, and showing freedom from interference where components of different ASIL coexist. Clause 8 then covers the design and implementation of the software units.
- What is freedom from interference in software?
- Freedom from interference is the absence of cascading failures from one software component to another that would violate a safety requirement, typically from a QM or lower-ASIL component into a higher-ASIL one on the same ECU. The usual concerns are memory (corruption of data or code), timing and execution (blocking, overruns, wrong sequence) and exchange of information (corrupted, lost or delayed messages). Countermeasures include memory protection, timing supervision and end-to-end protected communication.
Included in Pro and Expert
Read the full guide with Pro
This page is the outline. The complete SW Architecture & Unit Design guide, 11 chapters, is part of the Pro and Expert plans. A free account lets you preview it and includes the complete Functional Safety Concept guide, 3 templates and 5 practice exams a month.
See what Pro includes
Benefits for your project
ISO 26262, Part 6, Clause 7-8
Architect with the right principles
Apply the ISO 26262-6 design principles such as hierarchical structure, restricted coupling, high cohesion and simple interfaces, together with safety patterns like monitoring channels and partitioning.
Partition mixed-criticality software
Achieve freedom from interference between components of different ASIL on one ECU through spatial and temporal partitioning and protected communication, including on multi-core and SoC platforms.
Design units that pass verification
Write unit designs with controlled complexity, defined data ranges, robust error handling and clear notations, structured for the reviews and structural coverage testing that follow.
Learning outcomes
Design a safety architecture
Apply architectural principles and patterns that make software analyzable and verifiable.
Achieve freedom from interference
Partition memory, time and communication between components of different ASIL.
Select software safety mechanisms
Choose detection and handling mechanisms that fit the failure modes found by analysis.
Analyze dependent failures
Run a software DFA and decide where decomposition is justified.
Specify units for verification
Write unit designs that support reviews and structural coverage testing.
Chapters in this guide
- 01
What is SW Arch & Unit Design?
Define software architecture and unit design in the ISO 26262 context, and see why software has failure modes but no failure rate.
- Architecture and unit design
- No software failure rate
- Failure mode taxonomy
- 02
SW Safety Requirements & Traceability
Specify software safety requirements and treat the bidirectional traceability matrix as a design artifact.
- Software safety requirements
- Bidirectional traceability
- Traceability structure
- 03
Development Process, Roles & Effort
Walk the development process, effort distribution, agile iterations, resource analysis and the mapping to Automotive SPICE.
- Effort distribution
- Agile iterations
- Automotive SPICE mapping
- 04
Architecture Design Principles & Patterns
Apply architecture fundamentals, compare automotive patterns, and design components and interfaces for review.
- Architecture patterns compared
- Component design principles
- Interface guidelines
- 05
AUTOSAR Architecture
Use the AUTOSAR layers, communication model and safety modules for mixed criticality, including Adaptive AUTOSAR concepts.
- Layered architecture
- Safety modules for FFI
- Timing protection
- 06
HSI & E/E Architecture
Connect the software design to the hardware-software interface and to the evolution of vehicle E/E architectures.
- HSI specification
- E/E architecture evolution
- Impact on software design
- 07
Safety Architecture & Mechanisms
Select software safety mechanisms, from program flow monitoring and watchdogs to error detection and hardware monitoring.
- Safety architecture patterns
- Program flow monitoring
- Watchdog stack
- 08
Freedom from Interference
Achieve spatial and temporal freedom from interference, including multi-core and SoC platforms, and verify it.
- Spatial FFI
- Temporal FFI
- FFI verification checklist
- 09
DFA, Mixed-Criticality & SW ASIL Decomposition
Run a software dependent failure analysis, classify components, and decide when ASIL decomposition belongs in software.
- Software DFA process
- Guide-word approach
- Software ASIL decomposition
- 10
Unit Design
Design units with controlled complexity, robust error handling, suitable notations and testability, including model-based units.
- Unit complexity metrics
- Error handling strategies
- Model-based units
- 11
Practical Examples & Case Studies
See visual design documentation and four implementation examples, from a safety monitor to comprehensive unit testing.
- Visual documentation
- Safety monitor component
- Vehicle state machine
Read all 11 chapters with Pro or Expert.
Start with a free account: a preview of this guide, the complete Functional Safety Concept guide and 5 practice exams a month, then upgrade when you need this guide.
Pro plan pricingExpert plan pricingFigures and diagrams in this guide
Figures and interactive visuals
Software failure mode taxonomy
How software fails without a failure rate.
Interactive traceability graph
Requirements linked through design to verification.
AUTOSAR layer stack
Where safety-relevant modules sit in the platform.
MPU write trap sequence
What happens when a lower-integrity task writes into protected memory.
Seven DFA initiators
Sources of dependent failures that can violate independence.
From architecture diagrams to tested units
Implementation examples
The closing chapter shows how design is documented visually and walks four implementation examples.
- A safety monitor component
- A vehicle state machine
- Robust error handling in layers
- Comprehensive unit testing
- A safety monitor component and its place in the architecture
- Each point in the list, worked through step by stepIn the full guide
The full example is in the guide, part of the Pro and Expert plans.
Who this guide is for
- Embedded software engineers on their first ASIL-rated project
- Software architects putting QM and ASIL components on the same ECU
- AUTOSAR integrators configuring memory protection and OS applications for safety
- Developers who need their unit designs to survive an ISO 26262-6 verification review
Questions about SW Architecture & Unit Design
Start the SW Architecture & Unit Design guide
The full guide is part of the Pro and Expert plans. A free account opens a preview of it, the complete Functional Safety Concept guide, 3 work product templates, 1 guided process, the Markov and RBD simulators and 5 practice exams a month. No credit card required.
Continue with
More related ISO 26262 guides
- SoftwareFunctional Safety with AUTOSARAUTOSAR gives the car industry a standard software platform, but a specification cannot be ASIL anything, and a qualified stack does not make your software safe. Learn how the Classic and Adaptive platforms turn ISO 26262-6 requirements into concrete mechanisms: memory partitioning, timing protection, the Watchdog Manager and end-to-end communication protection.
- SoftwareLinux and Open-Source SafetyBuilding an ISO 26262 safety case for software nobody developed for you: pin down the exact kernel as an element, choose between qualification, proven-in-use and ISO PAS 8926, and guard Linux with external safety mechanisms.
- Safety analysesFMEA Mastery for Functional SafetyLearn bottom-up failure mode analysis to identify single-point, residual, and latent faults in your system. Covers scoping, severity/occurrence rating, diagnostic coverage linkage, and integration with SPFM/LFM calculations.