File size: 7,954 Bytes
d59bb1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 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 |
# Tapcell
Tapcell and endcap insertion.
## Commands
```{note}
- Parameters in square brackets `[-param param]` are optional.
- Parameters without square brackets `-param2 param2` are required.
```
### Add Tapcell/Endcap
This command inserts tapcells or endcaps.
The figures below show two examples of tapcell insertion. When only the
`-tapcell_master` and `-endcap_master` masters are given, the tapcell placement
is similar to Figure 1. When the remaining masters are give, the tapcell
placement is similar to Figure 2.
| <img src="./doc/image/tapcell_example1.svg" width=450px> | <img src="./doc/image/tapcell_example2.svg" width=450px> |
|:--:|:--:|
| Figure 1: Tapcell insertion representation | Figure 2: Tapcell insertion around macro representation |
```tcl
tapcell
[-tapcell_master tapcell_master]
[-tap_prefix tap_prefix]
[-endcap_master endcap_master]
[-endcap_prefix endcap_prefix]
[-distance dist]
[-disallow_one_site_gaps]
[-halo_width_x halo_x]
[-halo_width_y halo_y]
[-tap_nwin2_master tap_nwin2_master]
[-tap_nwin3_master tap_nwin3_master]
[-tap_nwout2_master tap_nwout2_master]
[-tap_nwout3_master tap_nwout3_master]
[-tap_nwintie_master tap_nwintie_master]
[-tap_nwouttie_master tap_nwouttie_master]
[-cnrcap_nwin_master cnrcap_nwin_master]
[-cnrcap_nwout_master cnrcap_nwout_master]
[-incnrcap_nwin_master incnrcap_nwin_master]
[-incnrcap_nwout_master incnrcap_nwout_master]
[-tbtie_cpp tbtie_cpp]
[-endcap_cpp endcap_cpp]
[-no_cell_at_top_bottom]
```
#### Options
| Switch Name | Description |
| ----- | ----- |
| `-tapcell_master` | Master used as a tapcell. |
| `-tap_prefix` | Prefix for the tapcell instances. The default value is `TAP_`. |
| `-endcap_master` | Master used as an endcap. |
| `-endcap_prefix` | Prefix for the endcaps instances. The default value is `PHY_`. |
| `-distance` | Distance (in microns) between each tapcell in the checkerboard. |
| `-disallow_one_site_gaps` | KIV. |
| `-halo_width_x` | Horizontal halo size (in microns) around macros during cut rows. |
| `-halo_width_y` | Vertical halo size (in microns) around macros during cut rows. |
| `-tap_nwintie_master` | Master cell placed at the top and bottom of|macros and the core area according the row orientation. |
| `-tap_nwin2_master` | Master cell placed at the top and bottom of macros and the core area according the row orientation. This master should be smaller than `tap_nwintie_master` |
| `-tap_nwin3_master` | Master cell placed at the top and bottom of macros and the core area according the row orientation. This master should be smaller than `tap_nwin2_master`. |
| `-tap_nwouttie_master` | Master cell placed at the top and bottom of macros and the core area according the row orientation. |
| `-tap_nwout2_master` | Master cell placed at the top and bottom of macros and the core area according the row orientation. This master should be smaller than `tap_nwouttie_master`. |
| `-tap_nwout3_master` | Master cell placed at the top and bottom of macros and the core area according the row orientation | This master should be smaller than `tap_nwout2_master`. |
| `-incnrcap_nwin_master` | Master cell placed at the corners of macros, according the row orientation. |
| `-incnrcap_nwout_master` | Master cell placed at the corners of macros, according the row orientation. |
| `-cnrcap_nwin_master` | Macro cell placed at the corners the core area according the row orientation. |
| `-cnrcap_nwout_master` | Macro cell placed at the corners the core area according the row orientation. |
| `-tbtie_cpp` | Option is deprecated. |
| `-endcap_cpp` | Option is deprecated. |
| `-no_cell_at_top_bottom` | Option is deprecated. |
### Cut Rows
This command cuts rows.
```tcl
cut_rows
[-endcap_master endcap_master]
[-halo_width_x halo_x]
[-halo_width_y halo_y]
```
#### Options
| Switch Name | Description |
| ----- | ----- |
| `-endcap_master` | Master used as an endcap. |
| `-halo_width_x` | Horizontal halo size (in microns) around macros during cut rows. |
| `-halo_width_y` | Vertical halo size (in microns) around macros during cut rows. |
### Only adding boundary/endcap cells
Place endcaps into the design, the naming for the arguments to `place_endcaps` is based on the
LEF58 `CLASS` specification foe endcaps.
```tcl
place_endcaps
[-corner master]
[-edge_corner master]
[-endcap masters]
[-endcap_horizontal masters]
[-endcap_vertical master]
[-prefix prefix]
[-left_top_corner master]
[-right_top_corner master]
[-left_bottom_corner master]
[-right_bottom_corner master]
[-left_top_edge master]
[-right_top_edge master]
[-left_bottom_edge master]
[-right_bottom_edge master]
[-left_edge master]
[-right_edge master]
[-top_edge masters]
[-bottom_edge masters]
```
#### Options
| Switch Name | Description |
| ----- | ----- |
| `-prefix` | Prefix to use for the boundary cells. Defaults to "PHY_". |
| `-corner` | Master for the corner cells on the outer corners. |
| `-edge_corner` | Master for the corner cells on the inner corners. |
| `-endcap` | Master used as an endcap. |
| `-endcap_horizontal` | List of masters for the top and bottom row endcaps. (overrides `-endcap`). |
| `-endcap_vertical` | Master for the left and right row endcaps. (overrides `-endcap`). |
| `-left_top_corner` | Master for the corner cells on the outer top left corner. (overrides `-corner`). |
| `-right_top_corner` | Master for the corner cells on the outer top right corner. (overrides `-corner`). |
| `-left_bottom_corner` | Master for the corner cells on the outer bottom left corner. (overrides `-corner`). |
| `-right_bottom_corner` | Master for the corner cells on the outer bottom right corner. (overrides `-corner`). |
| `-left_top_edge` | Master for the corner cells on the inner top left corner. (overrides `-edge_corner`). |
| `-right_top_edge` | Master for the corner cells on the inner top right corner. (overrides `-edge_corner`). |
| `-left_bottom_edge` | Master for the corner cells on the inner bottom left corner. (overrides `-edge_corner`). |
| `-right_bottom_edge` | Master for the corner cells on the inner bottom right corner. (overrides `-edge_corner`). |
| `-left_edge` | Master for the left row endcaps. (overrides `-endcap_vertical`). |
| `-right_edge` | Master for the right row endcaps. (overrides `-endcap_vertical`). |
| `-top_edge` | List of masters for the top row endcaps. (overrides `-endcap_horizontal`). |
| `-bottom_edge` | List of masters for the bottom row endcaps. (overrides `-endcap_horizontal`). |
### Only adding Tapcells
This command is used for tapcell placement only.
```tcl
place_tapcells
-master tapcell_master
-distance dist
```
#### Options
| Switch Name | Description |
| ----- | ----- |
| `-master` | Master to use for the tapcells. |
| `-distance` | Distance between tapcells. |
### Remove Tapcells/Endcaps
This command is used for removing tapcells or endcaps based on their prefix.
```tcl
tapcell_ripup
-tap_prefix tap_prefix
-endcap_prefix endcap_prefix
```
#### Options
| Switch Name | Description |
| ----- | ----- |
| `-tap_prefix` | Remove tapcells with said prefix. |
| `-endcap_prefix` | Remove endcaps with said prefix. |
## Example scripts
You can find script examples for both 45nm and 14nm in `./etc/scripts`
```
./etc/scripts/example_14nm.tcl
./etc/scripts/example_45nm.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+tap+in%3Atitle)
about this tool.
## License
BSD 3-Clause License. See [LICENSE](LICENSE) file.
|