rename "PARALLEL" enums to "PTREDUCE" - parallel tree reduce
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Sep 2022 09:21:20 +0000 (10:21 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Sep 2022 09:21:20 +0000 (10:21 +0100)
src/openpower/consts.py
src/openpower/decoder/power_enums.py
src/openpower/decoder/power_svp64_rm.py
src/openpower/sv/trans/svp64.py

index 8f0ea054682f3fcb24ce08ae8287c0578530e11a..d1e7f626d38743bf5357c56f85666ebc2906dd5b 100644 (file)
@@ -254,7 +254,7 @@ class SVP64MODEb(_Const):
     BC_CTRTEST = 0 # CTR-test mode
     # reduce mode
     REDUCE = 2  # 0=normal predication 1=reduce mode
-    PARALLEL = 3 # 1=parallel reduce, 0=scalar reduce
+    PTREDUCE = 3 # 1=parallel reduce, 0=scalar reduce
     SVM = 3  # subvector reduce mode 0=independent 1=horizontal
     CRM = 4  # CR mode on reduce (Rc=1) 0=some 1=all
     RG = 4   # Reverse-gear on reduce
index bd8dfd1880adb20efe79ba396ed6709a899426e5..c02fa6ea2863b742d8e7f39144877a298cf5d1e0 100644 (file)
@@ -297,7 +297,7 @@ class SVP64RMMode(Enum):
     SATURATE = 3
     PREDRES = 4
     BRANCH = 5
-    PARALLEL = 6 # Parallel Reduction
+    PTREDUCE = 6 # Parallel Reduction
 
 
 @unique
index 9f804a17da76a76ca36aa847065f5ccaf0421668..a28d612c7b4c55ba04d83b4dca67056ba4394264 100644 (file)
@@ -180,8 +180,8 @@ class SVP64RMModeDecode(Elaboratable):
                         comb += self.mode.eq(SVP64RMMode.NORMAL)
                         comb += do_pu.eq(mode[SVP64MODE.LDST_PACK]) # Pack mode
                     with m.Elif(mode[SVP64MODE.REDUCE]):
-                        with m.If(mode[SVP64MODE.PARALLEL]):
-                            comb += self.mode.eq(SVP64RMMode.PARALLEL)
+                        with m.If(mode[SVP64MODE.PTREDUCE]):
+                            comb += self.mode.eq(SVP64RMMode.PTREDUCE)
                         with m.Else():
                             comb += self.mode.eq(SVP64RMMode.MAPREDUCE)
                             # Pack only active if SVM=1 & SUBVL>1 & Mode[4]=1
@@ -200,7 +200,7 @@ class SVP64RMModeDecode(Elaboratable):
             with m.If((~is_ldst) &                     # not for LD/ST
                         (mode2 == 0) &                 # first 2 bits == 0
                         mode[SVP64MODE.REDUCE] &       # bit 2 == 1
-                       (~mode[SVP64MODE.PARALLEL])):   # not parallel mapreduce
+                       (~mode[SVP64MODE.PTREDUCE])):   # not parallel mapreduce
                 comb += self.reverse_gear.eq(mode[SVP64MODE.RG]) # finally whew
 
             # extract zeroing
index f9a53a7bd4d80b6749844a3d118fb5b768e1c5c8..15844a26138098ce8d97c5e6c6682067afa155d4 100644 (file)
@@ -1235,7 +1235,7 @@ class SVP64Asm:
             # "mapreduce" modes
             elif sv_mode == 0b00:
                 if parallel:
-                    mode |= (0b1 << SVP64MODE.PARALLEL)  # sets parallel reduce
+                    mode |= (0b1 << SVP64MODE.PTREDUCE)  # sets parallel reduce
                     assert subvl == 0, "TODO sub-vector parallel reduce"
                 else:
                     mode |= (0b1 << SVP64MODE.REDUCE)  # sets mapreduce