Use Variable for Min/Max Delay Calculation

This script shows how to use variables in the set_input_delay constraint. This code uses the same example as in Input Receive Clock Delay.

set max_board_delay 4
set min_board_delay 2

# copy values from outflow/<project>.pt_timing.rpt
set GPIO_IN_max 1.954
set GPIO_IN_min 0.526

set_input_delay -clock -max [expr $max_board_delay + $GPIO_IN_max ] din
set_input_delay -clock -min [expr $min_board_delay + $GPIO_IN_min ] din