From 3aa87f84ca8935145c1814346cec511773623641 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 27 Oct 2021 22:48:36 +0100 Subject: [PATCH] --- 3d_gpu/architecture/dynamic_simd/shape.mdwn | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/3d_gpu/architecture/dynamic_simd/shape.mdwn b/3d_gpu/architecture/dynamic_simd/shape.mdwn index c2c0ea138..44de1e485 100644 --- a/3d_gpu/architecture/dynamic_simd/shape.mdwn +++ b/3d_gpu/architecture/dynamic_simd/shape.mdwn @@ -319,4 +319,20 @@ tricks such as: a = s.Signal(shape) b = s.Signal(shape*2) o = s.Signal(shape*3) - m.c.comb + o.eq(Cat(a, b)) + m.d.comb + o.eq(Cat(a, b)) + +as well as: + + with SimdScope(m, elwid, vec_el_counts) as s: + shape = SimdShape(s, fixed_width=width) + a = s.Signal(shape) + b = s.Signal(shape*2) + o2 = s.Signal(a.shape + b.shape) + +and: + + with SimdScope(m, elwid, vec_el_counts) as s: + shape = SimdShape(s, fixed_width=width) + a = s.Signal(16) # element width set to 16 + b = s.Signal(shape*2) + o2 = s.Signal(a.shape + b.shape) -- 2.30.2