TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Toyota Prius 2005: An Early Warning About Verification

mg
by
0
Share Facebook X LinkedIn WhatsApp Email

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 practiceWhat it buys you
Layers of abstraction with defined interactionsTransaction-level models above RTL; interface specifications per blockBugs in the architecture are found before detailed code exists
Formal specification of propertiesWritten properties checked by formal tools or simulationThe intent is executable, not just in a document
Hierarchical verificationBlock-level, subsystem-level and full-chip test benchesEach level reuses checks from the level below
Test generation for closed-loop controlConstrained-random stimulus with a reference modelExplores sequences no engineer would write by hand
Assertion-based verificationAssertions embedded in the design and test benchErrors 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

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!