15. Mmac_fun_ctest_gfp

15.1. Function description:

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

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

  • Filling data to address of operand a0, a1 & a2.

  • Configure MMAC coefficient & start MMAC operation.

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

15.2. Main Configuration:

15.2.1. MMAC operation:

Operation code

Field

Op a0 length

Operand a0 shift

Op a1 length

Operand a1 shift

Op a2 length

Operand a2 shift

Operation of a0 & a1

Operation of a1 & a2

Shift option

OP_MMAC

GF(2^m)

8 words

1

8 words

1

8 words

1

add

sum

letf shift of addends

15.3. Test result:

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

15.4. IO connection:

None