From 8c6a220b2956b4939f553bb13d54f6dcb1a7d487 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 2 Oct 2019 10:04:51 +0100 Subject: [PATCH] --- simple_v_extension/specification/bitmanip.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/simple_v_extension/specification/bitmanip.mdwn b/simple_v_extension/specification/bitmanip.mdwn index 0e741c3c9..23925483e 100644 --- a/simple_v_extension/specification/bitmanip.mdwn +++ b/simple_v_extension/specification/bitmanip.mdwn @@ -158,6 +158,22 @@ Pseudo-code: sif a2, a3, a0 1 1 x x x x 1 1 a2 contents +Pseudo-code: + + def sbf(rd, rs1, rs2): + rd = 0 + setting_mode = rs2 == x0 or (regs[rs2] & 1) + while i < XLEN: + bit = 1<