From 2d64d4347583457b88f686b3f7f6221382515fa0 Mon Sep 17 00:00:00 2001 From: Nick Pillitteri Date: Fri, 21 Jul 2017 04:22:10 -0400 Subject: [PATCH] ZCU102: SPI assign chip selects individually Otherwise, Vivado 2016.4 sets all of the CSNs equal to CSN0. This fix is needed to get the FMCOMMS5 working properly on the ZCU102 (#36) --- projects/common/zcu102/zcu102_system_bd.tcl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/projects/common/zcu102/zcu102_system_bd.tcl b/projects/common/zcu102/zcu102_system_bd.tcl index 38476f2bd..fea2df7c6 100644 --- a/projects/common/zcu102/zcu102_system_bd.tcl +++ b/projects/common/zcu102/zcu102_system_bd.tcl @@ -86,7 +86,12 @@ ad_connect gpio_o sys_ps8/emio_gpio_o # spi -ad_connect sys_ps8/emio_spi0_ss_o_n spi0_csn +ad_ip_instance xlconcat spi0_csn_concat +ad_ip_parameter spi0_csn_concat CONFIG.NUM_PORTS 3 +ad_connect sys_ps8/emio_spi0_ss_o_n spi0_csn_concat/In0 +ad_connect sys_ps8/emio_spi0_ss1_o_n spi0_csn_concat/In1 +ad_connect sys_ps8/emio_spi0_ss2_o_n spi0_csn_concat/In2 +ad_connect spi0_csn_concat/dout spi0_csn ad_connect sys_ps8/emio_spi0_sclk_o spi0_sclk ad_connect sys_ps8/emio_spi0_m_o spi0_mosi ad_connect sys_ps8/emio_spi0_m_i spi0_miso @@ -94,7 +99,12 @@ ad_connect sys_ps8/emio_spi0_ss_i_n VCC ad_connect sys_ps8/emio_spi0_sclk_i GND ad_connect sys_ps8/emio_spi0_s_i GND -ad_connect sys_ps8/emio_spi1_ss_o_n spi1_csn +ad_ip_instance xlconcat spi1_csn_concat +ad_ip_parameter spi1_csn_concat CONFIG.NUM_PORTS 3 +ad_connect sys_ps8/emio_spi1_ss_o_n spi1_csn_concat/In0 +ad_connect sys_ps8/emio_spi1_ss1_o_n spi1_csn_concat/In1 +ad_connect sys_ps8/emio_spi1_ss2_o_n spi1_csn_concat/In2 +ad_connect spi1_csn_concat/dout spi1_csn ad_connect sys_ps8/emio_spi1_sclk_o spi1_sclk ad_connect sys_ps8/emio_spi1_m_o spi1_mosi ad_connect sys_ps8/emio_spi1_m_i spi1_miso