Skip to content

Commit e88a882

Browse files
upf: document supply-net commands and options
Add README entries for upf_version, create_supply_port, create_supply_net and connect_supply_net, and for the new create_power_domain and set_isolation options, so the man/Tcl command-count doc check matches. Update the readme message check golden accordingly. Signed-off-by: Saurav Singh <saurav.singh@fermions.co>
1 parent d7d9c7f commit e88a882

2 files changed

Lines changed: 81 additions & 1 deletion

File tree

‎src/upf/README.md‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ This command creates power domain for a group of modules.
4646
```tcl
4747
create_power_domain
4848
[-elements elements]
49+
[-include_scope]
50+
[-supply supply]
4951
name
5052
```
5153

@@ -54,6 +56,8 @@ create_power_domain
5456
| Switch Name | Description |
5557
| ----- | ----- |
5658
| `-elements` | List of module paths that belong this this domain OR `.` for top domain. |
59+
| `-include_scope` | Deprecated in UPF 2.1, equivalent to `-elements {.}`. A warning is issued. |
60+
| `-supply` | `{supply_set_handle [supply_set_ref]}`. May be repeated. Stored on the domain only. |
5761
| `name` | Domain name. |
5862

5963
### Create Logic Port
@@ -74,6 +78,76 @@ create_logic_port
7478
| `-direction` | Direction of the port (`in`, `out`, `inout`). |
7579
| `port_name` | Port name. |
7680

81+
### UPF Version
82+
83+
Declares the UPF version of the file. OpenROAD implements IEEE 1801-2013
84+
(UPF 2.1); any other version is accepted with a warning.
85+
86+
```tcl
87+
upf_version version
88+
```
89+
90+
#### Options
91+
92+
| Switch Name | Description |
93+
| ----- | ----- |
94+
| `version` | UPF version string, e.g. `2.1`. |
95+
96+
### Create Supply Port
97+
98+
This command creates a supply port.
99+
100+
```tcl
101+
create_supply_port
102+
[-direction direction]
103+
[-domain domain]
104+
port_name
105+
```
106+
107+
#### Options
108+
109+
| Switch Name | Description |
110+
| ----- | ----- |
111+
| `-direction` | Direction of the port (`in`, `out`, `inout`), default value is `in`. |
112+
| `-domain` | Accepted for compatibility, not used by OpenROAD. |
113+
| `port_name` | Supply port name. |
114+
115+
### Create Supply Net
116+
117+
This command creates a supply net.
118+
119+
```tcl
120+
create_supply_net
121+
[-domain domain]
122+
[-reuse]
123+
net_name
124+
```
125+
126+
#### Options
127+
128+
| Switch Name | Description |
129+
| ----- | ----- |
130+
| `-domain` | Power domain in which the supply net is created. |
131+
| `-reuse` | Makes an existing supply net available in `-domain`. Requires `-domain`, and the net must have been created with `-domain`. |
132+
| `net_name` | Supply net name. |
133+
134+
### Connect Supply Net
135+
136+
This command connects a supply net to one or more ports.
137+
138+
```tcl
139+
connect_supply_net
140+
-ports ports
141+
net_name
142+
```
143+
144+
#### Options
145+
146+
| Switch Name | Description |
147+
| ----- | ----- |
148+
| `-ports` | List of rooted port names: supply ports, design ports, or hierarchical pin/port names (e.g. `u1/VDD`). At least one is required. |
149+
| `net_name` | Supply net name. |
150+
77151
### Create Power Switch
78152

79153
This command creates power switch.
@@ -110,6 +184,9 @@ set_isolation
110184
[-clamp_value clamp_value]
111185
[-isolation_signal isolation_signal]
112186
[-isolation_sense isolation_sense]
187+
[-isolation_supply_set isolation_supply_set]
188+
[-source source]
189+
[-sink sink]
113190
[-location location]
114191
[-update]
115192
name
@@ -124,6 +201,9 @@ set_isolation
124201
| `-clamp_value` | Value the isolation can drive (`0`, `1`). |
125202
| `-isolation_signal` | The control signal for this strategy. |
126203
| `-isolation_sense` | The active level of isolation control signal (`high`, `low`), default value is `high`. |
204+
| `-isolation_supply_set` | Supply set of the isolation cells. Stored on the strategy only. |
205+
| `-source` | Source supply set. Stored on the strategy only. |
206+
| `-sink` | Sink supply set. Stored on the strategy only. |
127207
| `-location` | Domain in which isolation cells are placed (`parent`, `self`, `fanout`), default value is `self`. |
128208
| `-update` | Only available if using existing strategy, will error if the strategy doesn't exist. |
129209
| `name` | Isolation strategy name. |

‎src/upf/test/upf_readme_msgs_check.ok‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
README.md
2-
Names: 12, Desc: 12, Syn: 12, Options: 12, Args: 12
2+
Names: 16, Desc: 16, Syn: 16, Options: 16, Args: 16
33
Global Examples: None
44
Global See Also: None
55
Man2 successfully compiled.

0 commit comments

Comments
 (0)