From 02ef4616b72cfea912d7bdbbb2eccd439fb64c98 Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Wed, 17 Apr 2019 17:15:24 +0200 Subject: [PATCH] extend pull up of cass_read to EAR input --- cores/c64/rtl/c1530.vhd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cores/c64/rtl/c1530.vhd b/cores/c64/rtl/c1530.vhd index 58951b2..a8b314c 100644 --- a/cores/c64/rtl/c1530.vhd +++ b/cores/c64/rtl/c1530.vhd @@ -126,10 +126,13 @@ begin end if; playing <= (not cass_motor) and (not sense) and (not ear_input_detected); -- cass_motor and sense are low active + + if playing = '0' and ear_input_detected = '0' then + cass_read <= '1'; + end if; tap_fifo_rdreq <= '0'; - if playing = '0' then - cass_read <= '1'; + if playing = '0' then tap_fifo_error <= '0'; wave_cnt <= (others => '0'); wave_len <= (others => '0'); @@ -141,7 +144,7 @@ begin -- Wav player required a large depth fifo to give chance -- fifo not falling empty while host go reading next sd card sector - -- (fifo is read every ~22µs, host have to be faster than 11ms to read sd sector) + -- (fifo is read every ~22µs, host have to be faster than 11ms to read sd sector) wav_player_tick_cnt <= wav_player_tick_cnt + '1';