From: Luke Kenneth Casson Leighton Date: Sat, 23 Jan 2021 18:35:33 +0000 (+0000) Subject: add in svp64 predicate mask encoding X-Git-Tag: 24jan2021_ls180~10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8db24df34e5d996dfb39167361005ff0ad066f99;p=soc.git add in svp64 predicate mask encoding --- diff --git a/src/soc/sv/trans/svp64.py b/src/soc/sv/trans/svp64.py index bc28c49b..c4e2f698 100644 --- a/src/soc/sv/trans/svp64.py +++ b/src/soc/sv/trans/svp64.py @@ -64,6 +64,30 @@ def get_extra_cr_3bit(etype, regmode, field): field = field >> 4 return sv_extra, field +# decodes predicate register encoding +def decode_predicate(encoding): + pmap = { # integer + '1<