From: lkcl Date: Fri, 22 Oct 2021 15:20:12 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3556 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d17737aa59f9dbcf09c20e51373eeb917155501;p=libreriscv.git --- 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