mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
fpga/mqnic: Rework PCIe IP core configuration, fixes disrupted MSI-X settings with application section enabled and issues with PCIe class code on 7-series and UltraScale
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
c5003d0c6d
commit
347a03b347
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -214,17 +214,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -269,6 +258,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -214,17 +214,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -269,6 +258,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -227,17 +227,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -282,6 +271,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -227,17 +227,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -282,6 +271,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -197,17 +197,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -252,6 +241,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -197,17 +197,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -252,6 +241,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -210,17 +210,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -265,6 +254,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -210,17 +210,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4c_uscale_plus_0]
|
set pcie [get_ips pcie4c_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -265,6 +254,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -212,19 +212,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_ultrascale_0]
|
set pcie [get_ips pcie3_ultrascale_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_base [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_sub [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_interface [format "%02x" [expr $pcie_class_code & 0xff]] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -269,6 +256,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -212,19 +212,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_ultrascale_0]
|
set pcie [get_ips pcie3_ultrascale_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_base [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_sub [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]] $pcie
|
|
||||||
set_property CONFIG.pf0_class_code_interface [format "%02x" [expr $pcie_class_code & 0xff]] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -269,6 +256,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -190,17 +190,6 @@ dict set params STAT_ID_WIDTH "10"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_7x_0]
|
set pcie [get_ips pcie3_7x_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -245,6 +234,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -190,17 +190,6 @@ dict set params STAT_ID_WIDTH "10"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_ultrascale_0]
|
set pcie [get_ips pcie3_ultrascale_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -245,6 +234,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -203,17 +203,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -258,6 +247,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -203,17 +203,6 @@ dict set params STAT_ID_WIDTH "12"
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -258,6 +247,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_ultrascale_0]
|
set pcie [get_ips pcie3_ultrascale_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie3_ultrascale_0]
|
set pcie [get_ips pcie3_ultrascale_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,30 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_base" [format "%02x" [expr ($pcie_class_code >> 16) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_sub" [format "%02x" [expr ($pcie_class_code >> 8) & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.pf0_class_code_interface" [format "%02x" [expr $pcie_class_code & 0xff]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -212,17 +212,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -267,6 +256,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -209,17 +209,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -264,6 +253,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# apply parameters to top-level
|
# apply parameters to top-level
|
||||||
set param_list {}
|
set param_list {}
|
||||||
dict for {name value} $params {
|
dict for {name value} $params {
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
@ -222,17 +222,6 @@ if {[dict get $params DDR_ENABLE]} {
|
|||||||
# PCIe IP core settings
|
# PCIe IP core settings
|
||||||
set pcie [get_ips pcie4_uscale_plus_0]
|
set pcie [get_ips pcie4_uscale_plus_0]
|
||||||
|
|
||||||
# PCIe IDs
|
|
||||||
set_property CONFIG.vendor_id [format "%04x" $pcie_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_DEVICE_ID [format "%04x" $pcie_device_id] $pcie
|
|
||||||
set_property CONFIG.PF0_CLASS_CODE [format "%06x" $pcie_class_code] $pcie
|
|
||||||
set_property CONFIG.PF0_REVISION_ID [format "%02x" $pcie_revision_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_VENDOR_ID [format "%04x" $pcie_subsystem_vendor_id] $pcie
|
|
||||||
set_property CONFIG.PF0_SUBSYSTEM_ID [format "%04x" $pcie_subsystem_device_id] $pcie
|
|
||||||
|
|
||||||
# PCIe IP core configuration
|
|
||||||
set_property CONFIG.PF0_MSIX_CAP_TABLE_SIZE [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]] $pcie
|
|
||||||
|
|
||||||
# Internal interface settings
|
# Internal interface settings
|
||||||
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
dict set params AXIS_PCIE_DATA_WIDTH [regexp -all -inline -- {[0-9]+} [get_property CONFIG.axisten_if_width $pcie]]
|
||||||
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
dict set params AXIS_PCIE_KEEP_WIDTH [expr [dict get $params AXIS_PCIE_DATA_WIDTH]/32]
|
||||||
@ -277,6 +266,29 @@ configure_bar $pcie 0 0 [dict get $params AXIL_CTRL_ADDR_WIDTH]
|
|||||||
# Application BAR (BAR 2)
|
# Application BAR (BAR 2)
|
||||||
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
configure_bar $pcie 0 2 [expr [dict get $params APP_ENABLE] ? [dict get $params AXIL_APP_CTRL_ADDR_WIDTH] : 0]
|
||||||
|
|
||||||
|
# PCIe IP core configuration
|
||||||
|
set pcie_config [dict create]
|
||||||
|
|
||||||
|
# PCIe IDs
|
||||||
|
dict set pcie_config "CONFIG.vendor_id" [format "%04x" $pcie_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_DEVICE_ID" [format "%04x" $pcie_device_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_CLASS_CODE" [format "%06x" $pcie_class_code]
|
||||||
|
dict set pcie_config "CONFIG.PF0_REVISION_ID" [format "%02x" $pcie_revision_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_VENDOR_ID" [format "%04x" $pcie_subsystem_vendor_id]
|
||||||
|
dict set pcie_config "CONFIG.PF0_SUBSYSTEM_ID" [format "%04x" $pcie_subsystem_device_id]
|
||||||
|
|
||||||
|
# MSI-X
|
||||||
|
dict set pcie_config "CONFIG.pf0_msi_enabled" {false}
|
||||||
|
dict set pcie_config "CONFIG.pf0_msix_enabled" {true}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_SIZE" [format "%03x" [expr 2**[dict get $params IRQ_INDEX_WIDTH]-1]]
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_TABLE_OFFSET" {00010000}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_BIR" {BAR_1:0}
|
||||||
|
dict set pcie_config "CONFIG.PF0_MSIX_CAP_PBA_OFFSET" {00018000}
|
||||||
|
dict set pcie_config "CONFIG.MSI_X_OPTIONS" {MSI-X_External}
|
||||||
|
|
||||||
|
set_property -dict $pcie_config $pcie
|
||||||
|
|
||||||
# Transceiver configuration
|
# Transceiver configuration
|
||||||
set xcvr_config [dict create]
|
set xcvr_config [dict create]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user