Fixed typo in last commit
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 8 Aug 2017 03:20:17 +0000 (20:20 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Mon, 14 Aug 2017 17:45:39 +0000 (10:45 -0700)
techlibs/greenpak4/cells_sim_digital.v

index 0b83b7a2cf5dfce379e38513878db7b9d32e3821..250f1da6a0677b82d8146003900e58040bb5cf8e 100644 (file)
@@ -119,7 +119,7 @@ module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
        //Combinatorially output underflow flag whenever we wrap low
        always @(*) begin
                if(UP)
-                       OUT <= (count == 14'h4000);
+                       OUT <= (count == 14'h3fff);
                else
                        OUT <= (count == 14'h0);
                POUT <= count[7:0];
@@ -144,7 +144,7 @@ module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
                                        //Wrapping
                                        if(count == 0 && !UP)
                                                count   <= COUNT_TO;
-                                       if(count == 14'h4000 && UP)
+                                       if(count == 14'h3fff && UP)
                                                count   <= COUNT_TO;
 
                                        //Resets
@@ -172,7 +172,7 @@ module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
                                        //Wrapping
                                        if(count == 0 && !UP)
                                                count   <= COUNT_TO;
-                                       if(count == 14'h4000 && UP)
+                                       if(count == 14'h3fff && UP)
                                                count   <= COUNT_TO;
 
                                        //Resets