60 lines
2.3 KiB
Tcl
Executable File
60 lines
2.3 KiB
Tcl
Executable File
|
|
load_package flow
|
|
|
|
source ../../scripts/adi_env.tcl
|
|
project_new daq2_a10gx -overwrite
|
|
|
|
source $ad_hdl_dir/projects/common/a10gx/a10gx_system_assign.tcl
|
|
|
|
set_global_assignment -name VERILOG_FILE $ad_hdl_dir/library/common/altera/ad_jesd_align.v
|
|
set_global_assignment -name VERILOG_FILE $ad_hdl_dir/library/common/altera/ad_xcvr_rx_rst.v
|
|
set_global_assignment -name VERILOG_FILE ../common/daq2_spi.v
|
|
|
|
# reference clock
|
|
|
|
set_location_assignment PIN_AB9 -to ref_clk
|
|
set_location_assignment PIN_AB8 -to "ref_clk(n)"
|
|
set_instance_assignment -name IO_STANDARD "1.5-V PCML" -to ref_clk
|
|
set_instance_assignment -name XCVR_REFCLK_PIN_TERMINATION AC_COUPLING -to ref_clk
|
|
set_instance_assignment -name XCVR_IO_PIN_TERMINATION 100_OHMS -to ref_clk
|
|
|
|
# lane data
|
|
|
|
set_location_assignment PIN_AE1 -to rx_data[0]
|
|
set_location_assignment PIN_AE2 -to "rx_data[0](n)"
|
|
set_location_assignment PIN_AA1 -to rx_data[1]
|
|
set_location_assignment PIN_AA2 -to "rx_data[1](n)"
|
|
set_location_assignment PIN_U1 -to rx_data[2]
|
|
set_location_assignment PIN_U2 -to "rx_data[2](n)"
|
|
set_location_assignment PIN_R1 -to rx_data[3]
|
|
set_location_assignment PIN_R2 -to "rx_data[3](n)"
|
|
set_instance_assignment -name IO_STANDARD "1.5-V PCML" -to rx_data[0]
|
|
set_instance_assignment -name IO_STANDARD "1.5-V PCML" -to rx_data[1]
|
|
set_instance_assignment -name IO_STANDARD "1.5-V PCML" -to rx_data[2]
|
|
set_instance_assignment -name IO_STANDARD "1.5-V PCML" -to rx_data[3]
|
|
set_instance_assignment -name XCVR_IO_PIN_TERMINATION 100_OHMS -to rx_data[0]
|
|
set_instance_assignment -name XCVR_IO_PIN_TERMINATION 100_OHMS -to rx_data[1]
|
|
set_instance_assignment -name XCVR_IO_PIN_TERMINATION 100_OHMS -to rx_data[2]
|
|
set_instance_assignment -name XCVR_IO_PIN_TERMINATION 100_OHMS -to rx_data[3]
|
|
|
|
# jesd signals
|
|
|
|
set_location_assignment PIN_AD25 -to rx_sync
|
|
set_instance_assignment -name IO_STANDARD "2.5 V" -to rx_sync
|
|
|
|
set_location_assignment PIN_AC24 -to rx_sysref
|
|
set_instance_assignment -name IO_STANDARD "2.5 V" -to rx_sysref
|
|
|
|
# spi
|
|
|
|
set_location_assignment PIN_AG27 -to spi_csn
|
|
set_location_assignment PIN_AH27 -to spi_clk
|
|
set_location_assignment PIN_AD24 -to spi_sdio
|
|
|
|
set_instance_assignment -name IO_STANDARD "2.5 V" -to spi_csn
|
|
set_instance_assignment -name IO_STANDARD "2.5 V" -to spi_clk
|
|
set_instance_assignment -name IO_STANDARD "2.5 V" -to spi_sdio
|
|
|
|
execute_flow -compile
|
|
|