(no commit message)
authorlkcl <lkcl@web>
Tue, 15 Dec 2020 21:04:08 +0000 (21:04 +0000)
committerIkiWiki <ikiwiki.info>
Tue, 15 Dec 2020 21:04:08 +0000 (21:04 +0000)
openpower/sv/svp_rewrite/svp64/discussion.mdwn

index f8e279851a3ef5c7d63ebe0e262778646b2c9ef4..dd5951abb8f1a69b92dd581d2f40f147b2dc723c 100644 (file)
@@ -174,13 +174,15 @@ When there are 3 bits it would be possible to indicate whether to begin from a p
 
 Note: considerable care needs to be taken when putting these horiz/vertical CRs through the Dependency Matrices
 
+Indexing algorithm illustrating how the H/V modes would work.  Note that BA is the 3 bit CR register field that normsll, in scalar ISA, would reference only CR0-7 as CR[BA].
+
      for i in range(VL)
          y = i % 8
          x = i // 8
          if verticalmode:
              CRINDEX = BA + y*8 + x
          else:
-             CRINDEX = BA*8 i
+             CRINDEX = BA*8 i
          CR[CRINDEX] = ...