Skip to content

Commit 03a6ea0

Browse files
authored
Merge pull request #4402 from The-OpenROAD-Project-staging/remove-libs-for-lec
added REMOVE_LIBS_FOR_LEC flow variable
2 parents 778c4e5 + e8b8709 commit 03a6ea0

4 files changed

Lines changed: 27 additions & 1 deletion

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ configuration file.
247247
| <a name="RECOVER_POWER"></a>RECOVER_POWER| Specifies how many percent of paths with positive slacks can be slowed for power savings [0-100].| 0|
248248
| <a name="REMOVE_ABC_BUFFERS"></a>REMOVE_ABC_BUFFERS (deprecated)| Remove abc buffers from the netlist. If timing repair in floorplanning is taking too long, use a SETUP/HOLD_SLACK_MARGIN to terminate timing repair early instead of using REMOVE_ABC_BUFFERS or set SKIP_LAST_GASP=1.| 0|
249249
| <a name="REMOVE_CELLS_FOR_LEC"></a>REMOVE_CELLS_FOR_LEC| String patterns directly passed to write_verilog -remove_cells <> for lec checks.| |
250+
| <a name="REMOVE_LIBS_FOR_LEC"></a>REMOVE_LIBS_FOR_LEC| List of Liberty files to exclude from LEC. This is required for cases where a Verilog black box needs to be used instead of a Liberty file.| |
250251
| <a name="REPAIR_PDN_VIA_LAYER"></a>REPAIR_PDN_VIA_LAYER| Remove power grid vias which generate DRC violations after detailed routing.| |
251252
| <a name="REPORT_CLOCK_SKEW"></a>REPORT_CLOCK_SKEW| Report clock skew as part of reporting metrics, starting at CTS, before which there is no clock skew. This metric can be quite time-consuming, so it can be useful to disable.| 1|
252253
| <a name="ROUTING_LAYER_ADJUSTMENT"></a>ROUTING_LAYER_ADJUSTMENT| Adjusts routing layer capacities to manage congestion and improve detailed routing. High values ease detailed routing but risk excessive detours and long global routing times, while low values reduce global routing failure but can complicate detailed routing. The global routing running time normally reduces dramatically (entirely design specific, but going from hours to minutes has been observed) when the value is low (such as 0.10). Sometimes, global routing will succeed with lower values and fail with higher values. Exploring results with different values can help shed light on the problem. Start with a too low value, such as 0.10, and bisect to value that works by doing multiple global routing runs. As a last resort, `make global_route_issue` and using the tools/OpenROAD/etc/whittle.py can be useful to debug global routing errors. If there is something specific that is impossible to route, such as a clock line over a macro, global routing will terminate with DRC errors routes that could have been routed were it not for the specific impossible routes. whittle.py should weed out the possible routes and leave a minimal failing case that pinpoints the problem.| 0.5|
@@ -518,6 +519,7 @@ configuration file.
518519
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
519520
- [POST_CTS_TCL](#POST_CTS_TCL)
520521
- [PRE_CTS_TCL](#PRE_CTS_TCL)
522+
- [REMOVE_LIBS_FOR_LEC](#REMOVE_LIBS_FOR_LEC)
521523
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
522524
- [SETUP_MOVE_SEQUENCE](#SETUP_MOVE_SEQUENCE)
523525
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)

‎flow/scripts/lec_check.tcl‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,25 @@ proc write_lec_verilog { filename } {
3333
}
3434

3535
proc write_lec_script { step file1 file2 } {
36+
# Exclude select Liberty files from being passed to kepler-formal
37+
if { [env_var_exists_and_non_empty REMOVE_LIBS_FOR_LEC] } {
38+
foreach lib_to_remove $::env(REMOVE_LIBS_FOR_LEC) {
39+
set remove_libs_set($lib_to_remove) 1
40+
}
41+
set lib_list [lmap item $::env(LIB_FILES) {
42+
if { [info exists remove_libs_set($item)] } { continue }
43+
set item
44+
}]
45+
} else {
46+
set lib_list $::env(LIB_FILES)
47+
}
3648
set outfile [open "$::env(OBJECTS_DIR)/${step}_lec_test.yml" w]
3749
puts $outfile "format: verilog"
3850
puts $outfile "input_paths:"
3951
puts $outfile " - $::env(RESULTS_DIR)/${file1}"
4052
puts $outfile " - $::env(RESULTS_DIR)/${file2}"
4153
puts $outfile "liberty_files:"
42-
foreach libFile $::env(LIB_FILES) {
54+
foreach libFile $lib_list {
4355
puts $outfile " - $libFile"
4456
}
4557
puts $outfile "log_file: $::env(LOG_DIR)/${step}_lec_check.log"

‎flow/scripts/variables.json‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flow/scripts/variables.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,12 @@ LEC_AUX_VERILOG_FILES:
15991599
running the formal equivalence check.
16001600
stages:
16011601
- cts
1602+
REMOVE_LIBS_FOR_LEC:
1603+
description: >
1604+
List of Liberty files to exclude from LEC. This is required for cases where
1605+
a Verilog black box needs to be used instead of a Liberty file.
1606+
stages:
1607+
- cts
16021608
REMOVE_CELLS_FOR_LEC:
16031609
description: >
16041610
String patterns directly passed to write_verilog -remove_cells <> for

0 commit comments

Comments
 (0)