(no commit message)
authorlkcl <lkcl@web>
Thu, 22 Jun 2023 23:33:02 +0000 (00:33 +0100)
committerIkiWiki <ikiwiki.info>
Thu, 22 Jun 2023 23:33:02 +0000 (00:33 +0100)
openpower/sv/po9_encoding/discussion.mdwn

index c0688b9a57b20877bb30df4ff48e80519ee6ac5a..76007f146c0d1194c8ea3a5b7f3d38f6dcc65dc9 100644 (file)
@@ -317,6 +317,28 @@ test.  Only EXT000-063 is not by a "process of elimination" (if ... return True)
     else                     return 32
 ```
 
+**Scalar**: (includes EXT0xx, EXT2xx and EXT3xx):
+
+|0-5| 6-29   |30 31|32-37   | 38-663 | Description      |
+|---|--------|-----|--------|--------|------------------|
+|PO9| xxxx   | x x | 010001 |  ////  | RESERVED         |
+|PO9| xxxx   | x x | 000001 |  ////  | RESERVED         |
+|PO9| !ZERO  | 1 1 |  !PO9  |     xxxx        | SSingle:EXT232-263 |
+|PO9|  0000  | 1 1 |  !PO9  |     xxxx        | Scalar EXT232-263  |
+|PO9|  SVRM  | 1 0 |  !PO9  |     xxxx        | SVP64:EXT232-263   |
+|PO9|  0000  | 0 1 | Defined Word-instruction | 32-bit EXT300-363  |
+|PO9| !ZERO  | 0 1 | Defined Word-instruction | SSingle:EXT000-063 |
+|PO9|  SVRM  | 0 0 | Defined Word-instruction | SVP64:EXT000-063   |
+
+```
+    if PO1                    return True # EXT1xx is Scalar
+    if not PO9                return True # anything not PO9 is EXT0xx
+    if Word[6:29 ] = 0x000000 return True # EXT2xx and EXT3xx
+    if Word[32:37] = 0b010001 return False # double-PO9 Reserved
+    if Word[32:37] = 0b000001 return False # PO9-PO1 Reserved
+    return False                          # all else is SVP64/SSingle
+```
+
 **EXT232-263:**
 
 ```