change rst to high-active
[fleet.git] / ships / Memory.ship
index dabd06b..41e728c 100644 (file)
@@ -154,12 +154,11 @@ sequence guarantee problem mentioned in the previous paragraph.
   always @(posedge clk) begin
     write_flag = 0;
 
-    if (!rst) begin
+    if (rst) begin
       `reset
       cursor      = 0;
       counter     = 0;
     end else begin
-      `flush
       `cleanup
 
       if (counter!=0) begin