add ascii graphic for extsw svp64 operation
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Mar 2021 22:25:21 +0000 (22:25 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Mar 2021 22:25:21 +0000 (22:25 +0000)
src/soc/decoder/isa/test_caller_svp64_predication.py

index de8e39bcd49de1513008fe6f01de37934fedc945..cd4df1e929d4c6250139e61840339ed19e2e7b02 100644 (file)
@@ -49,10 +49,20 @@ class DecoderTestCase(FHDLTestCase):
         #       - dests are 5 and 6
         #       - source mask says "pick first element from source (5)
         #       - dest mask says "pick *second* element from dest (10)
+        #
         # therefore the operation that's carried out is:
         #       GPR(10) = extsb(GPR(5))
+        #
         # this is a type of back-to-back VGATHER and VSCATTER but it applies
         # to *operations*, not just MVs like in traditional Vector ISAs
+        # ascii graphic:
+        #
+        #   reg num        0 1 2 3 4 5 6 7 8 9 10
+        #   src ~r3=0b01                     Y N
+        #                                    |
+        #                              +-----+
+        #                              |
+        #   dest r3=0b10             N Y
 
         isa = SVP64Asm(['svextsb/sm=~r3/m=r3 5.v, 9.v'
                        ])