Skip to content

Commit fa676f7

Browse files
lansergerobtaylor
authored andcommitted
Update to PinSignature docs
1 parent 51458a8 commit fa676f7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

chipflow_lib/platforms/utils.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ class PinSignature(wiring.Signature):
7171
Instead, you would typically utilize the more specific
7272
:py:obj:`InputPinSignature`, :py:obj:`OutputPinSignature`, or :py:obj:`BidirPinSignature` for defining pin interfaces.
7373
74-
direction: Input, Output or Bidir
75-
width: width of port, default is 1
76-
all_have_oe: controls whether each output wire associated with an individual wire or
77-
single Output Enable signal will used for entire port,
78-
the default value is False, indicating that each output wire will have its own dedicated Output Enable signal.
79-
init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
74+
:param direction: Input, Output or Bidir
75+
:param width: width of port, default is 1
76+
:param all_have_oe: controls whether each output wire associated with an individual wire or single Output Enable signal will used for entire port, the default value is False, indicating that each output wire will have its own dedicated Output Enable signal.
77+
:param init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
8078
"""
8179

8280
def __init__(self, direction: io.Direction, width: int = 1, all_have_oe: bool = False, init = None):
@@ -141,6 +139,7 @@ def OutputPinSignature(width, **kwargs):
141139
intended for connection to the physical pads of the integrated circuit package.
142140
143141
:param width: specifies the number of individual output wires within this port, each of which will correspond to a separate physical pad on the integrated circuit package.
142+
:type width: int
144143
:param init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
145144
"""
146145
return PinSignature(io.Direction.Output, width=width, **kwargs)
@@ -153,6 +152,7 @@ def InputPinSignature(width, **kwargs):
153152
intended for connection to the physical pads of the integrated circuit package.
154153
155154
:param width: specifies the number of individual input wires within this port, each of which will correspond to a separate physical pad on the integrated circuit package.
155+
:type width: int
156156
:param init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
157157
"""
158158
return PinSignature(io.Direction.Input, width=width, **kwargs)
@@ -165,7 +165,9 @@ def BidirPinSignature(width, **kwargs):
165165
intended for connection to the physical pads of the integrated circuit package.
166166
167167
:param width: specifies the number of individual input/output wires within this port. Each pair of input/output wires will correspond to a separate physical pad on the integrated circuit package.
168+
:type width: int
168169
:param all_have_oe: controls whether each output wire associated with an individual output enable wire or single Output Enable signal will be used for entire port, the default value is False, indicating that each output wire will have its own dedicated Output Enable signal.
170+
:type all_have_oe: bool, optional
169171
:param init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
170172
"""
171173
return PinSignature(io.Direction.Bidir, width=width, **kwargs)

0 commit comments

Comments
 (0)