From 7d6bdd6528a62f0d4aef4ed29e7d820dec1cf622 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 10 Jan 2021 04:42:22 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index e5692efa1..1fa2e49aa 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -69,15 +69,15 @@ bits 21..22 may be used to specify a mode, such as treating the whole integer ze a 4 operand variant which becomes more along the lines of an FPGA: -| 0.5|6.10|11.15|16.20|21.25| 26..30 |31| -| -- | -- | --- | --- | --- | -------- |--| -| NN | RT | RA | RB | RC | mode 10 |Rc| +| 0.5|6.10|11.15|16.20|21.25| 26..30 |31| +| -- | -- | --- | --- | --- | ------- |--| +| NN | RT | RA | RB | RC | mode 010 |Rc| for i in range(64): idx = RT[i] << 2 | RA[i] << 1 | RB[i] RT[i] = (RC & (1<