projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873b68b
)
(no commit message)
author
lkcl
<lkcl@web>
Wed, 27 Oct 2021 21:43:37 +0000
(22:43 +0100)
committer
IkiWiki
<ikiwiki.info>
Wed, 27 Oct 2021 21:43:37 +0000
(22:43 +0100)
3d_gpu/architecture/dynamic_simd/shape.mdwn
patch
|
blob
|
history
diff --git
a/3d_gpu/architecture/dynamic_simd/shape.mdwn
b/3d_gpu/architecture/dynamic_simd/shape.mdwn
index 9786ad0bd72aebe73c4e44075255aa455182aebb..c2c0ea138a8a9f3846697518690ae73462ca6144 100644
(file)
--- a/
3d_gpu/architecture/dynamic_simd/shape.mdwn
+++ b/
3d_gpu/architecture/dynamic_simd/shape.mdwn
@@
-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))