From 6d17737aa59f9dbcf09c20e51373eeb917155501 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 22 Oct 2021 16:20:12 +0100 Subject: [PATCH] --- 3d_gpu/architecture/dynamic_simd/simdscope.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3d_gpu/architecture/dynamic_simd/simdscope.mdwn b/3d_gpu/architecture/dynamic_simd/simdscope.mdwn index f1b3c9639..a81358c69 100644 --- a/3d_gpu/architecture/dynamic_simd/simdscope.mdwn +++ b/3d_gpu/architecture/dynamic_simd/simdscope.mdwn @@ -27,7 +27,8 @@ SimdScope is used as follows: a = s.Signal(64) b = s.Signal(32) - m.d.comb += b.eq(a[:32]) + with m.If(a > Const(2)): + m.d.comb += b.eq(a[:32]) Note that the scalar parameter is selected from a runtime/compiletime configuration parameter which can alter the context between scalar and -- 2.30.2