18 lines
590 B
Plaintext
18 lines
590 B
Plaintext
package require xilinx::board 1.0
|
|
namespace import ::xilinx::board::*
|
|
|
|
set instname [current_inst]
|
|
set f_xdc [add_ipfile -usedIn [list synthesis implementation board ] -force ${instname}_board.xdc]
|
|
puts_ipfile $f_xdc "#--------------------Physical Constraints-----------------\n"
|
|
if { [get_project_property BOARD] == "" } {
|
|
close_ipfile $f_xdc
|
|
return
|
|
}
|
|
|
|
set board_if [get_property PARAM_VALUE.UART_BOARD_INTERFACE]
|
|
if { $board_if ne "Custom"} {
|
|
board_add_port_constraints $f_xdc $board_if TxD UART_TX
|
|
board_add_port_constraints $f_xdc $board_if RxD UART_RX
|
|
}
|
|
close_ipfile $f_xdc
|