From d69358ca8fb6e7b1436a6642f564a44317e87084 Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Thu, 3 Oct 2024 18:45:13 -0400 Subject: [PATCH] Fix bug in CNT.v --- cpld/CNT.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpld/CNT.v b/cpld/CNT.v index 445dade..96f8d8b 100644 --- a/cpld/CNT.v +++ b/cpld/CNT.v @@ -120,7 +120,7 @@ module CNT( /* Startup sequence state control */ reg [1:0] IS = 0; always @(posedge CLK) begin - if (nPOR) IS <= 0; + if (!nPOR) IS <= 0; else case (IS[1:0]) 0: if (LTimerTick) IS <= 1; 1: if (LTimerTick) IS <= 2;