Update SPI clock frequency in testbench and enhance comments in effect selector for clarity on joystick mode switching

This commit is contained in:
2025-05-28 19:28:14 +02:00
parent 92cf8aa5ec
commit 1604a7afbc
2 changed files with 5 additions and 3 deletions

View File

@@ -50,17 +50,19 @@ BEGIN
balance <= jstck_x;
-- Y-axis control depends on selected effect mode
-- Note: When switching between modes, the previous joystick values
-- are preserved in the non-active outputs (volume/lfo_period)
IF effect = '1' THEN
-- LFO Mode: Y-axis controls Low Frequency Oscillator period
-- Used for tremolo, vibrato, or other modulation effects
lfo_period <= jstck_y;
-- Volume remains at last set value (not updated in LFO mode)
-- Volume remains at last set value (preserved from previous volume mode)
ELSE
-- Volume/Balance Mode: Y-axis controls overall volume level
-- Traditional audio mixer control mode
volume <= jstck_y;
-- LFO period remains at last set value (not updated in volume mode)
-- LFO period remains at last set value (preserved from previous LFO mode)
END IF;