change rst to high-active
[fleet.git] / ships / Counter.ship
index 0acc5b7..06a87ce 100644 (file)
@@ -110,12 +110,11 @@ public void service() {
   // FIXME: REPEAT with a count of zero will not work properly
 
   always @(posedge clk) begin
-    if (!rst) begin
+    if (rst) begin
       `reset
       full <= 0;
       out_draining <= 0;
     end else begin
-      `flush
       `cleanup
       if (`inOp_empty)         full   <= 0;
       if (out_draining && `out_empty) begin