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
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
@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
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),
("ydimsz" , 6),
("xdimsz" , 6)]
- """SVP64 SHAPE (REMAP) Record.
+ """SVP64 SHAPE Record.
https://libre-soc.org/openpower/sv/remap/