From: lkcl Date: Mon, 25 Jan 2021 15:24:18 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~321 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51678e6ca5f4c92cd56ce17a92bb949df3711035;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 156fb2b53..16e7cda94 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -428,6 +428,21 @@ uint_xlen_t clmulr(uint_xlen_t RA, uint_xlen_t RB) ``` # Galois Field Multiply +this requires 3 parameters and a "degree" + + RT = GFMUL(RA, RB, gfdegree, modulo=RC) + +realistically with the degree also needing to be an immediate it should be brought down to an overwrite version: + + RS = GFMUL(RS, RA, gfdegree, modulo=RB) + +| 0.5|6.10|11.15|16.20|21.25| 26..30 |31| +| -- | -- | --- | --- | --- | ------- |--| +| NN | RS | RA | RB | deg | | | + +where the SimpleV variant may override RS-as-src differently from RS-as-dest + + ``` from functools import reduce