From: lkcl Date: Wed, 27 Oct 2021 21:43:37 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3509 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bf119b1a7f566a0d90199eae144b2b8182ed653;p=libreriscv.git --- diff --git a/3d_gpu/architecture/dynamic_simd/shape.mdwn b/3d_gpu/architecture/dynamic_simd/shape.mdwn index 9786ad0bd..c2c0ea138 100644 --- 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))