add tns and wns commands and clock gating

This commit is contained in:
Benzi
2026-10-18 16:12:45 -04:00
parent 11da994094
commit 7dd9a8b69e
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
# Get total negative slack for loaded design
proc sj_get_tns {} {
set path [report_timing -collection -max_paths 1]
get_db $path .slack
}
# Get worst negative slack for loaded design
proc sj_get_wns {} {
set path [report_timing -collection -max_paths 1]
get_db $path .worst_delay
}
+2 -2
View File
@@ -16,9 +16,9 @@ set_structure true -timing true -boolean false
# Compile
if {$::config::WITH_DC_ULTRA} {
if {$::config::DFT} {
compile_ultra -scan -no_autoungroup -no_boundary_optimization
compile_ultra -gate_clock -scan -no_autoungroup -no_boundary_optimization
} else {
compile_ultra -no_autoungroup -no_boundary_optimization
compile_ultra -gate_clock -no_autoungroup -no_boundary_optimization
}
optimize_netlist -area
} else {