mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-11-21 17:31:47 +00:00
Differentiate sound and other I/O QoS selects in CNT
This commit is contained in:
parent
4cda4a77d5
commit
d53ebd1ba5
16
cpld/CNT.v
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user