Skip to content

Commit

Permalink
scripts: yosys: generate readable names for instances (The-OpenROAD-P…
Browse files Browse the repository at this point in the history
  • Loading branch information
xobs authored Jan 10, 2023
1 parent a44a76b commit ac83c37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ These variables are optional that can be specified in the design configuration f

|Variable|Description|
|-|-|
| `SYNTH_AUTONAME` | Add a synthesis step to generate names for instances. This results in instance names that can be very long, but may be more useful than the internal names that are six digit numbers. <br> Enabled = 1, Disabled = 0 <br> (Default: `0`)|
| `SYNTH_BIN` | The yosys binary used in the flow. <br> (Default: `yosys`) |
| `SYNTH_CAP_LOAD` | The capacitive load on the output ports in femtofarads. <br> (Default: `33.5` ff)|
| `SYNTH_MAX_FANOUT` | The max load that the output ports can drive. <br> (Default: `10` cells) |
Expand Down
11 changes: 11 additions & 0 deletions scripts/yosys/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,17 @@ proc run_strategy {output script strategy_name {postfix_with_strategy 0}} {
tee -o "$::env(synth_report_prefix).$strategy_escaped.chk.rpt" check
tee -o "$::env(synth_report_prefix).$strategy_escaped.stat.rpt" stat -top $::env(DESIGN_NAME) -liberty [lindex $::env(LIB_SYNTH_NO_PG) 0]

if { [info exists ::env(SYNTH_AUTONAME)] && $::env(SYNTH_AUTONAME) } {
# Generate public names for the various nets, resulting in very long names that include
# the full heirarchy, which is preferable to the internal names that are simply
# sequential numbers such as `_000019_`. Renamed net names can be very long, such as:
# manual_reset_gf180mcu_fd_sc_mcu7t5v0__dffq_1_Q_D_gf180mcu_ \
# fd_sc_mcu7t5v0__nor3_1_ZN_A1_gf180mcu_fd_sc_mcu7t5v0__aoi21_ \
# 1_A2_A1_gf180mcu_fd_sc_mcu7t5v0__nand3_1_ZN_A3_gf180mcu_fd_ \
# sc_mcu7t5v0__and3_1_A3_Z_gf180mcu_fd_sc_mcu7t5v0__buf_1_I_Z
autoname
}

if { $postfix_with_strategy } {
set output "$output.$strategy_escaped.nl.v"
}
Expand Down

0 comments on commit ac83c37

Please sign in to comment.