From 59136e4e170cd6cb2004ccb23e32590da36ff64b Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Sun, 9 Apr 2023 22:47:27 -0400 Subject: [PATCH] Fix some comments in CNT module --- cpld/CNT.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpld/CNT.v b/cpld/CNT.v index bfdac6b..08cc555 100644 --- a/cpld/CNT.v +++ b/cpld/CNT.v @@ -55,7 +55,7 @@ module CNT( * 4096 states == 57.516 ms * During operation (IS==3) long timer counts from 0 to 3 * starting at first sound RAM access. - * 4 states == 56.168 us */ + * Period is 28.124 us - 42.240 us */ reg [11:0] LTimer; reg LTimerTC; always @(posedge CLK) begin @@ -81,21 +81,21 @@ module CNT( wire ISTC = EFall && TimerTC && LTimerTC; always @(posedge CLK) begin case (IS[1:0]) - 2'h0: begin + 0: begin AoutOE <= 0; // Tristate PDS address and control nRESout <= 0; // Hold reset low nBR_IOB <= 0; // Default to request bus if (ISTC) IS <= 1; - end 2'h1: begin + end 1: begin AoutOE <= 0; nRESout <= 0; nBR_IOB <= !(!nBR_IOB && nIPL2r); // Disable bus request if NMI pressed if (ISTC && nIPL2r) IS <= 2; - end 2'h2: begin + end 2: begin AoutOE <= !nBR_IOB; nRESout <= 0; if (ISTC) IS <= 3; - end 2'h3: begin + end 3: begin nRESout <= 1; // Release reset IS <= 3; end