(no commit message)
authorlkcl <lkcl@web>
Wed, 27 Oct 2021 21:43:37 +0000 (22:43 +0100)
committerIkiWiki <ikiwiki.info>
Wed, 27 Oct 2021 21:43:37 +0000 (22:43 +0100)
3d_gpu/architecture/dynamic_simd/shape.mdwn

index 9786ad0bd72aebe73c4e44075255aa455182aebb..c2c0ea138a8a9f3846697518690ae73462ca6144 100644 (file)
@@ -307,3 +307,16 @@ on SimdShape input parameters.
         def get_cases(self):
         @property
         def blanklanes(self):
+
+# SimdShape arithmetic operators
+
+Rudimentary arithmetic operations are required in order to perform
+tricks such as:
+
+       m = Module()
+       with SimdScope(m, elwid, vec_el_counts) as s:
+           shape = SimdShape(s, fixed_width=width)
+           a = s.Signal(shape)
+           b = s.Signal(shape*2)
+           o = s.Signal(shape*3)
+       m.c.comb + o.eq(Cat(a, b))