From 1c83f8ca36e29a7966b7a5a8cf354d9891ecab57 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 26 Sep 2021 15:54:47 +0100 Subject: [PATCH] --- 3d_gpu/architecture/dynamic_simd.mdwn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/3d_gpu/architecture/dynamic_simd.mdwn b/3d_gpu/architecture/dynamic_simd.mdwn index 1fd1013b9..4517674a0 100644 --- a/3d_gpu/architecture/dynamic_simd.mdwn +++ b/3d_gpu/architecture/dynamic_simd.mdwn @@ -100,5 +100,11 @@ Therefore, a Parallel Switch statement is as simple as taking the relevant colum b = PartitionedSignal(mask, 4) # likewise c = PartitionedSignal(mask, 32) d = PartitionedSignal(mask, 32) - + o = PartitionedSignal(mask, 32) + + with m.If(a): + comb += o.eq(c) + with m.Elif(b): + comb += o eq(d) + -- 2.30.2