Skip to content

Commit b640801

Browse files
committed
added REMOVE_LIBS_FOR_LEC flow variable
tclfmt fixes Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
1 parent 4e485b4 commit b640801

4 files changed

Lines changed: 23 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| |
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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,22 @@ 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+
set lib_list [lmap item $::env(LIB_FILES) {
39+
if { $item in $::env(REMOVE_LIBS_FOR_LEC) } { continue }
40+
set item
41+
}]
42+
} else {
43+
set lib_list $::env(LIB_FILES)
44+
}
3645
set outfile [open "$::env(OBJECTS_DIR)/${step}_lec_test.yml" w]
3746
puts $outfile "format: verilog"
3847
puts $outfile "input_paths:"
3948
puts $outfile " - $::env(RESULTS_DIR)/${file1}"
4049
puts $outfile " - $::env(RESULTS_DIR)/${file2}"
4150
puts $outfile "liberty_files:"
42-
foreach libFile $::env(LIB_FILES) {
51+
foreach libFile $lib_list {
4352
puts $outfile " - $libFile"
4453
}
4554
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,11 @@ 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
1605+
stages:
1606+
- cts
16021607
REMOVE_CELLS_FOR_LEC:
16031608
description: >
16041609
String patterns directly passed to write_verilog -remove_cells <> for

0 commit comments

Comments
 (0)