get DCT shortened table operational
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 27 Jul 2021 16:20:07 +0000 (17:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 27 Jul 2021 16:20:13 +0000 (17:20 +0100)
openpower/isa/simplev.mdwn
src/openpower/decoder/isa/remap_dct_yield.py

index 7d70691bd4ff595f7e072d021a4f80c47b79c009..b8b565976e43b3b6a9a84f73b651e1d188c340a2 100644 (file)
@@ -173,12 +173,14 @@ Pseudo-code:
         # copy
         SVSHAPE1[0:31] <- SVSHAPE0[0:31]
         SVSHAPE2[0:31] <- SVSHAPE0[0:31]
-        SVSHAPE3[0:31] <- SVSHAPE0[0:31]
+        if (SVRM != 0b0100) then
+            SVSHAPE3[0:31] <- SVSHAPE0[0:31]
         # for FRA and FRT
         SVSHAPE0[28:29] <- 0b01           # j+halfstep schedule
         # for cos coefficient
-        SVSHAPE2[28:29] <- 0b10           # ci schedule
-        SVSHAPE3[28:29] <- 0b11           # size schedule
+        SVSHAPE2[28:29] <- 0b10           # ci (k for mode 4) schedule
+        if (SVRM != 0b0100) then
+            SVSHAPE3[28:29] <- 0b11           # size schedule
     # set schedule up for DCT Outer butterfly
     if (SVRM = 0b0011) then
         # calculate O(N log2 N) number of outer butterfly overlapping adds
index 3b2bf64c276beaf278c8afeaae78f4b7f9ca020e..4d920558ef656e9fb1815215dfa48e606bcd86ad 100644 (file)
@@ -108,7 +108,7 @@ def iterate_dct_inner_butterfly_indices(SVSHAPE):
     # get indices to iterate over, in the required order
     n = SVSHAPE.lims[0]
     mode = SVSHAPE.lims[1]
-    print ("inner butterfly", mode)
+    #print ("inner butterfly", mode, SVSHAPE.skip)
     # creating lists of indices to iterate over in each dimension
     # has to be done dynamically, because it depends on the size
     # first, the size-based loop (which can be done statically)