Skip to content

Commit cc3d58a

Browse files
committed
asap7/constraints.sdc: make set_max_delay configurable
this oftentimes needs to be adjusted, so making it configurable avoids copy and paste in smaller test-rigs and makes the pertinent changes in those test-rig easier to read in the constraints.sdc files using the asap7/constraints.sdc file. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 091a06b commit cc3d58a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

flow/platforms/asap7/constraints.sdc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ set all_register_outputs [get_pins -of_objects [all_registers] -filter {directio
7777
#
7878
# Minimum time for io-io, io-reg, reg-io paths in macro is on
7979
# the order of 80ps for a small macro on ASAP7.
80-
set max_delay 80
81-
set_max_delay $max_delay -from $non_clk_inputs -to [all_registers]
82-
set_max_delay $max_delay -from $all_register_outputs -to [all_outputs]
83-
set_max_delay $max_delay -from $non_clk_inputs -to [all_outputs]
80+
set_max_delay [expr {[info exists in2reg_max] ? $in2reg_max : 80}] -from $non_clk_inputs -to [all_registers]
81+
set_max_delay [expr {[info exists reg2out_max] ? $reg2out_max : 80}] -from $all_register_outputs -to [all_outputs]
82+
set_max_delay [expr {[info exists in2out_max] ? $in2out_max : 80}] -from $non_clk_inputs -to [all_outputs]
8483

8584
# This allows us to view the different groups
8685
# in the histogram in the GUI and also includes these

0 commit comments

Comments
 (0)