use new namedtuple in core when calling regspec_decode()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Dec 2021 15:07:38 +0000 (15:07 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Dec 2021 15:07:38 +0000 (15:07 +0000)
src/soc/simple/core.py

index 68b7132fe90327a6c06d523511524421aaa71c99..a7dcaa2e446a712676d12566e2ad8ade8c8eebc0 100644 (file)
@@ -1038,8 +1038,8 @@ class NonProductionCore(ControlBase):
 
                 # the PowerDecoder2 (main one, not the satellites) contains
                 # the decoded regfile numbers. obtain these now
-                okflag, regport = regspec_decode(m, readmode, e,
-                                                 regfile, regname)
+                decinfo = regspec_decode(m, readmode, e, regfile, regname)
+                okflag, regport = decinfo.okflag, decinfo.regport
 
                 # construct the dictionary of regspec information by regfile
                 if regname not in byregfiles_spec[regfile]: