From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 00:18:36 +0000 (+0100) Subject: add set before first demo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7815f7295a1a9feb0b86f127cd9a9dd96939c461;p=libreriscv.git add set before first demo --- diff --git a/openpower/sv/sbf.py b/openpower/sv/sbf.py new file mode 100644 index 000000000..1885a3929 --- /dev/null +++ b/openpower/sv/sbf.py @@ -0,0 +1,35 @@ +def sbf(RA, mask=None): + RT = RA if mask is not None else 0 + i = 0 + # start setting if no predicate or if 1st predicate bit set + setting_mode = mask is None + while i < 16: + bit = 1<