spiOverJtag/xilinx_spiOverJtag.v: can't declare spi_clk for spartan3e device. Fixed sck assign for spartan3e

This commit is contained in:
Gwenhael Goavec-Merou 2025-09-20 17:30:10 +02:00
parent 5e67fee9f5
commit 1ccc2a0d5b
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@ module spiOverJtag
wire capture, drck, sel, update, shift;
wire tdi, tdo;
wire spi_clk;
`ifndef spartan3e
/* Version Interface. */
wire ver_sel, ver_cap, ver_shift, ver_drck, ver_tdi, ver_tdo;
wire spi_clk;
spiOverJtag_core spiOverJtag_core_prim (
/* JTAG state/controls */
@ -65,7 +65,7 @@ module spiOverJtag
assign sck = spi_clk;
`else // !spartan6
`ifdef spartan3e
assign sck = spi_clk;
assign sck = spi_drck;
`else // !spartan6 && !spartan3e
`ifdef xilinxultrascale
assign sck = drck;