From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 11:03:30 +0000 (+0100) Subject: add vector demo set inc first X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7b41ac1f363b48a241252f1aacc1603e60cf95e;p=libreriscv.git add vector demo set inc first --- diff --git a/openpower/sv/sif.py b/openpower/sv/sif.py new file mode 100644 index 000000000..9f2455f2e --- /dev/null +++ b/openpower/sv/sif.py @@ -0,0 +1,34 @@ +def sif(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<