-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cabal_pcie_conf_rev' into 'devel'
Major revision of IP parameters especially PCIe See merge request ndk/ndk-fpga!116
- Loading branch information
Showing
48 changed files
with
622 additions
and
10,450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
cards/amd/alveo-u200/src/ip/cmac_eth_1x100g/cmac_eth_1x100g.ip.tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
array set PARAMS $IP_PARAMS_L | ||
|
||
set IP_COMP_NAME $PARAMS(IP_COMP_NAME) | ||
if {[get_ips -quiet $IP_COMP_NAME] eq ""} { | ||
if {$PARAMS(IP_GEN_FILES) eq true} { | ||
create_ip -name cmac_usplus -vendor xilinx.com -library ip -module_name $IP_COMP_NAME -dir $PARAMS(IP_BUILD_DIR) -force | ||
} else { | ||
create_ip -name cmac_usplus -vendor xilinx.com -library ip -module_name $IP_COMP_NAME | ||
} | ||
} | ||
|
||
set IP [get_ips $IP_COMP_NAME] | ||
|
||
set_property -dict [list \ | ||
CONFIG.ADD_GT_CNRL_STS_PORTS {1} \ | ||
CONFIG.CMAC_CAUI4_MODE {1} \ | ||
CONFIG.CMAC_CORE_SELECT {CMACE4_X0Y3} \ | ||
CONFIG.GT_DRP_CLK {50.00} \ | ||
CONFIG.GT_GROUP_SELECT {X1Y20~X1Y23} \ | ||
CONFIG.GT_REF_CLK_FREQ {161.1328125} \ | ||
CONFIG.INCLUDE_RS_FEC {1} \ | ||
CONFIG.NUM_LANES {4x25} \ | ||
CONFIG.RX_FLOW_CONTROL {0} \ | ||
CONFIG.RX_GT_BUFFER {1} \ | ||
CONFIG.RX_MAX_PACKET_LEN {16383} \ | ||
CONFIG.TX_FLOW_CONTROL {0} \ | ||
] $IP |
1,251 changes: 0 additions & 1,251 deletions
1,251
cards/amd/alveo-u200/src/ip/cmac_eth_1x100g/cmac_eth_1x100g.xci
This file was deleted.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
cards/amd/alveo-u200/src/ip/pcie4_uscale_plus/pcie4_uscale_plus.ip.tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
array set PARAMS $IP_PARAMS_L | ||
|
||
set IP_COMP_NAME $PARAMS(IP_COMP_NAME) | ||
if {[get_ips -quiet $IP_COMP_NAME] eq ""} { | ||
if {$PARAMS(IP_GEN_FILES) eq true} { | ||
create_ip -name pcie4_uscale_plus -vendor xilinx.com -library ip -module_name $IP_COMP_NAME -dir $PARAMS(IP_BUILD_DIR) -force | ||
} else { | ||
create_ip -name pcie4_uscale_plus -vendor xilinx.com -library ip -module_name $IP_COMP_NAME | ||
} | ||
} | ||
|
||
set IP [get_ips $IP_COMP_NAME] | ||
|
||
# ============================================================================== | ||
# general settings for each card | ||
# ============================================================================== | ||
|
||
set VENDOR_ID {18ec} | ||
set PF0_DEVICE_ID {c000} | ||
|
||
# specialties for the selected card | ||
|
||
|
||
# ============================================================================== | ||
# common properties they should be the same for all cards | ||
# ============================================================================== | ||
|
||
set_property -dict [list \ | ||
CONFIG.PL_LINK_CAP_MAX_LINK_SPEED {8.0_GT/s} \ | ||
CONFIG.ext_pcie_cfg_space_enabled {true} \ | ||
CONFIG.extended_tag_field {true} \ | ||
CONFIG.plltype {QPLL1} \ | ||
CONFIG.axisten_freq {250} \ | ||
CONFIG.AXISTEN_IF_ENABLE_CLIENT_TAG {true} \ | ||
CONFIG.pf0_dev_cap_max_payload {512_bytes} \ | ||
CONFIG.PF0_Use_Class_Code_Lookup_Assistant {false} \ | ||
CONFIG.PF0_CLASS_CODE {020000} \ | ||
CONFIG.pf0_bar0_64bit {true} \ | ||
CONFIG.pf0_bar0_prefetchable {false} \ | ||
CONFIG.pf0_bar0_scale {Megabytes} \ | ||
CONFIG.pf0_bar0_size {64} \ | ||
CONFIG.pf0_bar2_64bit {true} \ | ||
CONFIG.pf0_bar2_prefetchable {false} \ | ||
CONFIG.pf0_bar2_enabled {true} \ | ||
CONFIG.pf0_bar2_scale {Megabytes} \ | ||
CONFIG.pf0_bar2_size {16} \ | ||
CONFIG.pf0_rbar_cap_bar0 {0xffffffffffff} \ | ||
CONFIG.pf0_dsn_enabled {true} \ | ||
CONFIG.pf0_msi_enabled {false} \ | ||
CONFIG.pf0_msix_enabled {true} \ | ||
CONFIG.PF0_MSIX_CAP_PBA_BIR {BAR_1:0} \ | ||
CONFIG.PF0_MSIX_CAP_TABLE_BIR {BAR_1:0} \ | ||
CONFIG.MSI_X_OPTIONS {MSI-X_External} \ | ||
CONFIG.mode_selection {Advanced} \ | ||
CONFIG.type1_membase_memlimit_enable {Disabled} \ | ||
CONFIG.type1_prefetchable_membase_memlimit {Disabled} \ | ||
] $IP | ||
|
||
if {$PARAMS(PCIE_ENDPOINT_MODE) == 2} { | ||
# x8_low_latency properties | ||
set_property -dict [list \ | ||
CONFIG.axisten_if_width {256_bit} \ | ||
CONFIG.PL_LINK_CAP_MAX_LINK_WIDTH {X8} \ | ||
] $IP | ||
} else { | ||
# x16 properties | ||
set_property -dict [list \ | ||
CONFIG.AXISTEN_IF_EXT_512_CQ_STRADDLE {false} \ | ||
CONFIG.AXISTEN_IF_EXT_512_RC_4TLP_STRADDLE {true} \ | ||
CONFIG.AXISTEN_IF_EXT_512_RQ_STRADDLE {true} \ | ||
CONFIG.axisten_if_width {512_bit} \ | ||
CONFIG.PL_LINK_CAP_MAX_LINK_WIDTH {X16} \ | ||
] $IP | ||
} | ||
|
||
# set PCIE IDs, must be in last set_property | ||
set_property -dict [list \ | ||
CONFIG.PF0_DEVICE_ID [subst $PF0_DEVICE_ID] \ | ||
CONFIG.PF0_SUBSYSTEM_ID [subst $PF0_DEVICE_ID] \ | ||
CONFIG.PF0_SUBSYSTEM_VENDOR_ID [subst $VENDOR_ID] \ | ||
CONFIG.vendor_id [subst $VENDOR_ID] \ | ||
] $IP |
Oops, something went wrong.