Skip to content

Commit

Permalink
projects/ad7405: Set axi_clkgen to 40MHz/Add constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
  • Loading branch information
PIoandan committed Dec 13, 2024
1 parent ad09d1a commit 2a27a59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ad7405_fmc/common/ad7405_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ ad_ip_parameter axi_ad7405_dma CONFIG.DMA_2D_TRANSFER 0
ad_ip_parameter axi_ad7405_dma CONFIG.DMA_DATA_WIDTH_SRC 16
ad_ip_parameter axi_ad7405_dma CONFIG.DMA_DATA_WIDTH_DEST 64

# MCLK generation 50 MHz
# MCLK generation 40 MHz

ad_ip_instance axi_clkgen axi_adc_clkgen
ad_ip_parameter axi_adc_clkgen CONFIG.VCO_DIV 1
ad_ip_parameter axi_adc_clkgen CONFIG.VCO_MUL 10
ad_ip_parameter axi_adc_clkgen CONFIG.CLK0_DIV 20
ad_ip_parameter axi_adc_clkgen CONFIG.CLK0_DIV 25

ad_ip_instance axi_ad7405 axi_ad7405

Expand Down
8 changes: 8 additions & 0 deletions projects/ad7405_fmc/zed/system_constr_cmos.xdc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@

set_property -dict {PACKAGE_PIN M19 IOSTANDARD LVCMOS25} [get_ports adc_clk] ; ## G6 FMC_LA00_CC_P
set_property -dict {PACKAGE_PIN M20 IOSTANDARD LVCMOS25} [get_ports adc_data] ; ## G7 FMC_LA00_CC_N

set input_clock mmcm_clk_0_s
set input_clock_period 20.000; # Period of input clock
set dv_bre 10.000; # Data valid before the rising clock edge
set dv_are 3.000
set input_ports adc_data
set_input_delay -clock $input_clock -max [expr $input_clock_period - $dv_bre] [get_ports $input_ports];
set_input_delay -clock $input_clock -min $dv_are [get_ports $input_ports];

0 comments on commit 2a27a59

Please sign in to comment.