STDA045 November   2026 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2ED25519PH Algorithm Introduction
  6. 3MSPM0G Math Accelerator (MATHACL)
    1. 3.1 MATHACL Module
    2. 3.2 Multiply-Accumulate (MAC) Operation
  7. 4Accelerate the ED25519PH Algorithm by Using MATHACL
    1. 4.1 Loop Unrolled Implementation
      1. 4.1.1 Non-MATHACL Optimization
      2. 4.1.2 MATHACL Optimization
    2. 4.2 Loop Rolled Implementation
      1. 4.2.1 Non-MATHACL Optimization
      2. 4.2.2 MATHACL Optimization
    3. 4.3 Benchmark
  8. 5Summary
  9. 6References

MATHACL Module

The math accelerator (MATHACL) is a collection of hardware-accelerated 32-bit math functions to improve system computational throughput. Software running on the CPU invokes MATHACL by writing to the MATHACL registers. The MATHACL peripheral is supported in the MSPM0G series of devices like the MSPM0Gx50x, MSPM0Gx51x, and MSPM0G321x series, and the details of this feature are available in the MATHACL chapter of the MSPM0 G-Series 80MHz Microcontrollers Technical Reference Manual.

The MATHACL offloads mathematical calculations performed by the CPU to improve efficiency. The following hardware functions are available in the MATHACL:

  • Sine/cosine (SINCOS)
  • Arc tangent (ATAN2)
  • Square root (SQRT)
  • Divide (DIV)
  • Multiply with 32-bit result (MPY32)
  • Square with 32-bit result (SQUARE32)
  • Multiply with 64-bit result (MPY64)
  • Square with 64-bit results (SQUARE64)
  • Multiply-accumulate (MAC)
  • Square-accumulate (SAC)

The multiply-accumulate (MAC) operation is what is used in the ED25519PH algorithm.