Skip to content

Commit 3c1060f

Browse files
committed
docs: stdlib/memory: minor style improvement. NFC
1 parent 48a2dc2 commit 3c1060f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

amaranth/hdl/_mem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class MemoryData:
2525
a default value for rows that are not explicitly initialized.
2626
2727
Changing the initial contents of a :class:`MemoryData` is only possible until it is used to
28-
elaborate a memory; afterwards, attempting to do so will raise :exc:`AlreadyElaborated`.
28+
elaborate a memory; afterwards, attempting to do so will raise the :class:`AlreadyElaborated`
29+
exception.
2930
3031
.. warning::
3132
@@ -510,7 +511,8 @@ class DummyPort:
510511
any such attributes may be set manually.
511512
"""
512513
# TODO(amaranth-0.6): remove
513-
@deprecated("`DummyPort` is deprecated, use `amaranth.lib.memory.ReadPort` or `amaranth.lib.memory.WritePort` instead")
514+
@deprecated("`DummyPort` is deprecated, use `amaranth.lib.memory.ReadPort` or "
515+
"`amaranth.lib.memory.WritePort` instead")
514516
def __init__(self, *, data_width, addr_width, domain="sync", name=None, granularity=None):
515517
self.domain = domain
516518

amaranth/lib/memory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class Memory(wiring.Component):
2323
the :ref:`elaborate <lang-elaboration>` method.
2424
2525
Adding ports or changing initial contents of a :class:`Memory` is only possible until it is
26-
elaborated; afterwards, attempting to do so will raise :class:`~amaranth.hdl.AlreadyElaborated`.
26+
elaborated; afterwards, attempting to do so will raise the
27+
:class:`~amaranth.hdl.AlreadyElaborated` exception.
2728
2829
Platform overrides
2930
------------------

0 commit comments

Comments
 (0)