rename SVP64REMAP to SVP64SHAPE
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Jul 2021 11:34:50 +0000 (12:34 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Jul 2021 11:34:50 +0000 (12:34 +0100)
src/openpower/decoder/isa/svshape.py
src/openpower/sv/svp64.py

index e2eeaeae884308d8c623237fb16e4986c9b95855..97df57aeb7889eb35fd44fabbd97ccfd2e30b64f 100644 (file)
@@ -2,7 +2,7 @@ from openpower.decoder.selectable_int import (FieldSelectableInt, SelectableInt,
                                         selectconcat)
 from openpower.decoder.isa.remapyield import iterate_indices
 from openpower.decoder.isa.remap_fft_yield import iterate_butterfly_indices
-from openpower.sv.svp64 import SVP64REMAP
+from openpower.sv.svp64 import SVP64SHAPE
 import os
 from copy import deepcopy
 from openpower.util import log
@@ -14,7 +14,7 @@ class SVSHAPE(SelectableInt):
         offs = 0
         # set up sub-fields from Record layout
         self.fsi = {}
-        l = deepcopy(SVP64REMAP.layout)
+        l = deepcopy(SVP64SHAPE.layout)
         l.reverse()
         for field, width in l:
             end =  offs+width
@@ -27,11 +27,11 @@ class SVSHAPE(SelectableInt):
     @property
     def order(self):
         permute = self.fsi['permute'].asint(msb0=True)
-        return SVP64REMAP.order(permute)
+        return SVP64SHAPE.order(permute)
 
     @order.setter
     def order(self, value):
-        rorder = SVP64REMAP.rorder(value)
+        rorder = SVP64SHAPE.rorder(value)
         self.fsi['permute'].eq(rorder)
 
     @property
index cdf7a85e6e182b826ac458e90dd4c4475ea2130b..16134e0842030a69db55fddef6046f20eb7adfe6 100644 (file)
@@ -50,9 +50,10 @@ roptions = {}
 for k, v in options.items():
     roptions[v] = k
 
+
 # in nMigen, Record begins at the LSB and fills upwards
 # however in OpenPOWER, numbering is MSB0.  sigh.
-class SVP64REMAP(Record):
+class SVP64SHAPE(Record):
     layout=[("mode"    , 2),
             ("skip"    , 2),
             ("offset"  , 4),
@@ -62,7 +63,7 @@ class SVP64REMAP(Record):
             ("ydimsz"  , 6),
             ("xdimsz"  , 6)]
 
-    """SVP64 SHAPE (REMAP) Record.
+    """SVP64 SHAPE Record.
 
     https://libre-soc.org/openpower/sv/remap/