From 8db24df34e5d996dfb39167361005ff0ad066f99 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 23 Jan 2021 18:35:33 +0000 Subject: [PATCH] add in svp64 predicate mask encoding --- src/soc/sv/trans/svp64.py | 86 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 2 deletions(-) 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<