Data layer interface: Convert address_mask to a cached property

This commit is contained in:
Gustavo Moreira
2024-11-07 20:28:21 +11:00
parent 0ad8054f12
commit 9ae7c2bb10
+1 -1
View File
@@ -136,7 +136,7 @@ class DataLayerInterface(
def minimum_address(self) -> int:
"""Returns the minimum valid address of the space."""
@property
@functools.cached_property
def address_mask(self) -> int:
"""Returns a mask which encapsulates all the active bits of an address
for this layer."""