From d65ee3cf2e49960ccff34de962bcfe0561b9848d Mon Sep 17 00:00:00 2001 From: David Biancolin Date: Wed, 15 Jul 2020 19:01:31 +0000 Subject: [PATCH] Sort paths by slack; and check hold-timing slack --- .../build/scripts/create_dcp_from_cl.tcl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hdk/cl/developer_designs/cl_firesim/build/scripts/create_dcp_from_cl.tcl b/hdk/cl/developer_designs/cl_firesim/build/scripts/create_dcp_from_cl.tcl index 58fe7010..89045059 100644 --- a/hdk/cl/developer_designs/cl_firesim/build/scripts/create_dcp_from_cl.tcl +++ b/hdk/cl/developer_designs/cl_firesim/build/scripts/create_dcp_from_cl.tcl @@ -311,18 +311,12 @@ if {$implement} { ############################## # CL Post-Route Optimization ############################## - set SLACK [get_property SLACK [get_timing_paths]] + set SLACK [get_property -min SLACK [get_timing_paths -delay_type min_max]] #Post-route phys_opt will not be run if slack is positive or greater than -200ps. if {$route_phys_opt && $SLACK > -0.400 && $SLACK < 0} { puts "\nAWS FPGA: ([clock format [clock seconds] -format %T]) - Running post-route optimization"; impl_step route_phys_opt_design $TOP $post_phys_options $post_phys_directive $post_phys_preHookTcl $post_phys_postHookTcl } - # Check if slack has improved after physopt. - set SLACK [get_property SLACK [get_timing_paths]] - if {$SLACK < 0} { - puts "\nFATAL: Design did not meet timing requirements. Terminating."; - exit 3 - } ############################## # Final Implmentation Steps @@ -347,6 +341,13 @@ if {$implement} { # Generate debug probes file write_debug_probes -force -no_partial_ltxfile -file $CL_DIR/build/checkpoints/${timestamp}.debug_probes.ltx + # Before proceeding, coarsely check if we meet timing otherwise exit + set SLACK [get_property -min SLACK [get_timing_paths -delay_type min_max]] + if {$SLACK < 0} { + puts "\nFATAL: Design did not meet timing requirements. Terminating."; + exit 3 + } + close_project }