From 3c1060f7c7739270eb2a29c21aada587e298431e Mon Sep 17 00:00:00 2001 From: Catherine Date: Thu, 6 Jun 2024 03:13:08 +0100 Subject: [PATCH] docs: stdlib/memory: minor style improvement. NFC --- amaranth/hdl/_mem.py | 6 ++++-- amaranth/lib/memory.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/amaranth/hdl/_mem.py b/amaranth/hdl/_mem.py index 074a370..add1a89 100644 --- a/amaranth/hdl/_mem.py +++ b/amaranth/hdl/_mem.py @@ -25,7 +25,8 @@ class MemoryData: a default value for rows that are not explicitly initialized. Changing the initial contents of a :class:`MemoryData` is only possible until it is used to - elaborate a memory; afterwards, attempting to do so will raise :exc:`AlreadyElaborated`. + elaborate a memory; afterwards, attempting to do so will raise the :class:`AlreadyElaborated` + exception. .. warning:: @@ -510,7 +511,8 @@ class DummyPort: any such attributes may be set manually. """ # TODO(amaranth-0.6): remove - @deprecated("`DummyPort` is deprecated, use `amaranth.lib.memory.ReadPort` or `amaranth.lib.memory.WritePort` instead") + @deprecated("`DummyPort` is deprecated, use `amaranth.lib.memory.ReadPort` or " + "`amaranth.lib.memory.WritePort` instead") def __init__(self, *, data_width, addr_width, domain="sync", name=None, granularity=None): self.domain = domain diff --git a/amaranth/lib/memory.py b/amaranth/lib/memory.py index 199d1e6..adfd91e 100644 --- a/amaranth/lib/memory.py +++ b/amaranth/lib/memory.py @@ -23,7 +23,8 @@ class Memory(wiring.Component): the :ref:`elaborate ` method. Adding ports or changing initial contents of a :class:`Memory` is only possible until it is - elaborated; afterwards, attempting to do so will raise :class:`~amaranth.hdl.AlreadyElaborated`. + elaborated; afterwards, attempting to do so will raise the + :class:`~amaranth.hdl.AlreadyElaborated` exception. Platform overrides ------------------