DCache/ICache: Invalidate while filling, so if the fill is aborted, then at least...
[firearm.git] / ICache.v
index b9e4eff..e90f430 100644 (file)
--- a/ICache.v
+++ b/ICache.v
@@ -77,7 +77,9 @@ module ICache(
                                if (cache_fill_pos == 15) begin /* Done? */
                                        cache_tags[rd_idx] <= rd_tag;
                                        cache_valid[rd_idx] <= 1;
-                               end
+                                       $display("ICACHE: Fill complete for line %x, tag %x", rd_idx, rd_tag);
+                               end else
+                                       cache_valid[rd_idx] <= 0;
                        end
                end
        end
This page took 0.019346 seconds and 4 git commands to generate.