Assembly:

CRC32CB rt, rs

nanoMIPS. Optional, present when Config5.CRCP=1.

CRC32 (Castagnoli) Byte

Purpose:

CRC32 (Castagnoli) Byte. Generate a 32-bit CRC value $rt based on the reversed polynomial0x82F63B78, using cumulative 32-bit CRC value $rt and right-justified byte-sized message $rs as inputs.

Availability:

nanoMIPS. Optional, present when Config5.CRCP=1.

Format:

001000

rt

rs

x

100

1111

1

01

000

6

5

5

3

3

4

1

2

3

Operation:

if C0.Config5.CRCP == 0:
    raise exception('RI')
result = crc32(value=GPR[rt], message=GPR[rs], nbits=8, poly=0x82F63B78)
GPR[rt] = sign_extend(result, from_nbits=32)

Exceptions:

Reserved Instruction on cores without CRC support.