From: Luke Kenneth Casson Leighton Date: Mon, 18 Jul 2022 13:58:49 +0000 (+0100) Subject: add substep getter/setter to SVP64State X-Git-Tag: sv_maxu_works-initial~247 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bc9354a25cc84032396ebcc88fdb3bf7be7da3f;p=openpower-isa.git add substep getter/setter to SVP64State --- diff --git a/src/openpower/decoder/isa/svstate.py b/src/openpower/decoder/isa/svstate.py index 68c2a8b2..86b17f6b 100644 --- a/src/openpower/decoder/isa/svstate.py +++ b/src/openpower/decoder/isa/svstate.py @@ -55,6 +55,14 @@ class SVP64State(SelectableInt): def srcstep(self, value): self.fsi['srcstep'].eq(value) + @property + def substep(self): + return self.fsi['substep'].asint(msb0=True) + + @substep.setter + def substep(self, value): + self.fsi['substep'].eq(value) + @property def subvl(self): return self.fsi['subvl'].asint(msb0=True)