projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4842168
)
(no commit message)
author
lkcl
<lkcl@web>
Fri, 12 Feb 2021 19:14:36 +0000
(19:14 +0000)
committer
IkiWiki
<ikiwiki.info>
Fri, 12 Feb 2021 19:14:36 +0000
(19:14 +0000)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index 27e957eebb35b6a1155a4d6353c1059aaf20aefd..638e8787d64a2e04422f6874de4c11a4da321832 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-265,6
+265,13
@@
uint_xlen_t bmext(RA, RB, sh)
}
```
+bitmask extract with reverse
+```
+msb = rb[5:0];
+rev[0:msb] = ra[msb:0];
+rt = ZE(rev[msb:0]);
+```
+
# grev
based on RV bitmanip