You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chipflow_lib/platforms/utils.py
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ class IOSignature(wiring.Signature):
78
78
:param direction: Input, Output or Bidir
79
79
:param width: width of port, default is 1
80
80
:param all_have_oe: controls whether each output wire is associated with an individual Output Enable bit or a single OE bit will be used for entire port, the default value is False, indicating that a single OE bit controls the entire port.
81
+
:param allocate_power: Whether a power line should be allocated with this interface
82
+
:param power_voltage: Voltage range of the allocated power
81
83
:param init: a :ref:`const-castable object <lang-constcasting>` for the initial values of the port
82
84
"""
83
85
@@ -195,11 +197,17 @@ class JTAGWire(StrEnum):
195
197
JTAGWire.TDO: Out(OutputIOSignature(1)),
196
198
})
197
199
200
+
@dataclass
201
+
classVoltageRange:
202
+
min: Optional[float] =None
203
+
max: Optional[float] =None
204
+
198
205
@dataclass
199
206
classPowerPins:
200
-
"A matched pair of power pins"
207
+
"A matched pair of power pins, with optional notation of the voltage range"
Copy file name to clipboardExpand all lines: docs/chipflow-toml-guide.rst
+1-18Lines changed: 1 addition & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,30 +148,13 @@ These pads are declared with the :term:type parameter, along with a name and oth
148
148
149
149
Note that in this context, the :term:type parameter can only be ``ground`` or ``power``.
150
150
151
-
The package definition provides default locations for standard pins like power, ground, clocks, and resets. You only need to specify the name and properties.
151
+
The package definition provides default locations for pins needed for bringup and test, like core power, ground, clock and reset, along with JTAG. These are called:
152
152
153
153
[chipflow.silicon.power]
154
154
vdd = { type = "power", name = "vdd", voltage = "1.8V" }
155
155
gnd = { type = "ground", name = "gnd" }
156
156
```
157
157
158
-
159
-
``[silicon.power]``
160
-
-------------------
161
-
162
-
This section outlines the connection of pads to the power supply available for the selected process and package.
163
-
These pads are declared with the :term:type parameter, along with a name and other optional information, like voltage.
164
-
165
-
Note that in this context, the :term:type parameter can only be ``ground`` or ``power``.
166
-
167
-
[chipflow.silicon.power]
168
-
vdd = { type = "power", name = "vdd", voltage = "1.8V" }
169
-
gnd = { type = "ground", name = "gnd" }
170
-
```
171
-
172
-
In the new format, the package definition provides default locations for standard pins like power, ground, clocks, and resets. You only need to specify the name and properties.
0 commit comments