18. Hash_sha512_suspend

18.1. Function description:

This demo shows the function of SUSPEND & RESUME, the means about filling data writed to fifo is via soft.

  • Configure the SHA512 HASH.

  • Enable HASH and filling data by soft to start calculation.

  • Waiting one block has been pushed to fifo, then to suspend.

  • Configure the SHA1 HASH and enable HASH to start calculation.

  • Waiting SHA1 HASH calculation done to resume SHA512 HASH calculation.

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

Note

The golden data getted by hash online calculator.

18.2. Main configuration:

18.2.1. Hash configure

Algorithm

Mode

DMA

Data Type

sha512/sha1

hash

disable

no swap

18.3. Test result:

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

18.4. IO connection:

None