2023-07-10 08:38:46 +00:00
|
|
|
###############################################################################
|
|
|
|
## Copyright (C) 2021-2023 Analog Devices, Inc. All rights reserved.
|
|
|
|
### SPDX short identifier: ADIBSD
|
|
|
|
###############################################################################
|
2021-01-21 10:05:11 +00:00
|
|
|
|
2023-07-10 08:38:46 +00:00
|
|
|
# ad463x_fmc SPI interface
|
2023-10-18 07:28:11 +00:00
|
|
|
set_property -dict {PACKAGE_PIN L22 IOSTANDARD LVCMOS25 IOB TRUE} [get_ports ad463x_spi_sdo] ; ## C11 FMC_LA06_N
|
|
|
|
set_property -dict {PACKAGE_PIN M19 IOSTANDARD LVCMOS25 IOB TRUE} [get_ports ad463x_spi_sclk] ; ## G6 FMC_LA00_CC_P
|
|
|
|
set_property -dict {PACKAGE_PIN M20 IOSTANDARD LVCMOS25} [get_ports ad463x_spi_cs] ; ## G7 FMC_LA00_CC_N
|
2021-01-21 10:05:11 +00:00
|
|
|
|
2023-10-18 07:28:11 +00:00
|
|
|
set_property -dict {PACKAGE_PIN B19 IOSTANDARD LVCMOS25} [get_ports ad463x_echo_sclk] ; ## D20 FMC_LA17_CC_P
|
|
|
|
set_property -dict {PACKAGE_PIN N20 IOSTANDARD LVCMOS25} [get_ports ad463x_resetn] ; ## D9 FMC_LA01_CC_N
|
|
|
|
set_property -dict {PACKAGE_PIN D20 IOSTANDARD LVCMOS25} [get_ports ad463x_busy] ; ## C22 FMC_LA18_CC_P
|
|
|
|
set_property -dict {PACKAGE_PIN N19 IOSTANDARD LVCMOS25} [get_ports ad463x_cnv] ; ## D8 FMC_LA01_CC_P
|
|
|
|
set_property -dict {PACKAGE_PIN L18 IOSTANDARD LVCMOS25} [get_ports ad463x_ext_clk] ; ## H4 FMC_CLK0_P
|
2021-01-21 10:05:11 +00:00
|
|
|
|
|
|
|
# external clock, that drives the CNV generator, must have a maximum 100 MHz frequency
|
|
|
|
create_clock -period 10.000 -name cnv_ext_clk [get_ports ad463x_ext_clk]
|
|
|
|
|
|
|
|
# SCLK echod clock, tuned to 80 MHz //, phase shifted with 30% (aprox. 4ns)
|
|
|
|
create_clock -period 12.500 -name ECHOSCLK_clk [get_ports ad463x_echo_sclk]
|
|
|
|
|
|
|
|
# rename auto-generated clock for SPIEngine to spi_clk - 160MHz
|
|
|
|
# NOTE: clk_fpga_0 is the first PL fabric clock, also called $sys_cpu_clk
|
|
|
|
create_generated_clock -name spi_clk -source [get_pins -filter name=~*CLKIN1 -of [get_cells -hier -filter name=~*spi_clkgen*i_mmcm]] -master_clock clk_fpga_0 [get_pins -filter name=~*CLKOUT0 -of [get_cells -hier -filter name=~*spi_clkgen*i_mmcm]]
|
|
|
|
|
|
|
|
# create a generated clock for SCLK - fSCLK=spi_clk/2 - 80MHz
|
|
|
|
create_generated_clock -name SCLK_clk -source [get_pins -hier -filter name=~*sclk_reg/C] -edges {1 3 5} [get_ports ad463x_spi_sclk]
|
|
|
|
|
|
|
|
# output delay for MOSI line (SDI for the device)
|
|
|
|
#
|
|
|
|
# tHSDI and tSSDI is 1.5ns
|
|
|
|
set_output_delay -clock [get_clocks SCLK_clk] -max 1.500 [get_ports ad463x_spi_sdo]
|
|
|
|
set_output_delay -clock [get_clocks SCLK_clk] -min 1.500 [get_ports ad463x_spi_sdo]
|
|
|
|
|
|
|
|
# relax the SDO path to help closing timing at high frequencies
|
|
|
|
set_multicycle_path -setup -from [get_clocks spi_clk] -to [get_cells -hierarchical -filter {NAME=~*/data_sdo_shift_reg[*]}] 8
|
|
|
|
set_multicycle_path -hold -from [get_clocks spi_clk] -to [get_cells -hierarchical -filter {NAME=~*/data_sdo_shift_reg[*]}] 7
|
|
|
|
|
2022-12-20 18:49:04 +00:00
|
|
|
set_multicycle_path -setup -from [get_clocks spi_clk] -to [get_cells -hierarchical -filter NAME=~*/spi_ad463x_execution/inst/left_aligned_reg*] 8
|
|
|
|
set_multicycle_path -hold -from [get_clocks spi_clk] -to [get_cells -hierarchical -filter NAME=~*/spi_ad463x_execution/inst/left_aligned_reg*] 7
|