From d53ebd1ba53544e3671e93c4e043bb88b37fd1f0 Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Sun, 13 Oct 2024 17:54:10 -0400 Subject: [PATCH] Differentiate sound and other I/O QoS selects in CNT --- cpld/CNT.v | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cpld/CNT.v b/cpld/CNT.v index e8f7b01..2595947 100644 --- a/cpld/CNT.v +++ b/cpld/CNT.v @@ -71,16 +71,17 @@ module CNT( always @(posedge CLK) TimerTick <= EFall && TimerTC; /* QoS select latches */ - reg QoSCSr; + reg QoSCSr, SndQoSCSr; always @(posedge CLK) begin QoSCSr <= !nRESin || - (!nAS && SlowIACK && IACKCS) || - (!nAS && SlowVIA && VIACS) || - (!nAS && SlowIWM && IWMCS) || - (!nAS && SlowSCC && SCCCS) || - (!nAS && SlowSCSI && SCSICS) || - (!nAS && SlowSnd && SndCSWR); + (BACT && SlowIACK && IACKCS) || + (BACT && SlowVIA && VIACS) || + (BACT && SlowIWM && IWMCS) || + (BACT && SlowSCC && SCCCS) || + (BACT && SlowSCSI && SCSICS) || + (BACT && SlowSnd && SndCSWR); end + always @(posedge CLK) SndQoSCSr <= BACT && SlowSnd && SndCSWR; /* QoS timer * In the absence of a QoS trigger, QS==0. @@ -90,6 +91,7 @@ module CNT( reg [3:0] QS; always @(posedge CLK) begin if (QoSCSr) QS <= 15; + else if (SndQoSCSr) QS <= 15; else if (QS==0) QS <= 0; else if (TimerTick) QS <= QS-1; end