17. Mod_fun_ctest_gfp

17.1. Function description:

This demo shows the operation of modular in GF(p).

  • Allocate enough memory space of SRAM used by internal logic during computation.

  • Filling data to operand a & b address.

  • Configure & start modular operation.

  • Waiting process done to compare the result with the golden data to check.

Note

The length of operand a must greater than operand b.

17.2. Main Configuration:

17.2.1. MOD operation:

Operation code

Option

Field

Operand a length

Operand b length

OP_MOD

ordinary

GF(p)

5 words

5 words

17.3. Test result:

If the result is same as the standard data, then print pass, if not print fail.

17.4. IO connection:

None