From: lkcl Date: Sat, 16 Jan 2021 01:32:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~453 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57f80aa665e5ca4ce0c80aee334ca3a0a46f9572;p=libreriscv.git --- diff --git a/3d_gpu/architecture/dynamic_simd/logicops.mdwn b/3d_gpu/architecture/dynamic_simd/logicops.mdwn index 748de9ad2..9fa4ca8e6 100644 --- a/3d_gpu/architecture/dynamic_simd/logicops.mdwn +++ b/3d_gpu/architecture/dynamic_simd/logicops.mdwn @@ -96,6 +96,8 @@ p2p1p0 | o0 | o1 | o2 | o3 Example: -* when p2p1p0 == 101 this indicates that the output is to contain an XOR of the top 8 bits, the middle 16 bits, and the low 8 bits. this in a 4 bit result (o3o2o1o0) +when p2p1p0 == 101 this indicates + +* that the output is to contain an XOR of the top 8 bits, the middle 16 bits, and the low 8 bits. this in a 4 bit result (o3o2o1o0) divided into `o3`, `o2o1` and `o0` * the top bit of the 4-bit answer contains x3, the middle 2 bits contain the XOR or x1 and x2, the first bit contains x0. * therefore, the final result: the top bit contains the XOR of the input bits 24 to 31, the middle 2 bits contains the XOR of bits 8 to 15, the lowest bit contains the XOR of bits 0 to 7.