Skip to content

Commit

Permalink
projects/fmcomms8/zcu102: Fix intermittent fail with timing violation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrDragomir committed Aug 7, 2023
1 parent 961b860 commit 04cba86
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion projects/fmcomms8/zcu102/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

PROJECT_NAME := fmcomms8_zcu102

M_DEPS += ../common/fmcomms8_spi.v
M_DEPS += ../common/fmcomms8_bd.tcl
M_DEPS += ../../scripts/adi_pd.tcl
M_DEPS += ../../common/zcu102/zcu102_system_constr.xdc
M_DEPS += ../../common/zcu102/zcu102_system_bd.tcl
M_DEPS += ../../common/xilinx/dacfifo_bd.tcl
M_DEPS += ../../../library/jesd204/scripts/jesd204.tcl
M_DEPS += ../../../library/common/ad_iobuf.v
M_DEPS += ../../../library/common/ad_3w_spi.v

LIB_DEPS += axi_dmac
LIB_DEPS += axi_sysid
Expand Down
2 changes: 1 addition & 1 deletion projects/fmcomms8/zcu102/system_project.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ adi_project fmcomms8_zcu102 0 [list \
adi_project_files fmcomms8_zcu102 [list \
"system_top.v" \
"system_constr.xdc"\
"../common/fmcomms8_spi.v" \
"$ad_hdl_dir/library/common/ad_3w_spi.v" \
"$ad_hdl_dir/library/common/ad_iobuf.v" \
"$ad_hdl_dir/projects/common/zcu102/zcu102_system_constr.xdc" ]

Expand Down
19 changes: 12 additions & 7 deletions projects/fmcomms8/zcu102/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,18 @@ module system_top (
assign spi_csn_adrv9009_d = spi_3_to_8_csn[1];
assign spi_csn_hmc7044 = spi_3_to_8_csn[2];

fmcomms8_spi i_spi (
.spi_csn(spi_3_to_8_csn),
.spi_clk(spi_clk),
.spi_mosi(spi_mosi),
.spi_miso_i(spi_miso),
.spi_miso_o(spi0_miso),
.spi_sdio(spi_sdio));
ad_3w_spi #(
.NUM_OF_SLAVES(1)
) fmcomms8_spi (
.spi_csn (spi_3_to_8_csn[2]),
.spi_clk (spi_clk),
.spi_mosi (spi_mosi),
.spi_miso (fmcomms8_miso_3w),
.spi_sdio (spi_sdio),
.spi_dir ());

assign spi0_miso = ~spi_3_to_8_csn[2] ? fmcomms8_miso_3w : spi_miso;
assign spi_sdio = ~&spi_3_to_8_csn[1:0] ? spi_mosi : 1'bz;

assign tx_sync = tx_sync_c & tx_sync_d;

Expand Down

0 comments on commit 04cba86

Please sign in to comment.