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

index 250f1da6a0677b82d8146003900e58040bb5cf8e..0ed40f79cad02d157526fadcf3bb0be3976a8541 100644 (file)
@@ -116,6 +116,8 @@ module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
                end
        end
 
+       reg[13:0] count = COUNT_TO;
+
        //Combinatorially output underflow flag whenever we wrap low
        always @(*) begin
                if(UP)