From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 12:11:09 +0000 (+0100) Subject: add set only first demo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72989dd9f956de578634355da0b5b6b21696b85e;p=libreriscv.git add set only first demo --- diff --git a/openpower/sv/sof.py b/openpower/sv/sof.py new file mode 100644 index 000000000..164c32623 --- /dev/null +++ b/openpower/sv/sof.py @@ -0,0 +1,39 @@ +def sof(RA, mask=None, zero=False): + RT = RA if mask is not None and not zero else 0 + i = 0 + # start setting if no predicate or if 1st predicate bit set + setting_mode = mask is None + found = False + while i < 16: + bit = 1<