From c7c1d561ba0eeb91df4986b3e468f2f38f9c429c Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 26 Sep 2021 15:59:16 +0100 Subject: [PATCH] --- 3d_gpu/architecture/dynamic_simd.mdwn | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/3d_gpu/architecture/dynamic_simd.mdwn b/3d_gpu/architecture/dynamic_simd.mdwn index 4517674a0..3212ad5f4 100644 --- a/3d_gpu/architecture/dynamic_simd.mdwn +++ b/3d_gpu/architecture/dynamic_simd.mdwn @@ -105,6 +105,13 @@ Therefore, a Parallel Switch statement is as simple as taking the relevant colum with m.If(a): comb += o.eq(c) with m.Elif(b): - comb += o eq(d) + comb += o.eq(d) +If these were ordinary Signals, they would be translated to a Switch where: +* if_tests would be Cat(a, b) i.e. a 2 bit quantity +* cases would be (quantity 2) "1-" and "-1" in order to match + against the first binary test bit of Cat(a, b) and the second, + respectively. +* the first case would be "1-" to activate `o.eq(c) +* the second case would be "-1" to activate o.eq(d) -- 2.30.2