@@ -25,11 +25,11 @@ class FieldPort(wiring.PureInterface):
2525 signature : :class:`FieldPort.Signature`
2626 Field port signature.
2727 path : iterable of :class:`str`
28- Path to the field port. Optional. See :class:`wiring.PureInterface`.
28+ Path to the field port. Optional. See :class:`amaranth.lib. wiring.PureInterface`.
2929
3030 Attributes
3131 ----------
32- shape : :ref:`shape-castable <lang-shapecasting >`
32+ shape : :ref:`shape-like <lang-shapelike >`
3333 Shape of the field. See :class:`FieldPort.Signature`.
3434 access : :class:`FieldPort.Access`
3535 Field access mode. See :class:`FieldPort.Signature`.
@@ -72,7 +72,7 @@ class Signature(wiring.Signature):
7272
7373 Arguments
7474 ---------
75- shape : :ref:`shape-castable <lang-shapecasting >`
75+ shape : :ref:`shape-like <lang-shapelike >`
7676 Shape of the field.
7777 access : :class:`FieldPort.Access`
7878 Field access mode.
@@ -93,7 +93,7 @@ class Signature(wiring.Signature):
9393 Raises
9494 ------
9595 :exc:`TypeError`
96- If ``shape`` is not a shape-castable object.
96+ If ``shape`` is not a shape-like object.
9797 :exc:`ValueError`
9898 If ``access`` is not a member of :class:`FieldPort.Access`.
9999 """
@@ -136,7 +136,7 @@ def check_parameters(cls, shape, access):
136136 Raises
137137 ------
138138 :exc:`TypeError`
139- If ``shape`` is not a shape-castable object.
139+ If ``shape`` is not a shape-like object.
140140 :exc:`ValueError`
141141 If ``access`` is not a member of :class:`FieldPort.Access`.
142142 """
@@ -155,7 +155,7 @@ def check_parameters(cls, shape, access):
155155 def create (self , * , path = None , src_loc_at = 0 ):
156156 """Create a compatible interface.
157157
158- See :meth:`wiring.Signature.create` for details.
158+ See :meth:`amaranth.lib. wiring.Signature.create` for details.
159159
160160 Returns
161161 -------
@@ -243,16 +243,16 @@ def create(self):
243243class FieldAction (wiring .Component ):
244244 """CSR register field action.
245245
246- A :class:`~wiring.Component` mediating access between a CSR bus and a range of bits within a
247- :class:`Register`.
246+ A :class:`~amaranth.lib. wiring.Component` mediating access between a CSR bus and a range of
247+ bits within a :class:`Register`.
248248
249249 Arguments
250250 ---------
251- shape : :ref:`shape-castable <lang-shapecasting >`
251+ shape : :ref:`shape-like <lang-shapelike >`
252252 Shape of the field. See :class:`FieldPort.Signature`.
253253 access : :class:`FieldPort.Access`
254254 Field access mode. See :class:`FieldPort.Signature`.
255- members : iterable of (:class:`str`, :class:`wiring.Member`) key/value pairs
255+ members : iterable of (:class:`str`, :class:`amaranth.lib. wiring.Member`) key/value pairs
256256 Signature members. Optional, defaults to ``()``. A :class:`FieldPort.Signature` member
257257 named 'port' and oriented as input is always present in addition to these members.
258258
@@ -486,7 +486,7 @@ class Register(wiring.Component):
486486 ---------
487487 fields : :class:`dict` or :class:`list` or :class:`Field`
488488 Collection of register fields. If ``None`` (default), a dict is populated from Python
489- :term:`variable annotations <python:variable annotations >`. ``fields`` is used to create
489+ :term:`variable annotations <python:variable annotation >`. ``fields`` is used to create
490490 a :class:`FieldActionMap`, :class:`FieldActionArray`, or :class:`FieldAction`,
491491 depending on its type (:class:`dict`, :class:`list`, or :class:`Field`).
492492 {arguments}
@@ -906,7 +906,8 @@ class Bridge(wiring.Component):
906906 """
907907 def __init__ (self , memory_map ):
908908 if not isinstance (memory_map , MemoryMap ):
909- raise TypeError (f"CSR bridge memory map must be an instance of MemoryMap, not { memory_map !r} " )
909+ raise TypeError (f"CSR bridge memory map must be an instance of MemoryMap, not "
910+ f"{ memory_map !r} " )
910911 if list (memory_map .windows ()):
911912 raise ValueError ("CSR bridge memory map cannot have windows" )
912913 for reg , reg_name , (reg_start , reg_end ) in memory_map .resources ():
0 commit comments