From: Jacob Lifshay Date: Fri, 28 Apr 2023 08:49:30 +0000 (-0700) Subject: prefix-sum remap works! X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8d0c7bc00eeff2174d5735ca86b66fe29055202;p=openpower-isa.git prefix-sum remap works! --- diff --git a/openpower/isa/simplev.mdwn b/openpower/isa/simplev.mdwn index fae79b4c..33a02e66 100644 --- a/openpower/isa/simplev.mdwn +++ b/openpower/isa/simplev.mdwn @@ -278,22 +278,45 @@ Pseudo-code: else SVSHAPE0[30:31] <- 0b11 # DCT mode SVSHAPE0[6:11] <- 0b000101 # DCT "half-swap" mode - # set schedule up for parallel reduction + # set schedule up for parallel reduction or prefix-sum if (SVrm = 0b0111) then + # is scan/prefix-sum + is_scan <- SVyd = 2 # calculate the total number of operations (brute-force) vlen[0:6] <- [0] * 7 itercount[0:6] <- (0b00 || SVxd) + 0b0000001 - step[0:6] <- 0b0000001 - i[0:6] <- 0b0000000 - do while step