← Lab /Security & privacy

CHARGE automatically generates SVAs that detect 27 of 42 known bugs and discovers a new bug

CHARGE can generate correct security assertions for RTL modules, detecting most known bugs and finding previously unknown ones

Security & privacy arXiv 30 Jul 2026 Method Prototype evidence

Published as “CHARGE: Leveraging CWE Hierarchies for Hardware Security SystemVerilog Assertion Generation”

Why it matters

CHARGE can substantially reduce manual effort in hardware security verification and uncover bugs missed by existing hand-written properties.

Summary

CHARGE automatically generates SystemVerilog Assertions for unverified RTL by leveraging CWE hierarchies and LLMs, detecting 27 of 42 known bugs in three Hack@DAC SoC designs and finding a previously unknown bug. It produces 89% compilable assertions and 92.2% non-vacuous ones, and corrects three manually written properties. However, it misses 15 bugs, especially in larger modules and certain CWEs, indicating limits in asset/behavior identification.

What they found 4

  1. CHARGE detects 27 of 42 known bugs.

    “CHARGE detects 27 of 42 known bugs in these designs.”

  2. 89% of generated SVAs compile in JasperGold and 92.2% are non-vacuous.

    “For Hack@DAC21 OpenPiton SoC, 89% of the generated SVAs run in Cadence JasperGold FPV, and 92.2% are non-vacuous.”

  3. CHARGE discovers a previously unreported bug in the Hack@DAC21 OpenPiton SoC.

    “CHARGE-generated properties identify a new bug in the Hack@DAC21 OpenPiton SoC that was not previously identified.”

  4. Asset identification improves with hierarchy and 3-tuple prompting across LLMs.

    “CHARGE generates useful assets for 34 out of 42 known bugs, generates meaningful expected behaviors for 29 out of 42 known bugs, and generates assertions that detect 27 out of the 42 known bugs.”

Caveats 7

  • CHARGE fails to detect 15 of the 42 known bugs (detects only 27).
  • Asset identification succeeds for only 34 of 42 bugs and behavior generation for 29 of 42 bugs.
  • Compilable assertions drop to 89% for GPT-4.1, indicating some generated SVAs are unusable without edits.
  • These results suggest that LLM-based assertion generation is sensitive to choice of CWE.
  • Our findings also suggest that the length of the RTL module is a factor affecting performance.
  • The LLM is misled by the buggy RTL.
  • The expected behavior is not within the training data of the LLM.

What’s new here 4

  • Uses the hierarchical structure of CWE entries to guide LLM asset and behavior identification.
  • A three-step framework (asset, behavior, assertion) that works without a design-specific specification.
  • Demonstrates cross-LLM generalization and improves over baseline LLM prompting approaches.
  • Automatically discovers a new security bug and corrects errors in existing manual properties.