Skip to content

Commit

Permalink
common: vmk180: Connected missing ss from spi
Browse files Browse the repository at this point in the history
ad9081_fmca_ebz: vck190: system_top: Fixed spi signals indentation

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
  • Loading branch information
bluncan committed Oct 25, 2023
1 parent d3be779 commit b1002ca
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
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

0 comments on commit b1002ca

Please sign in to comment.