Efficient Parallel Verification of Galois Field Multipliers

Cunxi Yu, Maciej J. Ciesielski

Abstract

Galois field (GF) arithmetic is used to implement critical arithmetic components in communication and security-related hardware, and verification of such components is of prime importance. Current techniques for formally verifying such components are based on computer algebra methods that proved successful in verification of integer arithmetic circuits. However, these methods are sequential in nature and do not offer any parallelism. This paper presents an algebraic functional verification technique of gate-level GF ($2^m$) multipliers, in which verification is performed in bit-parallel fashion. The method is based on extracting a unique polynomial in Galois field of each output bit independently. We demonstrate that this method is able to verify an n-bit GF multiplier in n threads. Experiments performed on pre- and post-synthesized Mastrovito and Montgomery multipliers show high efficiency up to 571 bits.

Introduction

Galois Field ($GF(2^m)$) multipliers are fundamental components in security-related hardware, including Elliptic Curve Cryptography (ECC) and AES encryption. As these circuits grow in complexity, formal verification—ensuring they are mathematically bug-free—becomes increasingly difficult. Traditional verification methods, such as Binary Decision Diagrams (BDDs) or SAT solvers, often fail due to the "state space explosion" problem in large circuits.

While recent computer algebra methods utilizing Gröbner Basis have shown promise, they are inherently sequential. These methods treat the entire output as a single massive polynomial, limiting verification to a single CPU thread. Consequently, as bit-widths increase, sequential methods become a bottleneck, often timing out or exceeding memory limits. This research addresses these limitations by introducing a bit-parallel algebraic technique that exploits the unique properties of GF arithmetic.

Methodology

The core innovation of this work is the Parallel Backward Rewriting algorithm. The approach leverages a critical mathematical property: in $GF(2^m)$ arithmetic, there are no carries between bits. This lack of carry-chain dependency means the logic cone for each output bit (e.g., $z_0, z_1, ... z_m$) is mathematically independent.

Parallel verification flow

The verification process follows these steps:

  1. Algebraic Modeling: Logic gates are represented as polynomial equations in $GF(2)$, where addition and multiplication are performed modulo 2.
  2. Parallel Extraction: The output signature is split into $m$ separate polynomials. Each bit is assigned to an independent thread to perform backward rewriting.
  3. Backward Rewriting: Threads substitute gate equations from the outputs back to the primary inputs.
  4. Simplification: $GF(2)$ rules (such as $2x = 0$) are applied during rewriting to prune internal expressions and prevent polynomial explosion.

Evaluation and Results

The researchers evaluated the tool using standard hardware benchmarks, including Mastrovito multipliers (up to 571 bits) and Montgomery multipliers (up to 283 bits). To test real-world applicability, they verified both structural netlists and synthesized netlists optimized for 14nm technology.

Runtime and memory usage vs. thread count

Key findings include:

  • Significant Speedups: The parallel approach achieved average speedups of 26x to 44x using 30 threads compared to sequential methods.
  • Scalability: The tool successfully verified a 571-bit Mastrovito multiplier—containing over 1.6 million gates—in approximately 1.5 hours. Previous state-of-the-art algebraic tools failed to complete this task within a 12-hour window.
  • Synthesis Benefits: Interestingly, circuit optimization (synthesis) actually improved verification speed. By minimizing logic cones, synthesis resulted in smaller polynomials during the rewriting phase, making a 283-bit Montgomery multiplier verify 90x faster than its unoptimized counterpart.

Discussion and Limitations

While the "no-carry" advantage allows for near-linear speedup, the primary constraint is memory. As shown in the performance data, each additional thread increases the total RAM required to store intermediate polynomials. For 571-bit circuits, using 30 threads approached the 32GB limit of the test environment.

Furthermore, this specific parallelization strategy is tailored to $GF(2^m)$ and cannot be directly applied to standard integer multipliers found in general-purpose CPUs, as those rely on complex carry-chain dependencies. Future work will focus on more efficient memory management and exploring the impact of different irreducible polynomials on verification complexity.

Summary updated

Abstract

Galois field (GF) arithmetic is used to implement critical arithmetic components in communication and security-related hardware, and verification of such components is of prime importance. Current techniques for formally verifying such components are based on computer algebra methods that proved successful in verification of integer arithmetic circuits. However, these methods are sequential in nature and do not offer any parallelism. This paper presents an algebraic functional verification technique of gate-level GF (2m ) multipliers, in which verification is performed in bit-parallel fashion. The method is based on extracting a unique polynomial in Galois field of each output bit independently. We demonstrate that this method is able to verify an n-bit GF multiplier in n threads. Experiments performed on pre- and post-synthesized Mastrovito and Montgomery multipliers show high efficiency up to 571 bits.
BibTeX
@inproceedings{yu2017efficient,
  author = {Cunxi Yu and Maciej J. Ciesielski},
  title = {{Efficient Parallel Verification of Galois Field Multipliers}},
  booktitle = {ASP-DAC},
  year = {2017},
  url = {https://openreview.net/forum?id=-cZqFRhgF7pu},
}
Figure