]> Joshua Wise's Git repositories - firearm.git/blobdiff - DCache.v
Memory: Add delayed flush. Make outbubble correct by moving it to the end (sadface...
[firearm.git] / DCache.v
index a3484a7558b81e5bf3db42a4d11e3b0f2b834e5b..edfcde194daa200d5b030da7825c6d7745b75423 100644 (file)
--- a/DCache.v
+++ b/DCache.v
@@ -79,7 +79,7 @@ module DCache(
                if (rd_req && (cache_fill_pos != 0) && ((prev_addr != {addr[31:6], 6'b0}) || cache_hit))        /* If this wasn't from the same line, or we've moved on somehow, reset the fill circuitry. */
                        cache_fill_pos <= 0;
                else if (rd_req && !cache_hit) begin
-                       if (bus_ready) begin    /* Started the fill, and we have data. */
+                       if (bus_ready && bus_ack) begin /* Started the fill, and we have data. */
                                cache_data[idx][cache_fill_pos] <= bus_rdata;
                                cache_fill_pos <= cache_fill_pos + 1;
                                if (cache_fill_pos == 15) begin /* Done? */
This page took 0.020562 seconds and 4 git commands to generate.