mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-11-22 08:32:09 +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;
|
always @(posedge CLK) TimerTick <= EFall && TimerTC;
|
||||||
|
|
||||||
/* QoS select latches */
|
/* QoS select latches */
|
||||||
reg QoSCSr;
|
reg QoSCSr, SndQoSCSr;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
QoSCSr <= !nRESin ||
|
QoSCSr <= !nRESin ||
|
||||||
(!nAS && SlowIACK && IACKCS) ||
|
(BACT && SlowIACK && IACKCS) ||
|
||||||
(!nAS && SlowVIA && VIACS) ||
|
(BACT && SlowVIA && VIACS) ||
|
||||||
(!nAS && SlowIWM && IWMCS) ||
|
(BACT && SlowIWM && IWMCS) ||
|
||||||
(!nAS && SlowSCC && SCCCS) ||
|
(BACT && SlowSCC && SCCCS) ||
|
||||||
(!nAS && SlowSCSI && SCSICS) ||
|
(BACT && SlowSCSI && SCSICS) ||
|
||||||
(!nAS && SlowSnd && SndCSWR);
|
(BACT && SlowSnd && SndCSWR);
|
||||||
end
|
end
|
||||||
|
always @(posedge CLK) SndQoSCSr <= BACT && SlowSnd && SndCSWR;
|
||||||
|
|
||||||
/* QoS timer
|
/* QoS timer
|
||||||
* In the absence of a QoS trigger, QS==0.
|
* In the absence of a QoS trigger, QS==0.
|
||||||
@ -90,6 +91,7 @@ module CNT(
|
|||||||
reg [3:0] QS;
|
reg [3:0] QS;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
if (QoSCSr) QS <= 15;
|
if (QoSCSr) QS <= 15;
|
||||||
|
else if (SndQoSCSr) QS <= 15;
|
||||||
else if (QS==0) QS <= 0;
|
else if (QS==0) QS <= 0;
|
||||||
else if (TimerTick) QS <= QS-1;
|
else if (TimerTick) QS <= QS-1;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user