vsha2ch.vv

Vector SHA-2 two rounds of compression, high part

This instruction is defined by:

Encoding

svg

Synopsis

Performs two rounds of SHA-2 compression (SHA-256 when SEW=32; SHA-512 when SEW=64, which requires Zvknhb). Two message schedule words from vs1 are processed with the eight words of current state held in vd and vs2 to produce four words of the next state, which are written to vd. vsha2ch.vv uses the two most significant message schedule words of the element group in vs1; vsha2cl.vv is identical except that it uses the two least significant.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<5> vs2 = $encoding[24:20];
Bits<5> vs1 = $encoding[19:15];
Bits<5> vd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original