From: lkcl Date: Sat, 12 Mar 2022 11:48:34 +0000 (+0000) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3091 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58dfc7e6ad57d77a0782f8310e941909ad1a71e3;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index fe34f7dde..8bfeab0cb 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -33,6 +33,8 @@ Useful resource: # summary +two major opcodes are needed + ternlog has its own major opcode | 29.30 |31| name | @@ -82,7 +84,6 @@ ternlog has its own major opcode 3 ops * grevlog -* ternlog bitops * GF mul-add * bitmask-reverse @@ -169,7 +170,8 @@ bits 21..22 may be used to specify a mode, such as treating the whole integer ze ## ternlog -a 4 operand variant which becomes more along the lines of an FPGA: +a 5 operand variant which becomes more along the lines of an FPGA, +this is very expensive: 4 in and 1 out | 0.5|6.10|11.15|16.20|21.25| 26...30 |31| | -- | -- | --- | --- | --- | -------- |--| @@ -189,13 +191,21 @@ also, another possible variant involving swizzle and vec4: | 0.5|6.10|11.15| 16.23 |24.27 | 28.30 |31| | -- | -- | --- | ----- | ---- | ----- |--| -| NN | RT | RA | imm | mask | -01 |0 | - - for i in range(8): - idx = RA.x[i] << 2 | RA.y[i] << 1 | RA.z[i] - res = (imm & (1<