From: Luke Kenneth Casson Leighton Date: Tue, 27 Jul 2021 16:20:07 +0000 (+0100) Subject: get DCT shortened table operational X-Git-Tag: xlen-bcd~195 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e0a8261dc693f8379d4db88ac7865c7c1a232a8;p=openpower-isa.git get DCT shortened table operational --- diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index 7d70691b..b8b56597 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -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 diff --git a/src/openpower/decoder/isa/remap_dct_yield.py b/src/openpower/decoder/isa/remap_dct_yield.py index 3b2bf64c..4d920558 100644 --- a/src/openpower/decoder/isa/remap_dct_yield.py +++ b/src/openpower/decoder/isa/remap_dct_yield.py @@ -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)