From 35e1ad6818b2e0077c1ce455fe4d4d62a731277a Mon Sep 17 00:00:00 2001 From: lkcl Date: Thu, 3 Oct 2019 09:11:43 +0100 Subject: [PATCH] --- simple_v_extension/specification/bitmanip.mdwn | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/simple_v_extension/specification/bitmanip.mdwn b/simple_v_extension/specification/bitmanip.mdwn index 0a572b7be..a78a64d47 100644 --- a/simple_v_extension/specification/bitmanip.mdwn +++ b/simple_v_extension/specification/bitmanip.mdwn @@ -220,17 +220,25 @@ Pseudo-code: def sof(rd, rs1, rs2): rd = 0 - # search mode starts on - search_mode = True + setting_mode = rs2 == x0 or (regs[rs2] & 1) while i < XLEN: bit = 1<