-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common/zc706: Add common plddr3 mig config script
Signed-off-by: Ionut Podgoreanu <[email protected]>
- Loading branch information
Showing
6 changed files
with
71 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
############################################################################### | ||
## Copyright (C) 2024 Analog Devices, Inc. All rights reserved. | ||
### SPDX short identifier: ADIBSD | ||
############################################################################### | ||
|
||
proc ad_plddr_data_offload_create {data_offload_name} { | ||
|
||
upvar ad_hdl_dir ad_hdl_dir | ||
|
||
ad_ip_instance proc_sys_reset axi_rstgen | ||
ad_ip_instance mig_7series axi_ddr_cntrl | ||
file copy -force $ad_hdl_dir/projects/common/zc706/zc706_plddr3_mig.prj [get_property IP_DIR \ | ||
[get_ips [get_property CONFIG.Component_Name [get_bd_cells axi_ddr_cntrl]]]] | ||
ad_ip_parameter axi_ddr_cntrl CONFIG.XML_INPUT_FILE zc706_plddr3_mig.prj | ||
|
||
# PL-DDR data offload interfaces | ||
create_bd_intf_port -mode Slave -vlnv xilinx.com:interface:diff_clock_rtl:1.0 sys_clk | ||
create_bd_port -dir I -type rst sys_rst | ||
set_property CONFIG.POLARITY ACTIVE_HIGH [get_bd_ports sys_rst] | ||
create_bd_intf_port -mode Master -vlnv xilinx.com:interface:ddrx_rtl:1.0 ddr3 | ||
|
||
ad_connect axi_ddr_cntrl/ui_clk axi_rstgen/slowest_sync_clk | ||
ad_connect axi_ddr_cntrl/ui_clk $data_offload_name/storage_unit/m_axi_aclk | ||
ad_connect axi_ddr_cntrl/S_AXI $data_offload_name/storage_unit/MAXI_0 | ||
ad_connect axi_rstgen/peripheral_aresetn $data_offload_name/storage_unit/m_axi_aresetn | ||
ad_connect axi_rstgen/peripheral_aresetn axi_ddr_cntrl/aresetn | ||
ad_connect sys_cpu_resetn axi_rstgen/ext_reset_in | ||
|
||
assign_bd_address [get_bd_addr_segs -of_objects [get_bd_cells axi_ddr_cntrl]] | ||
|
||
ad_connect sys_rst axi_ddr_cntrl/sys_rst | ||
ad_connect sys_clk axi_ddr_cntrl/SYS_CLK | ||
ad_connect ddr3 axi_ddr_cntrl/DDR3 | ||
ad_connect axi_ddr_cntrl/device_temp_i GND | ||
ad_connect $data_offload_name/i_data_offload/ddr_calib_done axi_ddr_cntrl/init_calib_complete | ||
|
||
ad_ip_parameter $data_offload_name/storage_unit CONFIG.DDR_BASE_ADDDRESS [format "%d" 0x80000000] | ||
|
||
} |