From 5bf5f39dd827a20ea37a273a3c4aeaaf2fb21a98 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 18:04:46 +0000 Subject: [PATCH] add decoding of shift table partial results --- 3d_gpu/architecture/dynamic_simd/shift.mdwn | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/3d_gpu/architecture/dynamic_simd/shift.mdwn b/3d_gpu/architecture/dynamic_simd/shift.mdwn index d2a8d2ab6..dce5142de 100644 --- a/3d_gpu/architecture/dynamic_simd/shift.mdwn +++ b/3d_gpu/architecture/dynamic_simd/shift.mdwn @@ -85,7 +85,20 @@ For o3: 1 1 0 | a0b0[31:24] | a1b0[23:16] | a2b2[15:8] | a3b3 1 1 1 | a0b0[31:24] | a1b1[23:16] | a2b2[15:8] | a3b3 -Where for o0 the output is simple a0b0 for all partition permutations. + therefore: + + if True: o3 = a0b0[31:24] + if ~p0: o3 |= a1b0[23:16] + if p0: o3 |= a1b1[23:16] + if ~p0&p1: o3 |= a2b1[15:8] + if p0&p1: o3 |= a2b0[15:8] + if p1: o3 |= a2b2[15:8] + if ~p0&~p1&~p2: o3 |= a3b0 + if p0&~p1&~p2: o3 |= a3b1 + if p1&~p2: o3 |= a3b2 + if p2: o3 |= a3b3 + +Where for o0 the output is simple: a0b0 for all partition permutations. ## Note -- 2.30.2