Symbolic QED Pre-silicon Verification for Automotive Microcontroller Cores: Industrial Case Study

Eshan Singh, Keerthikumara Devarajegowda, Sebastian Simon, Ralf Schnieder, Karthik Ganesan, Mohammad Rahmani Fadiheh, Dominik Stoffel, Wolfgang Kunz, Clark W. Barrett, Wolfgang Ecker, Subhasish Mitra · DOI

TL;DR

This paper presents an industrial case study demonstrating the effectiveness of Symbolic Quick Error Detection (Symbolic QED) for pre-silicon verification of automotive microcontrollers. Symbolic QED not only found all bugs detected by traditional industrial methods but also uncovered new ones, significantly reducing verification effort and time.

What Problem Does This Paper Address?

Verifying complex integrated circuits (ICs), especially for safety-critical applications like automotive systems, is a monumental challenge. Logic bugs that escape pre-silicon verification can lead to costly post-silicon fixes, system failures, and even disastrous consequences in the field. Traditional verification methods, while advanced, still struggle to catch all critical bugs due to the sheer complexity of modern designs. This paper addresses the need for more efficient and effective pre-silicon verification techniques that can detect logic bugs early in the design cycle.

Methods

The core of this work is the application and evaluation of Symbolic Quick Error Detection (Symbolic QED) in an industrial setting. Symbolic QED is a formal verification approach based on Bounded Model Checking (BMC) but with a key difference: it doesn't require manually crafted design-specific properties. Instead, it leverages a "QED module" that transforms the design on-the-fly during BMC to systematically ensure that bugs are detected quickly.

The paper details two main enhancements to the standard EDDI-V (Error Detection using Duplicated Instructions for Validation) transformation used by Symbolic QED:

  • Enhanced EDDI-V for Control Flow Errors: This involves a QED-Control Flow (QED-CF) module inserted into the instruction fetch stage. It specifically targets bugs that cause incorrect branch directions or pipeline flushes by comparing the target addresses of original and duplicate control flow instructions.
  • Enhanced EDDI-V for Duplication using Memory: This approach allows for temporary storage of register values in memory, enabling Symbolic QED to detect bugs that are triggered only when specific registers are used or when certain instructions are involved.

Additionally, the paper discusses Single-Instruction Properties (Single-I), where each instruction's behavior is verified independently using symbolic operand values. This is contrasted with the industrial "Our Case Study - Formal Verification" (OCS-FV) which requires extensive manual effort to avoid false failures.

Datasets

The study evaluated Symbolic QED on three industrial microcontroller core designs (Designs A, B, and C). These designs are derived from a common base, have been extensively verified over five years using industrial techniques, and are used in automotive products. The researchers analyzed multiple versions (16 in total) of these designs, representing different stages of maturity and RTL updates.

Key Insights and Ideas

  • Symbolic QED's "No Manual Properties" Advantage: A significant insight is how Symbolic QED bypasses the need for manually creating complex, design-specific properties, a major bottleneck in traditional formal verification (like OCS-FV). This dramatically reduces setup effort.
  • Targeted Bug Detection: The enhancements to Symbolic QED (control flow and memory duplication) demonstrate a sophisticated approach to targeting specific classes of bugs that might be missed by more general methods.
  • The "7% Additional Bugs" Mystery: The finding that Symbolic QED detected an additional 7% of bugs, which were not explicitly recorded by the industrial flow, highlights potential gaps in even mature verification processes. The authors speculate these might have been detected but not formally reported or that specification documents weren't updated.
  • Short Counterexamples = Fast Debug: The ability of Symbolic QED to generate very short counterexamples (10 or fewer instructions) is crucial for rapid debugging, making the overall bug resolution process much faster.

Key Results

  • Complete Bug Detection: Symbolic QED detected 100% of the logic bugs that were identified by the industrial verification flow (which included Directed Simulation Tests (DST), OCS-FV, and Constrained Random Simulation (CRS)).
  • New Bug Discovery: Symbolic QED uncovered an additional 7% of bugs that were not recorded by the industrial verification flow.
  • Massive Productivity Gains:
    • For a new design, Symbolic QED reduced verification effort by 8X (8 person-weeks vs. 17 person-months for the industrial flow).
  • For subsequent designs, the improvement was even more dramatic, 60X (2 person-days vs. 4-7 person-months).
  • Rapid Bug Detection: The runtime for detecting bugs using Symbolic QED was exceptionally fast, typically 20 seconds or less, with counterexamples averaging around 6-8 instructions.

Limitations and Future Work

  • Limitations:
    • The study focused on microcontroller cores; applying Symbolic QED to more complex System-on-Chips (SoCs) with diverse components (accelerators, uncore) needs further investigation.
  • The current Symbolic QED implementation uses a fixed starting state. For bugs with very long activation sequences, a symbolic starting state might be necessary to improve detection.
  • The study did not include analog-mixed-signal (AMS) design blocks.
  • Future Work:
    • Conduct more case studies on larger and more diverse industrial SoCs.
  • Explore Symbolic QED with symbolic starting states to handle complex activation sequences.
  • Investigate the application of Symbolic QED for hardware security, such as detecting security vulnerabilities and hardware Trojans.
  • Extend Symbolic QED techniques to analog-mixed-signal (AMS) design blocks.
  • Further develop Symbolic QED and E-QED techniques for bug localization during post-silicon validation and system operation.

Summary updated

BibTeX
@inproceedings{singh2019symbolic,
  author = {Eshan Singh and Keerthikumara Devarajegowda and Sebastian Simon and Ralf Schnieder and Karthik Ganesan and Mohammad Rahmani Fadiheh and Dominik Stoffel and Wolfgang Kunz and Clark W. Barrett and Wolfgang Ecker and Subhasish Mitra},
  title = {{Symbolic QED Pre-silicon Verification for Automotive Microcontroller Cores: Industrial Case Study}},
  booktitle = {DATE},
  year = {2019},
  doi = {10.23919/date.2019.8715271},
}
Figure