Skip to content

Commit

Permalink
rcx: add missing param docs
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <[email protected]>
  • Loading branch information
maliberty committed Nov 22, 2024
1 parent e345017 commit 1378560
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
18 changes: 16 additions & 2 deletions src/rcx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,39 @@ returned.
```tcl
extract_parasitics
[-ext_model_file filename]
[-corner cornerIndex]
[-corner_cnt count]
[-max_res ohms]
[-coupling_threshold fF]
[-debug_net_id id]
[-dbg dbg_num ]
[-lef_res]
[-lef_rc]
[-cc_model track]
[-context_depth depth]
[-no_merge_via_res]
[-skip_over_cell ]
[-version]
```

#### Options

| Switch Name | Description |
| ----- | ----- |
| `-ext_model_file` | Specify the Extraction Rules file used for the extraction. |
| `-corner cornerIndex` | Corner to extract. Default -1. |
| `-corner_cnt` | Defines the number of corners used during the parasitic extraction. |
| `-max_res` | Combines resistors in series up to the threshold value. |
| `-coupling_threshold` | Coupling below this threshold is grounded. The default value is `0.1`, units are in `fF`, accepted values are floats. |
| `-debug_net_id` | *Developer Option*: Net ID to evaluate. |
| `-dbg dbg_num` | Debug messaging level. Default 0. |
| `-lef_res` | Override LEF resistance per unit. |
| `-lef_rc` | Use LEF RC values. Default false. |
| `-cc_model` | Specify the maximum number of tracks of lateral context that the tool considers on the same routing level. The default value is `10`, and the allowed values are integers `[0, MAX_INT]`. |
| `-context_depth` | Specify the number of levels of vertical context that OpenRCX needs to consider for the over/under context overlap for capacitance calculation. The default value is `5`, and the allowed values are integers `[0, MAX_INT]`. |
| `-no_merge_via_res` | Separates the via resistance from the wire resistance. |
| `-skip_over_cell` | Ignore shapes in cells. .Default false. |
| `-version` | select between v1 and v2 modeling. Defaults to 1.0. |

### Write SPEF

Expand Down Expand Up @@ -127,6 +137,8 @@ and contains the RC numbers from the parasitics in the database and the
```tcl
diff_spef
[-file filename]
[-spef_corner spef_num]
[-ext_corner ext_num]
[-r_res]
[-r_cap]
[-r_cc_cap]
Expand All @@ -138,6 +150,8 @@ diff_spef
| Switch Name | Description |
| ----- | ----- |
| `-file` | Path to the input `.spef` filename. |
| `-spef_corner spef_num` | The spef corner to diff. |
| `-ext_corner ext_num` | The extraction corner to diff. |
| `-r_res` | Read resistance. |
| `-r_cap` | Read capacitance. |
| `-r_cc_cap` | Read coupled capacitance. |
Expand All @@ -161,6 +175,7 @@ bench_wires
[-diag]
[-all]
[-db_only]
[-v1]
[-under_met layer]
[-w_list width]
[-s_list space]
Expand All @@ -177,6 +192,7 @@ bench_wires
| `-len` | Wirelength in microns in the pattern. The default value is `100`, and the allowed values are integers `[0, MAX_INT]`. |
| `-all` | Consider all different pattern geometries (`over`, `under`, `over_under`, and `diagonal`). |
| `-db_only` | Run with db values only. All parameters in `bench_wires` are ignored. |
| `-v1` | Generation version one patterns. |
| `-under_met` | Consider under metal layer. |
| `-w_list` | Lists of wire width multipliers from the minimum spacing defined in the LEF. |
| `-s_list` | Lists of wire spacing multipliers from the minimum spacing defined in the LEF. The list will be the input index on the OpenRCX RC table (Extraction Rules file). |
Expand Down Expand Up @@ -235,7 +251,6 @@ write_rules
[-file filename]
[-dir dir]
[-name name]
[-pattern pattern]
[-db]
```

Expand All @@ -246,7 +261,6 @@ write_rules
| `-file` | Output file name. |
| `-dir` | Output file directory. |
| `-name` | Name of rule. |
| `-pattern` | Flag to write the pattern to rulefile (0/1). |
| `-db` | DB tbc. |

## Example scripts
Expand Down
10 changes: 6 additions & 4 deletions src/rcx/src/OpenRCX.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sta::define_cmd_args "extract_parasitics" {
[-max_res ohms]
[-coupling_threshold fF]
[-debug_net_id id]
[ -dbg dbg_num ]
[-dbg dbg_num ]
[-lef_res]
[-lef_rc]
[-cc_model track]
Expand All @@ -95,14 +95,14 @@ sta::define_cmd_args "extract_parasitics" {
proc extract_parasitics { args } {
sta::parse_key_args "extract_parasitics" args \
keys { -ext_model_file
-corner_cnt
-corner
-corner_cnt
-max_res
-coupling_threshold
-debug_net_id
-context_depth
-cc_model
-dbg
-cc_model
-context_depth
-version } \
flags { -lef_res -lef_rc
-no_merge_via_res -skip_over_cell }
Expand Down Expand Up @@ -400,7 +400,9 @@ proc gen_rcx_model { args } {

sta::define_cmd_args "write_rules" {
[-file filename]
[-dir dir]
[-name name]
[-db]
}

proc write_rules { args } {
Expand Down

0 comments on commit 1378560

Please sign in to comment.