From: lkcl Date: Thu, 28 Jan 2021 00:17:59 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~286 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=902259f100bd720a76c2ab70cac04eda4bb2fbcf;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 8f34351d4..a6096d6fa 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -413,7 +413,9 @@ uint_xlen_t clmulr(uint_xlen_t RA, uint_xlen_t RB) return x; } ``` -# Galois Field Multiply +# Galois Field + +## Multiply this requires 3 parameters and a "degree" @@ -429,7 +431,7 @@ realistically with the degree also needing to be an immediate it should be broug where the SimpleV variant may override RS-as-src differently from RS-as-dest -GF add +## GF add RS = GFADD(RS, RA|0, gfdegree, modulo=RB) @@ -487,7 +489,7 @@ if __name__ == "__main__": print("{:02x}".format(multGF2(0b10000000, 0b10000011))) ``` -gf invert +## gf invert ``` def gf_degree(a) :