From ced83d105ca8d3a3e50af9101cc093c5a841d750 Mon Sep 17 00:00:00 2001 From: Davide Date: Mon, 26 May 2025 18:09:44 +0200 Subject: [PATCH] Update DELAY_US parameter to 225us for SPI IP-Core compatibility; clarify comments --- LAB3/src/digilent_jstk2.vhd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LAB3/src/digilent_jstk2.vhd b/LAB3/src/digilent_jstk2.vhd index 1206cd3..4fa024b 100644 --- a/LAB3/src/digilent_jstk2.vhd +++ b/LAB3/src/digilent_jstk2.vhd @@ -3,7 +3,9 @@ USE IEEE.STD_LOGIC_1164.ALL; ENTITY digilent_jstk2 IS GENERIC ( - DELAY_US : INTEGER := 300; -- Delay (in us) between two packets - Required by the SPI IP-Core tested with 25us doesn't work + DELAY_US : INTEGER := 225; -- Delay (in us) between two packets + -- 25us Required by the SPI IP-Core doesn't work, + -- it requires another SPI clock cycle CLKFREQ : INTEGER := 100_000_000; -- Frequency of the aclk signal (in Hz) SPI_SCLKFREQ : INTEGER := 5_000 -- Frequency of the SPI SCLK clock signal (in Hz) );