From 5bf119b1a7f566a0d90199eae144b2b8182ed653 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 27 Oct 2021 22:43:37 +0100 Subject: [PATCH] --- 3d_gpu/architecture/dynamic_simd/shape.mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)) -- 2.30.2