From: lkcl Date: Sat, 26 Dec 2020 19:09:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~827 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=702969dfbbe3b660c35cf1d070a0ce1ac9196bae;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 8447b72e6..ba373c6d5 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -20,6 +20,22 @@ vpdepd VRT,VRA,VRB other way round +# ternary bitops + +for every bit perform a lookup into a table using an 8bit immediate + +| 0.5|6.10|11.15|16.20| 21..22 | 23...30 |31| name | +| -- | -- | --- | --- | ------ | ------- |--| ------- | +| NN | RT | RA | RB | ?? | im[0:7] |Rc| XL-Form | + + for i in range(64): + idx = RT[i] << 2 | RA[i] << 1 | RB[i] + RT[i] = (imm & (1<