From 65b14682f7f2dc20cd041981642a0836c17137b5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 30 Sep 2019 17:04:13 +0100 Subject: [PATCH] add missing bitmanip opcodes --- .../specification/bitmanip.mdwn | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/simple_v_extension/specification/bitmanip.mdwn b/simple_v_extension/specification/bitmanip.mdwn index bc52fb763..25acef469 100644 --- a/simple_v_extension/specification/bitmanip.mdwn +++ b/simple_v_extension/specification/bitmanip.mdwn @@ -127,3 +127,41 @@ Pseudo-code: if (regs[rs2] & bit): setting_mode = True # back into "setting" mode i += 1 + +## sif - set including first bit + + # Example + + 7 6 5 4 3 2 1 0 Element number + + 1 0 0 1 0 1 0 0 a3 contents + sif a2, a3 + 0 0 0 0 0 1 1 1 a2 contents + + 1 0 0 1 0 1 0 1 a3 contents + sif a2, a3 + 0 0 0 0 0 0 0 1 a2 + + 1 1 0 0 0 0 1 1 a0 vcontents + 1 0 0 1 0 1 0 0 a3 contents + sif a2, a3, a0 + 1 1 x x x x 1 1 a2 contents + +## sof - set only first bit + + # Example + + 7 6 5 4 3 2 1 0 Element number + + 1 0 0 1 0 1 0 0 a3 contents + sof a2, a3 + 0 0 0 0 0 1 0 0 a2 contents + + 1 0 0 1 0 1 0 1 a3 contents + sof a2, a3 + 0 0 0 0 0 0 0 1 a2 + + 1 1 0 0 0 0 1 1 a0 vcontents + 1 1 0 1 0 1 0 0 a3 contents + sof a2, a3, a0 + 0 1 x x x x 0 0 a2 contents -- 2.30.2