(no commit message)
authorlkcl <lkcl@web>
Sat, 15 Apr 2023 13:43:39 +0000 (14:43 +0100)
committerIkiWiki <ikiwiki.info>
Sat, 15 Apr 2023 13:43:39 +0000 (14:43 +0100)
openpower/sv/rfc/ls009.mdwn

index 5370bf1e59423349b6803f5949fd539b40c4c83e..ee0a94b59685c89847d8db79f6e6ff40c0c27943 100644 (file)
@@ -2259,5 +2259,29 @@ def iterate_dct_outer_butterfly_indices(SVSHAPE):
 
 ```
 
+## REMAP selector
+
+Selecting which REMAP Schedule to use is shown by the pseudocode below.
+Each SVSHAPE 0-3 goes through this selection process.
+
+```
+        if self.mode == 0b00:
+            iterate_fn = iterate_indices
+        elif self.mode == 0b10:
+            iterate_fn = iterate_preduce_indices
+        elif self.mode in [0b01, 0b11]:
+            # further sub-selection
+            if self.ydimsz == 1:
+                iterate_fn = iterate_butterfly_indices
+            elif self.ydimsz == 2:
+                iterate_fn = iterate_dct_inner_butterfly_indices
+            elif self.ydimsz == 3:
+                iterate_fn = iterate_dct_outer_butterfly_indices
+            elif self.ydimsz in [5, 13]:
+                iterate_fn = iterate_dct_inner_costable_indices
+            elif self.ydimsz in [6, 14, 15]:
+                iterate_fn = iterate_dct_inner_halfswap_loadstore
+```
+
 
 [[!tag opf_rfc]]