about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-10-06 12:10:24 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-10-07 11:11:59 +0000
commit505960d0c6e104f66ee188cbfd90f240ff6686e2 (patch)
treed87b987da5aa3eb37050b54ccf2a719de47f4f1a /src
parent852744bb2e83dce906d40ef8cd28abc5346242bd (diff)
downloadfocaccia-505960d0c6e104f66ee188cbfd90f240ff6686e2.tar.gz
focaccia-505960d0c6e104f66ee188cbfd90f240ff6686e2.zip
Enable reading DCZID properly
Diffstat (limited to 'src')
-rw-r--r--src/focaccia/arch/arch.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/focaccia/arch/arch.py b/src/focaccia/arch/arch.py
index a7ab13b..8aac8b5 100644
--- a/src/focaccia/arch/arch.py
+++ b/src/focaccia/arch/arch.py
@@ -73,12 +73,20 @@ class Arch():
     def get_reg_accessor(self, regname: str) -> RegisterAccessor | None:
         """Get an accessor for a register name, which may be an alias.
 
-        Is used internally by ProgramState to access aliased registers.
+        It is used internally by ProgramState to access aliased registers.
         """
         _regname = self.to_regname(regname)
         return self._accessors.get(_regname, None)
 
     def get_reg_reader(self, regname: str) -> Callable[[], int] | None:
+        """Read a register directly from Focaccia
+
+        :param name: The register to read.
+        :return: The register value.
+
+        It is used to enable reading registers that would otherwise not be accessible by other
+        means. Only meant to replace reading from the program directly for system-level constants.
+        """
         return None
 
     def __eq__(self, other):