mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-11-25 13:33:58 +00:00
Fix some comments in CNT module
This commit is contained in:
parent
625f7fd014
commit
59136e4e17
10
cpld/CNT.v
10
cpld/CNT.v
@ -55,7 +55,7 @@ module CNT(
|
|||||||
* 4096 states == 57.516 ms
|
* 4096 states == 57.516 ms
|
||||||
* During operation (IS==3) long timer counts from 0 to 3
|
* During operation (IS==3) long timer counts from 0 to 3
|
||||||
* starting at first sound RAM access.
|
* starting at first sound RAM access.
|
||||||
* 4 states == 56.168 us */
|
* Period is 28.124 us - 42.240 us */
|
||||||
reg [11:0] LTimer;
|
reg [11:0] LTimer;
|
||||||
reg LTimerTC;
|
reg LTimerTC;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
@ -81,21 +81,21 @@ module CNT(
|
|||||||
wire ISTC = EFall && TimerTC && LTimerTC;
|
wire ISTC = EFall && TimerTC && LTimerTC;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
case (IS[1:0])
|
case (IS[1:0])
|
||||||
2'h0: begin
|
0: begin
|
||||||
AoutOE <= 0; // Tristate PDS address and control
|
AoutOE <= 0; // Tristate PDS address and control
|
||||||
nRESout <= 0; // Hold reset low
|
nRESout <= 0; // Hold reset low
|
||||||
nBR_IOB <= 0; // Default to request bus
|
nBR_IOB <= 0; // Default to request bus
|
||||||
if (ISTC) IS <= 1;
|
if (ISTC) IS <= 1;
|
||||||
end 2'h1: begin
|
end 1: begin
|
||||||
AoutOE <= 0;
|
AoutOE <= 0;
|
||||||
nRESout <= 0;
|
nRESout <= 0;
|
||||||
nBR_IOB <= !(!nBR_IOB && nIPL2r); // Disable bus request if NMI pressed
|
nBR_IOB <= !(!nBR_IOB && nIPL2r); // Disable bus request if NMI pressed
|
||||||
if (ISTC && nIPL2r) IS <= 2;
|
if (ISTC && nIPL2r) IS <= 2;
|
||||||
end 2'h2: begin
|
end 2: begin
|
||||||
AoutOE <= !nBR_IOB;
|
AoutOE <= !nBR_IOB;
|
||||||
nRESout <= 0;
|
nRESout <= 0;
|
||||||
if (ISTC) IS <= 3;
|
if (ISTC) IS <= 3;
|
||||||
end 2'h3: begin
|
end 3: begin
|
||||||
nRESout <= 1; // Release reset
|
nRESout <= 1; // Release reset
|
||||||
IS <= 3;
|
IS <= 3;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user