From f4b0498e290cc694c93377df4c11fb8f7712dccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Fri, 4 Aug 2023 20:56:46 +0200 Subject: [PATCH] csr.bus: fix typos. --- amaranth_soc/csr/bus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amaranth_soc/csr/bus.py b/amaranth_soc/csr/bus.py index 24de525..f23584a 100644 --- a/amaranth_soc/csr/bus.py +++ b/amaranth_soc/csr/bus.py @@ -174,7 +174,7 @@ def memory_map(self, memory_map): class Multiplexer(Elaboratable): class _Shadow: class Chunk: - """The interface between of a CSR multiplexer and a shadow register chunk.""" + """The interface between a CSR multiplexer and a shadow register chunk.""" def __init__(self, shadow, offset, elements): self.name = f"{shadow.name}__{offset}" self.data = Signal(shadow.granularity, name=f"{self.name}__data") @@ -195,7 +195,7 @@ def elements(self): granularity : :class:`int` Amount of bits stored in a chunk of the shadow register. overlaps : :class:`int` - Maximum amount of CSR elements that can share a chunk of the shadow register. Optional. + Maximum number of CSR elements that can share a chunk of the shadow register. Optional. If ``None``, it is implicitly set by :meth:`Multiplexer._Shadow.prepare`. """ def __init__(self, granularity, overlaps, *, name): @@ -272,7 +272,7 @@ def decode_address(self, addr, elem_range): └─────── log2(self.size) - The decoded offset would therefore be ``0xc`` (i.e. ``0b1100``). + The decoded offset would therefore be ``8`` (i.e. ``0b1000``). """ assert elem_range in self._ranges and addr in elem_range elem_size = 2 ** ceil(log2(elem_range.stop - elem_range.start))