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90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# Chip-level Connections

The chip-level connections module in OpenROAD (`pad`) is based on the
open-source tool ICeWall. In this utility, either place an IO ring around the
boundary of the chip and connect with either wirebond pads or a bump array.

## Commands

```{note}
- Parameters in square brackets `[-param param]` are optional.
- Parameters without square brackets `-param2 param2` are required.
```

### Place IO Terminals

In the case where the bond pads are integrated into the padcell, the IO terminals need to be placed.
This command place terminals on the padring.

Example usage: 
```
place_io_terminals u_*/PAD
place_io_terminals u_*/VDD
```

```tcl
place_io_terminals
    -allow_non_top_layer
    inst_pins
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-allow_non_top_layer` | Allow the terminal to be placed below the top layer. |
| `inst_pins` | Instance pins to place the terminals on. |

### Defining a Bump Array

This command defines a bump array.

Example usage:

```
make_io_bump_array -bump BUMP -origin "200 200" -rows 14 -columns 14 -pitch "200 200"
```

```tcl
make_io_bump_array 
    -bump master
    -origin {x y}
    -rows rows
    -columns columns
    -pitch {x y}
    [-prefix prefix]
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-bump` | Name of the bump master. |
| `-origin` | Origin of the array. |
| `-rows` | Number of rows to create. |
| `-columns` | Number of columns to create. |
| `-pitch` | Pitch of the array. |
| `-prefix` | Name prefix for the bump array. The default value is `BUMP_`. |


### Remove Entire Bump Array

This command removes the entire bump array.

Example usage:

```
remove_io_bump_array -bump BUMP
```

```tcl
remove_io_bump_array 
    -bump master
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-bump` | Name of the bump master. |

### Remove a single Bump Instance

This command removes a single bump instance.

```tcl
remove_io_bump 
    instance_name
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `instance_name` | Name of the bump. |

### Assign a net to IO Bump

This command assigns a net to a bump instance.

Example usage:

```
assign_io_bump -net p_ddr_addr_9_o BUMP_6_0
assign_io_bump -net p_ddr_addr_8_o BUMP_6_2
assign_io_bump -net DVSS BUMP_6_4
assign_io_bump -net DVDD BUMP_7_3
assign_io_bump -net DVDD -terminal u_dvdd/DVDD BUMP_8_3
assign_io_bump -net p_ddr_addr_7_o BUMP_7_1
assign_io_bump -net p_ddr_addr_6_o BUMP_7_0
```

```tcl
assign_io_bump 
    -net net
    [-terminal iterm]
    [-dont_route]
    instance
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-net` | Net to connect to. |
| `-terminal` | Instance terminal to route to. |
| `-dont_route` | Flag to indicate that this bump should not be routed, only perform assignment. |
| `instance` | Name of the bump. |

### Make IO Sites

This command defines an IO site for the pads to be placed into.

Example usage:

```
make_io_sites -horizontal_site IOSITE_H -vertical_site IOSITE_V -corner_site IOSITE_C -offset 35
make_io_sites -horizontal_site IOSITE_H -vertical_site IOSITE_V -corner_site IOSITE_C -offset 35 -rotation_horizontal R180
```

```tcl
make_io_sites 
    -horizontal_site site
    -vertical_site site
    -corner_site site
    -offset offset
    [-rotation_horizontal rotation]
    [-rotation_vertical rotation]
    [-rotation_corner rotation]
    [-ring_index index]
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-horizontal_site` | Name of the site for the horizontal pads (east and west). |
| `-vertical_site` | Name of the site for the vertical pads (north and south). |
| `-corner_site` | Name of the site for the corner cells. |
| `-offset` | Offset from the die edge to place the rows. |
| `-rotation_horizontal` | Rotation to apply to the horizontal sites to ensure pads are placed correctly. The default value is `R0`. |
| `-rotation_vertical` | Rotation to apply to the vertical sites to ensure pads are placed correctly. The default value is `R0`. |
| `-rotation_corner` | Rotation to apply to the corner sites to ensure pads are placed correctly. The default value is `R0`. |
| `-ring_index` | Used to specify the index of the ring in case of multiple rings. |


### Remove IO Rows

When the padring is complete, the following command can remove the IO rows to avoid causing confusion with the other tools.

```tcl
remove_io_rows
```

### Placing Corner Cells

This command places the corner cells.

```tcl
place_corners 
    master
    [-ring_index index]
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `master` | Name of the master for the corners. |
| `-ring_index` | Used to specify the index of the ring in case of multiple rings. |

Example usage:

```
place_corners sky130_fd_io__corner_bus_overlay
```

### Placing Pads

To place a pad into the pad ring.

Example usage:

```
place_pad -row IO_SOUTH -location 280.0 {u_clk.u_in}
place_pad -row IO_SOUTH -location 360.0 -mirror {u_reset.u_in}
place_pad -master sky130_fd_io__top_ground_hvc_wpad -row IO_SOUTH -location 439.5 {u_vzz_0}
place_pad -master sky130_fd_io__top_power_hvc_wpad -row IO_SOUTH -location 517.5 {u_v18_0}
```

```tcl
place_pad 
    -row row_name
    -location offset
    -mirror
    [-master master]
    name
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-row` | Name of the row to place the pad into, examples include: `IO_NORTH`, `IO_SOUTH`, `IO_WEST`, `IO_EAST`, `IO_NORTH_0`, `IO_NORTH_1`. |
| `-location` | Offset from the bottom left chip edge to place the pad at. |
| `-mirror` | Specifies if the pad should be mirrored. |
| `-master` | Name of the instance master if the instance needs to be created. |
| `name` | Name of the instance. |


### Placing IO Filler Cells

To place the IO filler cells.

Example usage: 

```
place_io_fill -row IO_NORTH s8iom0s8_com_bus_slice_10um s8iom0s8_com_bus_slice_5um s8iom0s8_com_bus_slice_1um
place_io_fill -row IO_SOUTH s8iom0s8_com_bus_slice_10um s8iom0s8_com_bus_slice_5um s8iom0s8_com_bus_slice_1um
place_io_fill -row IO_WEST s8iom0s8_com_bus_slice_10um s8iom0s8_com_bus_slice_5um s8iom0s8_com_bus_slice_1um
place_io_fill -row IO_EAST s8iom0s8_com_bus_slice_10um s8iom0s8_com_bus_slice_5um s8iom0s8_com_bus_slice_1um
```

```tcl
place_io_fill 
    -row row_name
    [-permit_overlaps masters]
    masters
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-row` | Name of the row to place the pad into, examples include: `IO_NORTH`, `IO_SOUTH`, `IO_WEST`, `IO_EAST`, `IO_NORTH_0`, `IO_NORTH_1`. |
| `-permit_overlaps` | Names of the masters for the IO filler cells that allow for overlapping. |
| `masters` | Names of the masters for the IO filler cells. |

### Connecting Ring Signals

Once the ring is complete, use the following command to connect the ring signals.

```tcl
connect_by_abutment
```

### Place Wirebond Pads

To place the wirebond pads over the IO cells.

Example usage:

```
place_bondpad -bond PAD IO_*
```

```tcl
place_bondpad 
    -bond master
    [-offset {x y}]
    [-rotation rotation]
    io_instances
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-bond` | Name of the bondpad master. |
| `-offset` | Offset to place the bondpad at with respect to the io instance. |
| `-rotation` | Rotation of the bondpad. |
| `io_instances` | Names of the instances to add bond pads to. |

### Make False IO Site

If the library does not contain sites for the IO cells, the following command can be used to add them.
This should not be used unless the sites are not in the library.

Example usage:

```
make_fake_io_site -name IO_HSITE -width 1 -height 204
make_fake_io_site -name IO_VSITE -width 1 -height 200
make_fake_io_site -name IO_CSITE -width 200 -height 204
```


```tcl
make_fake_io_site 
    -name name
    -width width
    -height height
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-name` | Name of the site. |
| `-width` | Width of the site (in microns). |
| `-height` | Height of the site (in microns). |


### Redistribution Layer Routing

To route the Redistribution Layer (RDL) for the bump arrays.

```tcl
rdl_route 
    -layer layer
    [-bump_via access_via]
    [-pad_via access_via]
    [-width width]
    [-spacing spacing]
    [-turn_penalty penalty]
    [-allow45]
    nets
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-layer` | Layer to route on. |
| `-bump_via` | Via to use to to connect the bump to the routing layer. |
| `-pad_via` | Via to use to to connect the pad cell to the routing layer. |
| `-width` | Width of the routing. Defaults to minimum width for each respective layer. |
| `-spacing` | Spacing of the routing. Defaults to minimum spacing for each respective layer. |
| `-turn_penalty` | Scaling factor to apply to discurage turning to allow for straighter routes. The default value is `2.0`, and the allowed values are floats. |
| `-allow45` | Specifies that 45 degree routing is permitted. |
| `nets` | Nets to route. |

## Useful Developer Commands

If you are a developer, you might find these useful. More details can be found in the [source file](./src/ICeWall.cpp) or the [swig file](./src/pad.i).

| Command Name | Description |
| ----- | ----- |
| `find_site` | Find site given site name. |
| `find_master` | Find master given master name. |
| `find_instance` | Find instance given instance name. |
| `find_net` | Find net given net name. |
| `assert_required` | Assert argument that is required for `cmd` |
| `connect_iterm` | Connect instance terminals. Required inputs are: `inst_name`, `iterm_name`, `net_name`. |
| `convert_tcl` | These functions read from $ICeWall::library parameters to generate a standalone Tcl script. |

## Example Scripts

Example scripts for running ICeWall functions can be found in `./test`.

```
./test/assign_bumps.tcl
./test/bump_array_make.tcl
./test/bump_array_remove.tcl
./test/bump_array_remove_single.tcl
./test/connect_by_abutment.tcl
./test/make_io_sites.tcl
./test/place_bondpad.tcl
./test/place_bondpad_stagger.tcl
./test/place_pad.tcl
./test/rdl_route.tcl
./test/rdl_route_45.tcl
./test/rdl_route_assignments.tcl
```

## Regression Tests

There are a set of regression tests in `./test`. For more information, refer to this [section](../../README.md#regression-tests).

Simply run the following script:

```shell
./test/regression
```

## Limitations

## FAQs

Check out [GitHub discussion](https://github.com/The-OpenROAD-Project/OpenROAD/discussions/categories/q-a?discussions_q=category%3AQ%26A+pad)
about this tool.

## License

BSD 3-Clause License. See [LICENSE](../../LICENSE) file.