Skip to content

Commit b4544da

Browse files
Merge pull request #29 from firesim/dev
FireSim 1.11 Release (Dev -> Master)
2 parents 65deb47 + d65ee3c commit b4544da

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

hdk/cl/developer_designs/cl_firesim/build/scripts/create_dcp_from_cl.tcl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ set_msg_config -id {DRC CKLD-2} -suppress
144144
set_msg_config -id {DRC REQP-1853} -suppress
145145
set_msg_config -id {Timing 38-436} -suppress
146146

147+
# Promote the following critical warnings to errors to prevent AGFI generation
148+
# Design not completely routed
149+
set_msg_config -id {Route 35-1} -new_severity "ERROR"
150+
147151
# Check that an email address has been set, else unset notify_via_sns
148152

149153
if {[string compare $notify_via_sns "1"] == 0} {
@@ -307,7 +311,7 @@ if {$implement} {
307311
##############################
308312
# CL Post-Route Optimization
309313
##############################
310-
set SLACK [get_property SLACK [get_timing_paths]]
314+
set SLACK [get_property -min SLACK [get_timing_paths -delay_type min_max]]
311315
#Post-route phys_opt will not be run if slack is positive or greater than -200ps.
312316
if {$route_phys_opt && $SLACK > -0.400 && $SLACK < 0} {
313317
puts "\nAWS FPGA: ([clock format [clock seconds] -format %T]) - Running post-route optimization";
@@ -337,6 +341,13 @@ if {$implement} {
337341
# Generate debug probes file
338342
write_debug_probes -force -no_partial_ltxfile -file $CL_DIR/build/checkpoints/${timestamp}.debug_probes.ltx
339343

344+
# Before proceeding, coarsely check if we meet timing otherwise exit
345+
set SLACK [get_property -min SLACK [get_timing_paths -delay_type min_max]]
346+
if {$SLACK < 0} {
347+
puts "\nFATAL: Design did not meet timing requirements. Terminating.";
348+
exit 3
349+
}
350+
340351
close_project
341352
}
342353

0 commit comments

Comments
 (0)