From 7815f7295a1a9feb0b86f127cd9a9dd96939c461 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 01:18:36 +0100 Subject: [PATCH] add set before first demo --- openpower/sv/sbf.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 openpower/sv/sbf.py 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<