From: Luke Kenneth Casson Leighton Date: Sun, 28 Feb 2021 16:29:54 +0000 (+0000) Subject: more SVP64 enums X-Git-Tag: convert-csv-opcode-to-binary~139 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76becd00848e898e4b56582cee5c34bc13c9bcd5;p=soc.git more SVP64 enums --- diff --git a/src/soc/decoder/power_enums.py b/src/soc/decoder/power_enums.py index 0cee6124..10357bd7 100644 --- a/src/soc/decoder/power_enums.py +++ b/src/soc/decoder/power_enums.py @@ -165,6 +165,19 @@ class SVP64RMMode(Enum): SATURATE = 3 PREDRES = 4 +@unique +class SVP64width(Enum): + DEFAULT = 0 + EW_32 = 1 + EW_16 = 2 + EW_8 = 3 + +@unique +class SVP64subvl(Enum): + VEC1 = 0 + VEC2 = 1 + VEC3 = 2 + VEC4 = 3 # supported instructions: make sure to keep up-to-date with CSV files # just like everything else diff --git a/src/soc/sv/svp64.py b/src/soc/sv/svp64.py index d9933215..da9d7627 100644 --- a/src/soc/sv/svp64.py +++ b/src/soc/sv/svp64.py @@ -16,8 +16,8 @@ https://libre-soc.org/openpower/sv/svp64/ | MODE | `19:23` | changes Vector behaviour | """ -from nmigen import Record - +from nmigen import Record, Elaboratable, Module, Signal +from soc.decoder.power_enums import SVP64RMMode # in nMigen, Record begins at the LSB and fills upwards class SVP64Rec(Record): @@ -54,3 +54,6 @@ Arithmetic: 11 inv CR-bit Rc=1: pred-result CR sel 11 inv sz RC1 Rc=0: pred-result z/nonz """ + +class SVP64RMMode(Elaboratable): + pass