ICache: Add instrumentation.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 05:50:06 +0000 (00:50 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 05:50:06 +0000 (00:50 -0500)
ICache.v

index 43f6028..2e28adf 100644 (file)
--- a/ICache.v
+++ b/ICache.v
@@ -66,6 +66,7 @@ module ICache(
        always @(posedge clk)
                if (rd_req && !cache_hit) begin
                        if (bus_ready) begin    /* Started the fill, and we have data. */
        always @(posedge clk)
                if (rd_req && !cache_hit) begin
                        if (bus_ready) begin    /* Started the fill, and we have data. */
+                               $display("CACHE FILL: rq adr %08x; bus addr %08x; bus data %08x", rd_addr, bus_addr, bus_rdata);
                                cache_data[rd_idx][cache_fill_pos] <= bus_rdata;
                                cache_fill_pos <= cache_fill_pos + 1;
                                if (cache_fill_pos == 15) begin /* Done? */
                                cache_data[rd_idx][cache_fill_pos] <= bus_rdata;
                                cache_fill_pos <= cache_fill_pos + 1;
                                if (cache_fill_pos == 15) begin /* Done? */
This page took 0.018694 seconds and 4 git commands to generate.