Skip to content

Commit

Permalink
xilinx_bd: Update XDMA params
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilKoe committed Jan 4, 2024
1 parent 8ce68b7 commit 7a1a2d2
Showing 1 changed file with 24 additions and 42 deletions.
66 changes: 24 additions & 42 deletions target/xilinx/flavor_bd/scripts/carfield_bd_vcu128.tcl
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Copyright 2020 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
#
# This file was generated for vivado 2020.2

Check failure on line 1 in target/xilinx/flavor_bd/scripts/carfield_bd_vcu128.tcl

View workflow job for this annotation

GitHub Actions / lint-license

FAILED: File does not start with comment
################################################################
# This is a generated script based on design: design_1
Expand Down Expand Up @@ -392,47 +387,37 @@ proc create_root_design { parentCell } {
set xbar_periph_in [ create_bd_cell -type ip -vlnv xilinx.com:ip:smartconnect:1.0 xbar_periph_in ]
set_property -dict [ list \
CONFIG.NUM_CLKS {2} \
CONFIG.NUM_SI {4} \
CONFIG.NUM_SI {5} \
] $xbar_periph_in

# Create instance: xbar_periph_out, and set properties
set xbar_periph_out [ create_bd_cell -type ip -vlnv xilinx.com:ip:smartconnect:1.0 xbar_periph_out ]
set_property -dict [ list \
CONFIG.NUM_CLKS {4} \
CONFIG.NUM_MI {5} \
CONFIG.NUM_CLKS {3} \
CONFIG.NUM_MI {3} \
CONFIG.NUM_SI {1} \
] $xbar_periph_out

# Create instance: xdma_0, and set properties
set xdma_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xdma:4.1 xdma_0 ]
set_property -dict [ list \
CONFIG.PCIE_BOARD_INTERFACE {pci_express_x2} \
CONFIG.PF0_DEVICE_ID_mqdma {9012} \
CONFIG.PF2_DEVICE_ID_mqdma {9012} \
CONFIG.PF3_DEVICE_ID_mqdma {9012} \
CONFIG.PCIE_BOARD_INTERFACE {pci_express_x4} \
CONFIG.PF0_DEVICE_ID_mqdma {9014} \
CONFIG.PF2_DEVICE_ID_mqdma {9014} \
CONFIG.PF3_DEVICE_ID_mqdma {9014} \
CONFIG.SYS_RST_N_BOARD_INTERFACE {pcie_perstn} \
CONFIG.axi_addr_width {64} \
CONFIG.axi_bypass_64bit_en {true} \
CONFIG.axi_bypass_prefetchable {true} \
CONFIG.axist_bypass_en {true} \
CONFIG.axist_bypass_scale {Gigabytes} \
CONFIG.axist_bypass_size {4} \
CONFIG.axisten_freq {125} \
CONFIG.bar_indicator {BAR_1:0} \
CONFIG.c_s_axi_supports_narrow_burst {false} \
CONFIG.en_gt_selection {true} \
CONFIG.functional_mode {AXI_Bridge} \
CONFIG.mode_selection {Advanced} \
CONFIG.pf0_bar0_64bit {true} \
CONFIG.pf0_bar0_scale {Gigabytes} \
CONFIG.pf0_bar0_size {4} \
CONFIG.pf0_base_class_menu {Processing_accelerators} \
CONFIG.pf0_class_code {120000} \
CONFIG.pf0_class_code_base {12} \
CONFIG.pf0_class_code_interface {00} \
CONFIG.pf0_device_id {9012} \
CONFIG.pf0_msix_cap_pba_bir {BAR_1:0} \
CONFIG.pf0_msix_cap_table_bir {BAR_1:0} \
CONFIG.pf0_sub_class_interface_menu {Unknown} \
CONFIG.pl_link_cap_max_link_speed {2.5_GT/s} \
CONFIG.pl_link_cap_max_link_width {X2} \
CONFIG.plltype {CPLL} \
CONFIG.xdma_axilite_slave {true} \
CONFIG.functional_mode {DMA} \
CONFIG.pf0_device_id {9014} \
CONFIG.pl_link_cap_max_link_width {X4} \
CONFIG.xdma_axi_intf_mm {AXI_Memory_Mapped} \
CONFIG.xdma_axilite_slave {false} \
] $xdma_0

# Create interface connections
Expand All @@ -455,11 +440,9 @@ proc create_root_design { parentCell } {
connect_bd_intf_net -intf_net smartconnect_1_M00_AXI [get_bd_intf_pins axi_ethernet_0/s_axi] [get_bd_intf_pins xbar_periph_out/M00_AXI]
connect_bd_intf_net -intf_net smartconnect_2_M00_AXI [get_bd_intf_pins carfield_xilinx_ip_0/periph_axi_s] [get_bd_intf_pins xbar_periph_in/M00_AXI]
connect_bd_intf_net -intf_net xbar_periph_out_M01_AXI [get_bd_intf_pins axi_dma_0/S_AXI_LITE] [get_bd_intf_pins xbar_periph_out/M01_AXI]
connect_bd_intf_net -intf_net xbar_periph_out_M02_AXI [get_bd_intf_pins xbar_periph_out/M02_AXI] [get_bd_intf_pins xdma_0/S_AXI_B]
connect_bd_intf_net -intf_net xbar_periph_out_M03_AXI [get_bd_intf_pins xbar_periph_out/M03_AXI] [get_bd_intf_pins xdma_0/S_AXI_LITE]
connect_bd_intf_net -intf_net xbar_periph_out_M04_AXI [get_bd_intf_pins ddr4_0/C0_DDR4_S_AXI_CTRL] [get_bd_intf_pins xbar_periph_out/M04_AXI]
connect_bd_intf_net -intf_net xdma_0_M_AXI_B [get_bd_intf_pins xbar_periph_in/S03_AXI] [get_bd_intf_pins xdma_0/M_AXI_B]
connect_bd_intf_net -intf_net xdma_0_pcie_mgt [get_bd_intf_ports pci_express_x1] [get_bd_intf_pins xdma_0/pcie_mgt]
connect_bd_intf_net -intf_net xbar_periph_out_M02_AXI [get_bd_intf_pins ddr4_0/C0_DDR4_S_AXI_CTRL] [get_bd_intf_pins xbar_periph_out/M02_AXI]
connect_bd_intf_net -intf_net xdma_0_M_AXI [get_bd_intf_pins xbar_periph_in/S03_AXI] [get_bd_intf_pins xdma_0/M_AXI]
connect_bd_intf_net -intf_net xdma_0_M_AXI_BYPASS [get_bd_intf_pins xbar_periph_in/S04_AXI] [get_bd_intf_pins xdma_0/M_AXI_BYPASS]

# Create port connections
connect_bd_net -net Net [get_bd_pins carfield_xilinx_ip_0/pad_hyper_csn]
Expand All @@ -484,7 +467,7 @@ proc create_root_design { parentCell } {
connect_bd_net -net clk_wiz_0_clk_100 [get_bd_pins carfield_xilinx_ip_0/clk_100] [get_bd_pins clk_wiz_0/clk_100]
connect_bd_net -net clk_wiz_0_locked [get_bd_pins clk_wiz_0/locked] [get_bd_pins psr_10/dcm_locked]
connect_bd_net -net concat_irq_dout [get_bd_pins carfield_xilinx_ip_0/gpio_i] [get_bd_pins concat_irq/dout]
connect_bd_net -net ddr4_0_c0_ddr4_ui_clk [get_bd_pins ddr4_0/c0_ddr4_ui_clk] [get_bd_pins psr_333/slowest_sync_clk] [get_bd_pins xbar_dram/aclk1] [get_bd_pins xbar_periph_out/aclk3]
connect_bd_net -net ddr4_0_c0_ddr4_ui_clk [get_bd_pins ddr4_0/c0_ddr4_ui_clk] [get_bd_pins psr_333/slowest_sync_clk] [get_bd_pins xbar_dram/aclk1] [get_bd_pins xbar_periph_out/aclk2]
connect_bd_net -net dummy_port_in_1 [get_bd_ports dummy_port_in] [get_bd_pins axi_ethernet_0/dummy_port_in]
connect_bd_net -net high_dout [get_bd_pins carfield_xilinx_ip_0/jtag_trst_ni] [get_bd_pins high/dout]
connect_bd_net -net low_dout [get_bd_pins carfield_xilinx_ip_0/testmode_i] [get_bd_pins low/dout]
Expand All @@ -502,7 +485,7 @@ proc create_root_design { parentCell } {
connect_bd_net -net vio_0_probe_out0 [get_bd_pins carfield_xilinx_ip_0/boot_mode_i] [get_bd_pins vio_0/probe_out0]
connect_bd_net -net vio_0_probe_out1 [get_bd_pins carfield_xilinx_ip_0/boot_mode_safety_i] [get_bd_pins vio_0/probe_out1]
connect_bd_net -net vio_0_probe_out2 [get_bd_pins psr_10/aux_reset_in] [get_bd_pins psr_333/aux_reset_in] [get_bd_pins vio_0/probe_out2]
connect_bd_net -net xdma_0_axi_aclk [get_bd_pins xbar_periph_in/aclk1] [get_bd_pins xbar_periph_out/aclk2] [get_bd_pins xdma_0/axi_aclk]
connect_bd_net -net xdma_0_axi_aclk [get_bd_pins xbar_periph_in/aclk1] [get_bd_pins xdma_0/axi_aclk]

# Create address segments
assign_bd_address -offset 0x00000000 -range 0x0001000000000000 -target_address_space [get_bd_addr_spaces axi_dma_0/Data_SG] [get_bd_addr_segs carfield_xilinx_ip_0/periph_axi_s/reg0] -force
Expand All @@ -511,12 +494,11 @@ proc create_root_design { parentCell } {
assign_bd_address -offset 0x41E00000 -range 0x00010000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/periph_axi_m] [get_bd_addr_segs axi_dma_0/S_AXI_LITE/Reg] -force
assign_bd_address -offset 0x40C00000 -range 0x00040000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/periph_axi_m] [get_bd_addr_segs axi_ethernet_0/s_axi/Reg0] -force
assign_bd_address -offset 0x80000000 -range 0x80000000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/dram_axi] [get_bd_addr_segs ddr4_0/C0_DDR4_MEMORY_MAP/C0_DDR4_ADDRESS_BLOCK] -force
assign_bd_address -offset 0x00000000 -range 0x0001000000000000 -target_address_space [get_bd_addr_spaces xdma_0/M_AXI_B] [get_bd_addr_segs carfield_xilinx_ip_0/periph_axi_s/reg0] -force
assign_bd_address -offset 0x00000000 -range 0x0001000000000000 -target_address_space [get_bd_addr_spaces xdma_0/M_AXI] [get_bd_addr_segs carfield_xilinx_ip_0/periph_axi_s/reg0] -force
assign_bd_address -offset 0x00000000 -range 0x0001000000000000 -target_address_space [get_bd_addr_spaces xdma_0/M_AXI_BYPASS] [get_bd_addr_segs carfield_xilinx_ip_0/periph_axi_s/reg0] -force

# Exclude Address Segments
exclude_bd_addr_seg -offset 0x80000000 -range 0x00100000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/periph_axi_m] [get_bd_addr_segs ddr4_0/C0_DDR4_MEMORY_MAP_CTRL/C0_REG]
exclude_bd_addr_seg -offset 0x76000000 -range 0x00100000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/periph_axi_m] [get_bd_addr_segs xdma_0/S_AXI_B/BAR0]
exclude_bd_addr_seg -offset 0x00000000 -range 0x20000000 -target_address_space [get_bd_addr_spaces carfield_xilinx_ip_0/periph_axi_m] [get_bd_addr_segs xdma_0/S_AXI_LITE/CTL0]


# Restore current instance
Expand Down

0 comments on commit 7a1a2d2

Please sign in to comment.