Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing connections from spi on versal boards #1199

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/ad9081_fmca_ebz/vck190/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ module system_top #(
.ddr4_dimm1_dqs_t (ddr4_dqs_t),
.ddr4_dimm1_odt (ddr4_odt),
.ddr4_dimm1_reset_n (ddr4_reset_n),
.spi0_csn (spi0_csn),
.spi0_csn (spi0_csn),
.spi0_miso (spi0_miso),
.spi0_mosi (spi0_mosi),
.spi0_sclk (spi0_sclk),
.spi1_csn (spi1_csn),
.spi1_csn (spi1_csn),
.spi1_miso (spi1_miso),
.spi1_mosi (spi1_mosi),
.spi1_sclk (spi1_sclk),
Expand Down
1 change: 0 additions & 1 deletion projects/common/vck190/system_project.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ adi_project template_vck190
adi_project_files template_vck190 [list \
"$ad_hdl_dir/library/common/ad_iobuf.v" \
"$ad_hdl_dir/projects/common/vck190/vck190_system_constr.xdc" \
"system_constr.xdc" \
"system_top.v" ]

adi_project_run template_vck190
4 changes: 2 additions & 2 deletions projects/common/vck190/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ module system_top (
.ddr4_dimm1_odt (ddr4_odt),
.ddr4_dimm1_reset_n (ddr4_reset_n),

.spi0_csn (1'b1),
.spi0_csn (),
.spi0_miso (1'b0),
.spi0_mosi (),
.spi0_sclk (),
.spi1_csn (1'b1),
.spi1_csn (),
.spi1_miso (1'b0),
.spi1_mosi (),
.spi1_sclk ());
Expand Down
4 changes: 2 additions & 2 deletions projects/common/vmk180/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ module system_top (
.ddr4_dimm1_odt (ddr4_odt),
.ddr4_dimm1_reset_n (ddr4_reset_n),

.spi0_csn (1'b1),
.spi0_csn (),
.spi0_miso (1'b0),
.spi0_mosi (),
.spi0_sclk (),
.spi1_csn (1'b1),
.spi1_csn (),
.spi1_miso (1'b0),
.spi1_mosi (),
.spi1_sclk ());
Expand Down
22 changes: 17 additions & 5 deletions projects/common/vmk180/vmk180_system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,35 @@ set sys_cpu_resetn [get_bd_nets sys_cpu_resetn]
set sys_dma_reset [get_bd_nets sys_350m_reset]
set sys_dma_resetn [get_bd_nets sys_350m_resetn]

# spi
#

ad_ip_instance xlconcat spi0_csn_sources
ad_ip_parameter spi0_csn_sources config.num_ports {3}
ad_connect spi0_csn_sources/dout spi0_csn

ad_connect sys_cips/spi0_sck_o spi0_sclk
ad_connect sys_cips/spi0_sck_i GND
ad_connect sys_cips/spi0_io0_o spi0_mosi
ad_connect sys_cips/spi0_io0_i spi0_miso
ad_connect sys_cips/spi0_io1_i GND
ad_connect sys_cips/spi0_ss_o spi0_csn
ad_connect sys_cips/spi0_ss_i VCC
ad_connect sys_cips/spi0_ss_o spi0_csn_sources/in0
ad_connect sys_cips/spi0_ss1_o spi0_csn_sources/in1
ad_connect sys_cips/spi0_ss2_o spi0_csn_sources/in2
ad_connect sys_cips/spi0_ss_i VCC

ad_ip_instance xlconcat spi1_csn_sources
ad_ip_parameter spi1_csn_sources config.num_ports {3}
ad_connect spi1_csn_sources/dout spi1_csn

ad_connect sys_cips/spi1_sck_o spi1_sclk
ad_connect sys_cips/spi1_sck_i GND
ad_connect sys_cips/spi1_io0_o spi1_mosi
ad_connect sys_cips/spi1_io0_i spi1_miso
ad_connect sys_cips/spi1_io1_i GND
ad_connect sys_cips/spi1_ss_o spi1_csn
ad_connect sys_cips/spi1_ss_i VCC
ad_connect sys_cips/spi1_ss_o spi1_csn_sources/in0
ad_connect sys_cips/spi1_ss1_o spi1_csn_sources/in1
ad_connect sys_cips/spi1_ss2_o spi1_csn_sources/in2
ad_connect sys_cips/spi1_ss_i VCC

# system id

Expand Down
Loading