(no commit message)
authorlkcl <lkcl@web>
Tue, 6 Jun 2023 20:28:52 +0000 (21:28 +0100)
committerIkiWiki <ikiwiki.info>
Tue, 6 Jun 2023 20:28:52 +0000 (21:28 +0100)
openpower/sv/po9_encoding/discussion.mdwn

index ca187c6c8cad0c32b9cf53ee95aaf0e8e8dfe5fd..681be3442f5be5f8f04dffa12cbb951e20bcdc7a 100644 (file)
 Length detection:
 
 ```
-    if PO1                  return 64
-    if not PO9              return 32
-    if Word[31] = 1         return 64
-    if Word[29:31] = 0b100  return 32
-    if Word[29:31] = 0b000  return 64
-
-    return 32
+    if PO1                   return 64
+    elif not PO9              return 32
+    elif Word[31] = 1         return 64
+    elif Word[29:31] = 0b100  return 32
+    elif Word[29:31] = 0b000  return 64
+    else                      return 32
 ```