projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15812bf
)
(no commit message)
author
lkcl
<lkcl@web>
Thu, 28 Jan 2021 00:17:59 +0000
(
00:17
+0000)
committer
IkiWiki
<ikiwiki.info>
Thu, 28 Jan 2021 00:17:59 +0000
(
00:17
+0000)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index 8f34351d455404c3993733cc09cb316a88f5457a..a6096d6fa3596ea5f0b9e06205f40aa3255f42d5 100644
(file)
--- 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) :