Partial Order Reduction for Deep Bug Finding in Synchronous Hardware

Makai Mann, Clark W. Barrett

Abstract

Symbolic Model Checking, particularly Bounded Model Checking (BMC), is a cornerstone of hardware verification but is frequently hampered by the "state space explosion" problem. This paper, originally presented at TACAS 2020, introduces a method to adapt Partial Order Reduction (POR)—a technique traditionally used in asynchronous software verification—to the synchronous hardware domain. By combining POR with a novel Reduced Instruction Set (RIS) technique, the authors enable the decomposition of simultaneous actions into simpler, sequential ones. This approach prunes redundant execution paths, allowing model checkers to identify deep, elusive bugs in circuits like FIFOs and arbiters up to 100x faster than standard methods.

Introduction

In modern hardware design, finding deep bugs remains a significant challenge. While Bounded Model Checking is highly effective, its scalability is limited by the exponential growth of the state space. A primary driver of this explosion is path symmetry. In many designs, such as packet-processing units or FIFOs, multiple interleavings of independent actions lead to the identical system state. For instance, triggering two independent inputs $A$ and $B$ results in the same state regardless of whether they occur as $(A, B)$, $(B, A)$, or simultaneously.

Standard model checkers typically explore all these redundant paths exhaustively. While Partial Order Reduction (POR) successfully addresses this in asynchronous systems (e.g., multi-threaded software), applying it to synchronous hardware is non-trivial. Hardware components often execute numerous actions in parallel every clock cycle, leading to an exponential number of possible action combinations that POR must account for.

Synchronous Partial Order Reduction and RIS

The authors propose a two-pronged strategy to mitigate path symmetry in synchronous designs:

1. Guarded Independence

The method defines "guarded independence" for hardware actions. If two actions (such as pushing to one FIFO while popping from another) do not disable each other and commute to the same final state, they are considered independent. By adding constraints to the model checker that force a specific execution order for these independent actions, the tool prunes redundant "mirrored" paths from the search space.

Path symmetry and the concept of excluded sequences in Partial Order Reduction.

2. Reduced Instruction Sets (RIS)

The core innovation of this research is the Reduced Instruction Set (RIS) technique. To prevent the exponential explosion caused by simultaneous action combinations, RIS proves that any "complex" instruction (multiple actions occurring in a single cycle) can be safely decomposed into a sequence of "atomic" (single) actions. This decomposition ensures that reachability to any state is preserved while significantly simplifying the input space.

The authors provide an automated verification algorithm, ProveRIS, which utilizes SMT solvers to verify the soundness of these reductions for a specific circuit. Once proven, the model checker only explores the simplified search space of atomic actions.

Evaluation and Results

The proposed techniques were evaluated against a variety of hardware benchmarks, ranging from toy examples to commercial-grade components:

  • Buggy Toy Example: A circuit with a difficult-to-reach integer overflow bug occurring after 65 cycles.
  • Open-Source Packet Movers: Including circular pointer and shift register FIFOs.
  • Commercial Components: Two complex library components from a major hardware manufacturer.
  • Arbitrated Circuits: Designs featuring multiple FIFOs managed by non-deterministic arbiters.

The results demonstrate dramatic performance improvements. On the toy example, the time required to find the bug was reduced from over 1,000 seconds to just 46 seconds. More importantly, many benchmarks that previously timed out after several hours using standard BMC were solved in minutes or even seconds. As circuit depth and complexity increased, the performance gap widened, frequently showing 10x to 100x improvements in runtime.

Key Insights

  • Hardware Path Symmetry: Even synchronous hardware suffers from interleaving redundancies similar to concurrent software.
  • Synergy of RIS and POR: The authors observed that POR alone yielded negligible benefits in the synchronous context. The dramatic gains were only realized when combined with RIS, which reduces the instruction space to atomic actions.
  • Automation: The approach is largely automatic, requiring only high-level annotations of the circuit's interface, making it accessible for practical verification workflows.

Limitations and Future Work

While highly effective, the RIS approach introduces a trade-off: forcing actions to occur sequentially can increase the "depth" (number of clock cycles) needed to reach a bug. However, the reduction in the search space per cycle typically far outweighs the cost of additional cycles. Future work includes extending these techniques to sequentially-composed packet movers and developing interactive tools to assist users in identifying independence relationships for more complex designs.

Summary updated

BibTeX
@inproceedings{mann2020partial,
  author = {Makai Mann and Clark W. Barrett},
  title = {{Partial Order Reduction for Deep Bug Finding in Synchronous Hardware}},
  booktitle = {TACAS},
  year = {2020},
  doi = {10.1007/978-3-030-45190-5\_20},
}
Figure