Microarchitecture aware assertion generation improves cpu verification

MicroAssert: Microarchitecture-Aware Structured Assertion Generation for CPU Verification

Hardware ArchitectureSoftware Engineering

Summary

Verifying that computer processors work correctly is very complicated because of their detailed internal structure. The authors present MicroAssert, a new method that understands the processor's inner parts to automatically create checks that confirm the processor behaves as expected. MicroAssert improves test coverage and detects errors more effectively than earlier methods. This helps make sure CPUs are reliable without as much manual effort.

What this means in practice

  • For hardware verification engineers: Improve CPU testing by generating assertions that cover microarchitectural behaviors and interactions automatically, increasing verification completeness and error detection.
  • For chip design teams: Reduce manual effort in verifying complex CPU designs by using MicroAssert to create structured, microarchitecture-aware assertions to catch subtle bugs early.

Authors

Hongqin Lyu, Yonghao Wang, Zhiteng Chao, Wenxing Li, Tiancheng Wang, Evangeline F. Y. Young, Huawei Li

Abstract

Automatic assertion generation reduces manual verification effort, yet existing approaches struggle to capture microarchitectural behaviors and cross-region interactions in CPUs. We present MicroAssert, a microarchitecture-aware framework that identifies functional regions directly from RTL and generates local and composite assertions through structured contracts and deterministic verification primitives. Coverage-guided feedback further improves verification completeness by progressively expanding proof-relevant RTL coverage. Evaluated on five open-source RISC-V CPUs against three existing assertion generation approaches, MicroAssert achieves 100% syntax correctness and complete branch, statement, and toggle coverage, with an average proven rate of 74.82% and Proof Core coverage of 90.96%. Mutation testing further demonstrates its advantage, achieving an average error detection rate of 28.73%, 1.99 to 3.51 times higher than existing methods. These results demonstrate the effectiveness of microarchitecture-aware assertion generation.