In this article from February 12, 2010, Richard Goering of Cadence's Industry Insights blog looks back at a software bug in the 2004 and 2005 Toyota Prius. He points to an analysis of that bug presented by three Toyota authors, which called for a model-based, formal approach to verifying control software, and he asks what was learned from it now that another Prius software problem was in the news. He also argues that a formalized verification methodology, of the kind chip designers already use, could catch such problems before they reach the field. Clearly a must-read article.
What happened with the 2004 and 2005 Prius
According to Goering's article, some 2004 and 2005 Prius hybrids had a software bug that could make the car stall or shut down while driving at highway speeds. Toyota identified a programming error in the computer systems of 23,900 cars and asked owners to bring them to dealers for a software update. When Goering wrote in early 2010, the headlines were about a different software problem in the 2010 Prius, one that was reported to affect braking on bumpy roads.
Why a car bug matters to chip designers
A modern car is a network of control modules, each running software that was written and tuned by different engineers over many years. A system-on-chip (SoC) is built the same way: dozens of blocks, often from different teams or vendors, integrated into a structure that grows with every new product. In both cases the hard bugs are rarely inside one block. They appear when blocks interact in a way nobody tested.
Goering's point is that hardware verification has developed tools for exactly this problem, while much embedded software testing still relies on directed tests run until the schedule runs out.
What the Toyota analysis recommended
The presentation Goering found was given at a 2006 conference on SCADA (supervisory control and data acquisition) systems. In his summary, it described automotive control software as a large system built from modules designed by individual engineers and integrated into an incrementally developed legacy structure, with hundreds of interacting modules and a number of tests that grew exponentially as features were added. Its recommendations, as Goering lists them, were:
- Formal definition of several layers of abstraction for the control software, capturing how components interact, data-access rules and dependencies.
- Formal specification of control system properties to support validation and verification.
- Hierarchical verification at the module, feature and system levels.
- Test generation for closed-loop feedback control systems.
- Assertion-based verification.
Deep dive: the numbers and details
This part maps the Toyota recommendations onto chip verification practice and adds the dated record of what followed. Skip it if the overview is all you need.
The recommendations in SoC verification terms
| Toyota analysis (as summarized by Goering) | Closest hardware verification practice | What it buys you |
|---|---|---|
| Layers of abstraction with defined interactions | Transaction-level models above RTL; interface specifications per block | Bugs in the architecture are found before detailed code exists |
| Formal specification of properties | Written properties checked by formal tools or simulation | The intent is executable, not just in a document |
| Hierarchical verification | Block-level, subsystem-level and full-chip test benches | Each level reuses checks from the level below |
| Test generation for closed-loop control | Constrained-random stimulus with a reference model | Explores sequences no engineer would write by hand |
| Assertion-based verification | Assertions embedded in the design and test bench | Errors are caught where they occur, not several modules later |
Metric-driven verification
Goering contrasts ad hoc software testing with what hardware teams already had in 2010: metric-driven verification, executable verification plans and coverage. The idea is simple. Instead of asking "have we run enough tests?", the team writes down what must be exercised (states, transitions, corner cases, interactions between blocks) and measures how much of that list the tests have actually hit. The verification plan becomes a checklist that the simulator fills in. Goering mentions Cadence's Incisive Software Extensions and IBM's Enterprise Verification Management System as attempts to bring these ideas into software.
Why the test count explodes
The Toyota analysis noted that the number of tests grew exponentially with new functionality. A simple illustration shows why. If a feature interacts with k other features and each has just two relevant states, there are 2k combinations to consider. With 10 interacting features that is 1,024 combinations; with 20 it is about a million. Directed tests cannot keep up with that growth. Random stimulus with coverage targets, formal proofs of key properties, and a clean hierarchy that limits which modules can interact are the usual ways to keep it under control.
A point of debate in the comments
A reader commenting on Goering's article argued that software validation is already well formalized through process models such as CMMI, and that the real trouble starts where hardware meets software, because each discipline works outside its expertise. Goering replied that the difference may partly be verification ("are we building it right") versus validation ("did we build the right product"), and that executable verification plans, functional coverage and constrained-random testing are not typical in software. Both points are useful for anyone working on embedded systems: the methods exist on both sides, and the gaps are at the interface.
What happened next
- In February 2014, Toyota recalled about 1.9 million third-generation Prius hybrids (models produced since 2009) worldwide because software settings could cause overheating and damage to transistors in the hybrid system's power electronics, as IEEE Spectrum reported. Affected cars could show warning lights and enter a failsafe mode, and in rare cases the hybrid system could shut down while driving.
- Goering closed his 2010 article hoping he would not be writing about a 2015 Prius bug five years later. The 2014 recall shows that the integration problem he described did not go away.
Takeaways for verification engineers
- Integration bugs live between modules, so verification has to be planned at the level where modules interact.
- Write properties and coverage goals down in executable form, so "done" is measured, not guessed.
- Reuse checks up the hierarchy: block assertions should still fire in subsystem and system tests.
- Treat hardware and software verification as one problem when the product is an embedded system.
Further reading
- Richard Goering, "Toyota Prius 2005: An Early Warning About Verification", Cadence Industry Insights, February 12, 2010 (Internet Archive copy)
- IEEE Spectrum, "Toyota Recalls 1.9 Million Prius Hybrids Over Software Flaw", February 12, 2014

Your comments will be moderated before it appears here.