From 2178c8464f808cfd5c1ed8bbc4b32f10e77e9d15 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Jul 2021 17:53:10 +0100 Subject: [PATCH] add DCT outer butterfly svshape setup --- openpower/isa/simplev.mdwn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index 0a735cb7..7549a192 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -138,6 +138,31 @@ Pseudo-code: SVSHAPE1[0:31] <- SVSHAPE0[0:31] # for FRA and FRT SVSHAPE0[28:29] <- 0b01 # j+halfstep schedule + # set schedule up for DCT Outer butterfly + if (SVRM = 0b0011) then + # calculate O(N log2 N) number of outer butterfly overlapping adds + vlen[0:6] <- [0] * 7 + n <- 0b001 + size <- 0b0000001 + itercount[0:6] <- (0b00 || SVxd) + 0b0000001 + itercount[0:6] <- (0b0 || itercount[0:5]) + do while n < 5 + if SVxd[4-n] = 0 then + leave + n <- n + 1 + count <- (itercount - 0b0000001) * size + vlen[0:6] <- vlen + count[7:13] + size[0:6] <- (size[1:6] || 0b0) + itercount[0:6] <- (0b0 || itercount[0:5]) + # set up template in SVSHAPE0, then copy to 1-3 + # set up FRB and FRS + SVSHAPE0[0:5] <- (0b0 || SVxd) # xdim + SVSHAPE0[30:31] <- 0b01 # Butterfly mode + SVSHAPE0[18:20] <- 0b011 # DCT Outer Butterfly sub-mode + # copy + SVSHAPE1[0:31] <- SVSHAPE0[0:31] + # for FRA and FRT + SVSHAPE0[28:29] <- 0b01 # j+halfstep schedule # set VL, MVL and Vertical-First SVSTATE[0:6] <- vlen SVSTATE[7:13] <- vlen -- 2.30.2